The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How many media queries is too many? Re: How many media queries is too many?


Wait, you guys are talking about putting CSS < style > blocks in the head of every page? No way, man. That’s a maintainability nightmare. Any loading benefits you might possibly get over a linked stylesheet would be so small as to be negligible. You would probably save as much or more eliminating a single jpeg image from your page.

I use Sass to compile my modular stylesheets into one big minified version that I link to.

But back to the original topic, I’ve looked around and come to the same conclusion: you’d have to literally put in hundreds or even thousands of media queries before it became an issue, so I’ve stopped worrying about it, except in terms of making my stylesheets too complicated.