Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That'll be the case if you put all your css into one file. Here's a suggestion - - Separate your css into layout and style files. - Further separate your style into ones targeted for - different targets - dektop, mobile, IE-specific (so you can use MHTML if you want, etc) - Use a script to compile these together into packages. - Use a line of javascript to load the specific target based css.

Sure it sounds like some extra work, but if you're looking to optimize what gets loaded, it might be worth it.

HTH.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: