• Resolved dekk3r

    (@dekk3r)


    Thank you for the very good plugin!

    The only thing that I cannot fix at the moment is that AO generates multiple CSS files. (… Css / autoptimize). How can I prevent this?

    Thank you in advance for your help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Avond dekk3r ??

    Autoptimize groups CSS by the media attribute of the original CSS, in your case you have CSS with media="all" (or without a media attrib), CSS with media="screen" and CSS with media="only screen and (max-width: 768px)" and the results in 3 autoptimized CSS-files.

    Possible fixes (aside from just ignoring this behavior):
    * make sure the original CSS loads with media="all" (or without media being explicitly set)
    * use a code snippet along the lines of what is described in https://blog.futtta.be/2016/10/04/how-to-fix-css-media-types-impacting-autoptimized-css-order/

    Hope this helps,
    groeten uit Belgi?,

    frank

Viewing 1 replies (of 1 total)
  • The topic ‘multiple minified css files’ is closed to new replies.