Problem with pre-loading images
-
Hi
website https://www.hatsfromoz.com.au
I have an LCP problem and I want to pre-load LCP image to speed things up. So, I added code to pre-load the image by injecting “<link rel=”preload” as=”image” href=image_url> into the site header.
Now, Optimole processes the page and substitutes local image URL with Optimole CDN one. The problem is that it converts my preload URL and actual image URL into different URLs!!! (Image in question is a background image added via CSS)
<link rel="preload" as="image" href="https://mlla0xuxwlls.i.optimole.com/cb:WjF4~2ac73/w:auto/h:auto/q:90/f:best/ig:avif/https://www.hatsfromoz.com.au/wp-content/uploads/2021/04/SpringSummer1.jpg">
<div class="fusion-column-wrapper fusion-flex-justify-content-flex-end fusion-content-layout-column fusion-column-has-bg-image" data-bg-url="https://mlla0xuxwlls.i.optimole.com/fZh4Wl4.WjF4~2ac73/w:auto/h:auto/q:90/https://www.hatsfromoz.com.au/wp-content/uploads/2021/04/SpringSummer1.jpg">As you see from above, URLs are different, so preload does not work. I think, difference in URL is due to the image size. Can someone suggest how to properly preload this image while keeping Optimole CDN and lazyload features?
- You must be logged in to reply to this topic.