• Resolved fcadminn

    (@fcadminn)


    Hi Frank,

    First AO is obviously such an awesome plugin – essential for any fast site.

    With that said, I’m relatively new to this and while AO is speeding up page speed a lot, Google Insights is showing two css files that need to be deferred and are render-blocking.

    What’s the best way to use AO but to eliminate the issues from the two css files?

    On mobile they’re adding 4 secs collectively with “defer unused css” and “eliminate render blocking resources” showing both files at about 2 secs per issue.

    Thanks in advance!

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

    (@optimizingmatters)

    have a look at “inline & defer” to make the CSS non-render blocking @fcadminn, have a look at the AO FAQ for more info on that topic. this will probably not make the “defer unused CSS” opportunity go away, that one is still being looked in (and makes less of a perf. difference anyway).

    hope this helps,
    frank

    Thread Starter fcadminn

    (@fcadminn)

    Hey Frank,

    That’s helped a lot Frank – for desktop has eliminated the issue completely, mobile big reduction!

    The only thing is that now the page is loading without css (strange and ugly) for a second before the page loads (properly). Have you seen this before? Is there an additional way to mitigate this, or is it just a choice between both scenarios?

    Cheers

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    The only thing is that now the page is loading without css (strange and ugly) for a second before the page loads (properly)

    that means that you either left the “above the fold CSS”-field empty or that the critical CSS entered there is not good enough to render the page fcadminn, have a look at this video (not mine) for info on how to proceed;

    Thread Starter fcadminn

    (@fcadminn)

    Thanks for thank Frank, After following the video both css files were still showing as unused css even after all critical css was inlined + deferring the remainder.

    I’ll leave it for now and come back to it later. Would love a simple solution to this issue that works reliably, but then again could be down to my inexperience also admittedly and others might have solved this same problem.

    Thanks anyway Frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the difficulty is (using the right tool to) extract(ing) the critical CSS. in my experience criticalcss.com offers the best results, but even there one might have to tweak somewhat to make sure the above the fold page renders correctly without the full CSS having loaded. often the issue is with JS that alters the DOM (and related styles) after the page has rendered (e.g. an image carousel).

    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dealing with css files create by AO’ is closed to new replies.