homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<img src> or css background?
Is css faster?
suzie250

5+ Year Member



 
Msg#: 3420548 posted 6:40 am on Aug 13, 2007 (gmt 0)

I understand that less http requests mean faster loading times. But by how much?

I have a page that I am working on that has 15 optimized images that are about 325x200. If I placed these images as class or div backgrounds, is it worth the extra markup since the images are so large?

Also, won't the page just stay blank until the css file is done loading all the images anyhow?

 

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3420548 posted 4:54 pm on Aug 13, 2007 (gmt 0)

Regardless of whether you're serving the images as content (with the <img> element) or whether you're serving the images as presentation (CSS backgrounds), each image is still going to require an HTTP request. Whether or not you serve the images as background images or not really depends on whether they are content or just presentation.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved