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
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.
Do you have a URL where I can (not) see this happening gutcache?
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.
ah right, there’s preload in Extra as well! thanks for the tip @dooshek 🙂
added it on Github, feel free to download the beta zip and try it out 🙂
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.
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! 🙂