|
Posted by David Dorward on 10/15/82 11:41
Barbara de Zoete wrote:
> > I'm trying to preload image for a better user experience but it doesn't
> > work
> Put your images in a div right at the beginning of the body of your page,
> like so:
The trouble with this is that it causes the browser (assuming it
doesn't go "Oh, not being displayed, I don't bother loading them at
all") to put those images at the top of the list to load. So the images
which you want to get ready for when you need them are loaded before
all the other images in the page - which you need sooner.
Additionally, they will be displayed if the user doesn't have CSS
available and turned on.
Precaching is best done with JavaScript.
--
David Dorward <http://dorward.me.uk/>
Navigation:
[Reply to this message]
|