I know that one technique is to include some css files on main one with @import.
Isn't this a bad practice? Because with @import browser still makes the request, and if the main is blank then you could endup with n+1 requests.
@import is a good practice?
Started by
Guest_johnny.dacu_*
, Jul 26 2010 07:08 AM
2 replies to this topic
#1
Guest_johnny.dacu_*
Posted 26 July 2010 - 07:08 AM
Guest_johnny.dacu_*
|
|
|
#2
Posted 26 July 2010 - 02:54 PM
It's a good practice because if ALL the files on your site use the same CSS files, then they will only be downloaded once for the entire site, and even for several visits to the site (caching).
#3
Posted 27 July 2010 - 08:05 AM
Importing from one of your own stylesheets is fine, but kind of useless as you can just include the other stylesheet in the same web page. Importing from somewhere else, like another website, is a bad idea as that stylesheet may change, thus changing your website along with it.


Sign In
Create Account

Back to top










