@import is a good practice?

johnny.dacu's Avatar, Join Date: Jul 2010
Contributor
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.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Could not get you. Do you mean other ways of doing apart from import would mean it will not do the request?
johnny.dacu's Avatar, Join Date: Jul 2010
Contributor
It was a question... I just said (but i'm waiting for someone to tell me is i'm right): when you have three css files and use anoter one to import all of them, this will endup with 4 requests (main plus other three) or is just the main (1 request)
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The total number of requests would be same as number of files.