|
Posted by Hilarion on 12/15/05 18:22
>> I winder if its possible to have a page completly loaded before it is
>> shown. Now I can see images being loaded while loading a page...
>
> I would try preloading all your images using javascript. That way they are
> already downloaded and you're just waiting on the rendering time of the
> engine.
It'll make a difference only for images which are not initially visible
(eg. when you switch images when mouse hovers over a "button").
Your solution will work like this:
- browser loads page HTML,
- page is rendered and the JS is executed, which starts loading the
images,
- images are shown when loaded (by browser or script).
Preloading could work if is done on "previous" page. So you should
know to which page the user will go, and before the page unloads,
preload all the images for the next page and hope that the browser
will keep them in it's cache and this way have them at hand when
the new page is loaded. This solution is quite tricky and unreliable.
Hilarion
Navigation:
[Reply to this message]
|