homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
How browsers work
Internal workings of browsers
ohsodit




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

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




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

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




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

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




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

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




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

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

ohsodit




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved