|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Avoid reloading the stylesheet for frame
Hi!
I am using javascript document.write() in one frame to dynamically change the content of another frame. This rewriting is done quite often and the page(frame) is written every time from scratch (i.e. starting from <HTML>). I also have to add <LINK> element to load the stylesheet used by that frame. Problem is this: Because the page is rewritten quite often it is not good to reload the stylesheet every time because it always takes some time. How can I get around this problem? Is the only way to write the stylesheet inside the header of the frame instead of loading a stylesheet file? I am quite new to HTML and javascript. Thanks. |
|
#2
|
||||
|
||||
|
Stylesheets are cached on the users computer by default, so I wouldn't worry about the css loading each time.
It sounds like your site could be written more efficiently, perhaps you could look into a server-side language? |
|
#3
|
|||
|
|||
|
I don't see how any server-side language can fit to my problem.
The thing is that once all the pages all loaded once there is no need to get more data from server. The dynamically created frame contais text-based tree hierarchy. Like this: object 1 __sub object 1 __sub object 2 ____sub sub object 1 ____sub sub object 2 __sub object 3 ... The hierarchy to show depends of the state of activeX component that is in another frame. User can freely expand and collapse items in hierarchy and this happens quite often. But if css files are cached, I quess there is no problem. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > Avoid reloading the stylesheet for frame |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|