Forums

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?

#116863
djdaniel150
Member

Exactly my point! Google just reaffirmed what I already stated, External style sheets slow down page rendering. I stated to place your media queries, that is “@media”, not “@import” in the document itself, and it will load much faster. You are right though Paulie about having to edit every single page if you place your css on each page. However, you can still make a template for each section of your site, and update the code to multiple pages in minutes. That’s what I did, and it works great. People use way too many external style sheets these days, it’s nuts! I see pages on the web with like 20, 30, or more external links to style sheets on a single page, and they take a million years to load. “@import” is terrible and the link tag isn’t much better. This is why I refuse to link to an external style sheet for any reason.