[thelist] .css files vs inline CSS and .js vs inline JS?

Christian Heilmann codepo8 at gmail.com
Tue May 17 12:26:14 CDT 2005


> I heard that when styles are moved to a .css file that the client caches it
> so that they don't have to continually download the same thing over and
> over.  Is this true?  If that applies for javascript, when placing
> javascript code in a .js file, does it also cache it as well?

Yes, that is one benefit of separating them out. Another one is that
you can change settings in one file and it gets applied to numerous
documents.

Embedded JS or CSS is always a hack and not clever.


-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/


More information about the thelist mailing list