[Javascript] Pre-load images

Mike Dougherty mdougherty at pbp.com
Wed Aug 13 12:39:47 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



More information about the Javascript mailing list