Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-10-2007, 06:17 PM   #1
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
How do CSS images load?

With an external file sheet, are the images in the css file loaded automatically or are they only downloaded/loaded if they're specified class is used in the document?
Old 01-11-2007, 07:13 AM   #2
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
The CSS standard doesn't specify, (although the version 3 draft states "Implementations may optimize by not downloading and drawing images that are not visible"), so I guess its up to the browser. It should be fairly easy to test though, just create some suitable test documents and examine your web server logs for accesses to the file.
Old 01-11-2007, 12:37 PM   #3
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Original Poster
Rep: Reputation: 31
Cool thanks. Yeah, I tested in FF2 and it didn't download all the image data.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS layout Ephracis Programming 7 04-03-2006 02:14 PM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 12:47 AM
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM
Apache doesn't load images when using vhosts... Erik Thorsson Debian 7 02-09-2005 07:23 AM
two backgounds with CSS Boby Programming 2 11-25-2004 03:49 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration