Welcome to WebmasterWorld Guest from 54.145.44.134

Forum Moderators: incrediBILL

Message Too Old, No Replies

How browsers work

Internal workings of browsers

     

ohsodit

2:42 pm on Apr 20, 2001 (gmt 0)

10+ Year Member



I need to find out how browsers handle things such as image cacheing, storing javascript variables, when they are kept and when they are discarded etc, to make my javascript more usable.
Does anyone know of any material printed or online which could help

Chris

tedster

5:58 pm on Apr 20, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to Webmaster World, Chris.

A lot of the functionality you mention is not standardized -- it varies from browser to browser (and sometimes version to version) so you need to refer to the technical information posted on each browser's site. I don't know of any one place that has collected this kind of resource, but maybe someone else will.

In addition to varying from browser to browser, cache storage is subject to client settings, another ingredient in the stew. My guess is that rather than looking for an inclusive tutorial, you will need to research specific questions for the pages you are developing.

Xoc

7:15 am on Apr 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Chris-Welcome to Webmaster World.

Tedster got it right. Generally images are stored in the cache in a FIFO (first in/first out) basis. The size of the cache is user setting. When the a new item is added to the cache, enough of the oldest stuff is discarded to make room.

You weren't clear on what you mean by storing javascript variables. Can you be more specific.

Actually, it might be better if you stated the problem that you are trying to solve and we might have some ideas.

ohsodit

2:42 pm on Apr 23, 2001 (gmt 0)

10+ Year Member



Thanks for you interest. What I am doing on my site (in profile) is to allow a checkbox to be ticked to say no graphics. The succeeding pages then have inline javascript to either show or not show graphics. This works fine most of the time but if I refresh the page, the value is lost. I did it by using frames and once the box was checked set the value of a variable in the frame page itself so that all other pages used in that frame could access that variable.

tedster

4:11 pm on Apr 23, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Yeah, the page refresh would have that effect. How about setting a session cookie?

ohsodit

4:22 pm on Apr 23, 2001 (gmt 0)

10+ Year Member



Yes that did cross my mind and if people have their browser set to not accept cookies then they dont get the speed of having no graphics.
Thanks guys
 

Featured Threads

Hot Threads This Week

Hot Threads This Month