Klaus Hartl wrote: > Brice Burgess schrieb: > >> Sam Collett wrote: >> >>> - Preload the images used by the styled dialog >>> >>> >> I *believe* they are .. unless browsers don't cache/load images >> contained in a hidden element. Have you seen the CSS tab of example 2? >> Most of the images are background images. >> > > Some browsers do not load images just because they're in the HTML source > and hidden by CSS..., you can test here: > > http://www.quirksmode.org/css/displayimg.html > > For example my Opera 9 on Mac OSX doesn't. > > > -- Klaus Klaus,
I've done a little investigation with FF 2.0 & Firebug's NET view. The images from quirksmode are "preloaded" (downloaded despite being a child of a hidden element). The images in jqModal are not "preloaded" (in FF at least...). I think this has to do with the fact that they're part of the background styling, rather than existing as an element of their own. e.g. <div style="background: url(preload.gif);" ...> vs. <img src="preload.gif" ... /> Do you know of any way around this? I *could* have the plugin go through each element in a dialog, examine the background styling, and if it contains a image url; extract it into a faux hidden image tag. Seems very un-jqModal though... ;) ~ Brice _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
