xhtml - Is it true images in css background loads before all images in HTML <img>? -


if want load image should use css background not in ? think difference show in low speed internet connection.

i saw many articles related css preloading using images in css background.

http://perishablepress.com/press/2008/04/15/pure-css-better-image-preloading-without-javascript/

http://perishablepress.com/press/2007/07/22/css-throwdown-preload-images-without-javascript/

http://divitodesign.com/css/create-an-image-pre-loader-with-css-only/

it's order in things happen. browsers @ liberty begin processing things possible, so, in average page css defined in head, able start requesting , recieving images css before able body of document.

so in short, answer yes.

but... bear in mind doesn't load images faster. doing changing load order, not absolute speed. images still take same amount of time load. if move out of body , css in head, still left priority decisions ones load first. come full circle. can't make faser else.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -