Home › Forums › CSS › [Solved]Does the location of media queries affect the website? › Re: [Solved]Does the location of media queries affect the website?
Another thing to think about is wether a 3rd party is going to ever modify your code, having everything hocked under one mq may reduce code bloat but on the other hand
if you have two components that just happen to coincide under the same mq (rather than changes to both been prompted by the same cause) and you want to one of the components, you’ll have to seperate out everything thats under the media query for that component.
So I wouldn’t say its as simple as pure code minification, you have to consider whats appropriate for each component individually.