• 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

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter louisremi

    (@louisremi)

    I’ve realized it is possible to set the Minify task on manual mode, which allows me to work around my problem. I’m still searching for instructions on which files to patch to make my pages compatible with the automatic mode.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug – media attributes on stylesheet links are ignored’ is closed to new replies.