• Hi, Thank you for this great plugin. I am having some issue please guide me to solve it. In my site, autoptimize is style.CSS before from CSS and that is causing the style break in some page. Can you give some idea why so and how I should solve it?

    I am using aero pro theme.

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

    (@optimizingmatters)

    Autoptimize honors the stylesheet order, except if stylesheets have different media-attributes.

    Suppose you have:

    1. stylesheet A media=screen
    2. stylesheet B media=all
    3. stylesheet C media=screen

    then you’ll end up with:

    1. AO stylesheet X media=screen (with stylesheets A and C)
    2. AO stylesheet Y media=all (with stylesheet B)

    If stylesheet C overwrites stylesheet B, then this will not be the case when autoptimized as C is loaded before B (in their respective AO’ed file).

    Solutions:
    * try excluding a stylesheet
    * use AO’s API to force-fix the media-attrib for stylesheet B, cfr. example code in this blogpost on the topic

    hope this helps ??
    frank

    Thread Starter Prafulla Kumar Sahu

    (@prafulla)

    Sorry for late reply and thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How this plugin is deciding the sequence?’ is closed to new replies.