• Resolved gutcache

    (@gutcache)


    Hello guys, I’ve successfully marked my background image from Spectra container to preload with ‘LCP Image to preload’ in page options. Now when I see the link in Header is there a way to add ‘fetchpriority=high’ to it? Thank you

    • This topic was modified 4 months ago by gutcache.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    das ist eine gute idee gutcache 🙂

    I just committed a change to the AO beta repository, feel free to download the beta zip and give it a go!

    let me know how it works (or not) for you!

    best,
    frank

    Thread Starter gutcache

    (@gutcache)

    Hey Frank, thanks for fast response and implementation haha.

    I tried beta plugin but I don’t see ‘fetchpriority=high’ in link – it remained the same. I’m not sure that I’m doing it correctly though.

    I just downloaded beta branch ZIP and uploaded manually as plugin. Disabled main plugin and enabled 3.1.15-beta-0 – it works but link remained the same. After clearing the cache I can’t see fetchpriority=”high” in it.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Do you have a URL where I can (not) see this happening gutcache?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news gutcache ?

    artdooh

    (@dooshek)

    PageSpeed ​​Insights requires fetchpriority=”high” for LCP images. Besides editing autoptimizeImages.php, wouldn’t it be necessary to edit autoptimizeExtra.php? Here:

    $preload_output .= '<link rel="preload" href="' . $preload . '" as="' . $preload_as . '"' . $mime_type . $crossorigin . '>';

    It only works for me when I add fetchpriority=”high” to that line.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah right, there’s preload in Extra as well! thanks for the tip @dooshek 🙂

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    added it on Github, feel free to download the beta zip and try it out 🙂

    artdooh

    (@dooshek)

    The link is now being generated correctly. Unfortunately, I don’t have the ability to check it online right now and see how Google’s page speed detects it.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    thanks for the feedback! 🙂

    as AO can only add the attribute but does not control if/ how Google PageSpeed Insights detects it, I’ll close as resolved, but feel free to follow up later if you have additional questions/ remarks! 🙂

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

You must be logged in to reply to this topic.