Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Hi Sven;
    AO aggregates the CSS in the order it finds it in the original HTML. So if your theme CSS is last, it really should be added to the autoptimized CSS last as well.

    In general the only issues with CSS aggregation are when one (or more) files are excluded from CSS optimization (either because they’re external, .php or excluded manually) or when inline CSS (which has priority) is aggregated and hence looses it’s priority. Do either of these apply to your context?

    Kind regards,
    frank

    Thread Starter TheRiddler1982

    (@theriddler1982)

    Hi Frank,

    thanks for your fast reply. I think it is the last stylesheet included in the header. There is only some inline CSS after that. To confirm on your site you can have a look at the source code of

    ziin.de

    and put in unminify.com

    In your plugin configuration only the defaults are entered for exclusion, i.e. admin-bar.min.css, dashicons.min.css. There is no other inline CSS besides the one mentioned above and that one has nothing todo with the video-js.css file. Both my stylesheet and the video-js.css are not inlined but included with href (see sourcecode).

    I am not quite firm with CSS and its priorities. Neither know the wordpress codex in detail.
    So I am not sure if I made myself clear enough.

    Is there any other way that you can understand what’s going on?

    Thanks,
    Sven

    Thread Starter TheRiddler1982

    (@theriddler1982)

    Currently, Optimize CSS is disabled.

    Thread Starter TheRiddler1982

    (@theriddler1982)

    Hi Frank,

    I found a workaround. I mistreated WordPress and disabled the default style.css in the theme folder and linked my ziin.style directly in the header after the inline CSS.

    Now its working with “optimize CSS”!

    BTW, your plugin rulez!!! I got now 91/100 pagespeed index for ziin.de.

    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    ah, I see. happy you got it working! ??

    enjoy your holiday (or if this isn’t an official holiday in germany, enjoy your monday ?? )

    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Set priority of CSS inline feature’ is closed to new replies.