[Javascript] Pre-load images

Rees, Mark Mark.Rees at astrazeneca.com
Thu Aug 14 03:38:23 CDT 2008


On Wed, Aug 13, 2008 at 11:50 AM, tedd <tedd at sperling.com> wrote:
>
> I have a script that pre-loads images (who doesn't?).
>
> Without the pre-load, I get major flashes on image roll-overs.
>
> With pre-load, it cuts the flashes down to almost nothing. But I
> still notice flashes occasionally on image roll-overs  -- is that to
> be expected? Is that a browser thing or should it not happen at all?

>I don't know what your images are like, but have you considered image
>sprites as a solution to "rollover flash" ?

>A discussion here: http://www.alistapart.com/articles/sprites
>this is good too: http://www.peachpit.com/articles/article.aspx?p=447210
>Another example here (in the context of 14 rules):
>http://stevesouders.com/hpws/sprites.php
_______________________________________________

If you are using CSS for image rollovers, this might be of interest as well:

http://www.fivesevensix.com/studies/ie6flicker/



More information about the Javascript mailing list