• Resolved Deepak

    (@golinuxcloud)


    Hello Team,

    I have aggregated and combined all the CSS from my page and it is getting loaded in the <head>

    Is it possible to add “preload” attribute to this autoptimize_XXXXX.css file which is auto generated?

    Regards

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

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

    (@optimizingmatters)

    There’s not option for that no, but try the “remove render-blocking CSS”-option instead maybe, more info in the AO FAQ (under “inline & defer CSS”)?

    hope this helps,
    frank

    Thread Starter Deepak

    (@golinuxcloud)

    Thanks, anyhow with a single CSS and no critical CSS it would not make sense to preload the files.

    I was worried because I could see in some forums where earlier (2 years back) autoptimize was loading the css with preload and I was wondering if this was still there somewhere hidden which we should disable or that function is not there anymore.

    Thanks for the clarification.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO indeed used rel="preload" when “inline & defer” was active, but that has now been replaced by another technique (media=”print” swapping to original media attribute upon loading, based on https://www.filamentgroup.com/lab/load-css-simpler/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to preload autoptimize css’ is closed to new replies.