You are here: Do browsers load CSS-specified resources immediately or as needed? « HTML « IT news, forums, messages
Do browsers load CSS-specified resources immediately or as needed?

Posted by Jim Higson on 11/18/05 11:56

Say I have a CSS file with the star-html hack:

..some-class
{ background-image:url(foo.png);
}
* html .some-class
{ background-image:url(foo.gif);
}

(yes, I know IE can load transparent PNGs using AlphaImageLoader. Let's
pretend it can't for this example)

The question is, will most current browsers apply the CSS rules, then decide
which images to load, or will any see the background-image rules and
immediately load both images?

If the later then the added bandwidth probably overcomes any advantages of
giving out different images.

--
Jim

 

Navigation:

[Reply to this 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

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