Skip to content Skip to sidebar Skip to footer

Do Link Tags With Media Queries That Resolve To False Still Get Downloaded?

Given the following link tags: &l

Solution 1:

All the stylesheets will get downloaded regardless of whether the media queries evaluate to true or false. Even the first five media queries you have, which are all invalid because of missing parentheses around the max-width expressions, won't prevent those stylesheets from being requested by the browser. (Invalid media queries simply resolve to false automatically.)

In CSS, media queries only control whether or not the CSS rules in those stylesheets are applied to your page, not whether or not the stylesheets themselves get requested.

Post a Comment for "Do Link Tags With Media Queries That Resolve To False Still Get Downloaded?"