Bug – media attributes on stylesheet links are ignored
-
Hi,
I use media queries on stylesheet links to achieve responsive designs:
<link rel='stylesheet' href='/path/to/desktop-only.css' type='text/css' media='(min-width:980px)' />
When I activate CSS minification, all stylesheet get concatenated and the media query is lost. I’m searching for a way to prevent this. Ideally, W3TC should automatically leave alone stylesheets with media attributes different from ‘all’.
I am aware media-queries can be used inside stylesheet too, but the split-css technique I am using requires media queries to be set on the links. I’d be willing to patch W3TC myself, I just need instructions on where to look in the source code.Thank you in advance,
Lr
- The topic ‘Bug – media attributes on stylesheet links are ignored’ is closed to new replies.