Reply to Re: preload img

Your name:

Reply:


Posted by David Dorward on 12/27/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/>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация