Plugin Support
Kush
(@kushnamdev)
Hi @rudolfl,
Thank you for contacting us.
Optimole do preloads the top images and this can be verified by fetchpriority=”high” attribute in the site images, see here – https://vertis.d.pr/i/OjunC9
For your case, if the issue is that every time you clear cache or change anything, the image URL gets changed, then you can try to preload the original image instead of the Optimole version of that image.
It will ensure that its preloaded properly. Please check and let us know if it worked as expected or not.
Best regards
Kush Namdev
Thank you for replying
But, if you look on my site: http://www.hatsfromoz.com.au, I have a bunch of Optimole pre-loaded images which have no relevance at all, while ones that are really important (in LCP) are not preloaded.
This one, for example, must to be pre-loaded and it is not: https://www.hatsfromoz.com.au/wp-content/uploads/2021/04/SpringSummer1.jpg
This image is a background image in a <div> Will that make a difference to how Optimole processes page?
Thanks
Rudolf
Plugin Support
Kush
(@kushnamdev)
Hi Rudolf,
Yes, we don’t preload the background images at the moment, that’s why it is not preloaded by Optimole on your site.
Can you can try to preload it the way I suggested and let us know if the issue still exists or not?
Best regards
Ah!
But this is exactly the problem!
I am pre-loading original version of the image. Here is extract of my code:
Optimole then re-writes URL into Optimole one. And rewrites the URL for the image itself to something else, rendering preloading useless.
Plugin Support
Kush
(@kushnamdev)
Hi @rudolfl
I checked your site but I don’t see that image being preload at all, see here – https://vertis.d.pr/i/LHJGbN
Best regards
Hi,
Sorry, you were looking at the page as I was experimenting and removed the preload for a test.
It is back now. WordPress forum doe snot allow me to paste “raw HTML”, so here is a screenshot of the code I use. It is added into “wp_head” hook
https://ibb.co/Kqn5tLz
Rudolf
Plugin Support
Kush
(@kushnamdev)
Hi Rudolf,
Unfortunately we don’t preload the background images with Optimole as the URLs are generated dynamically, so each URL is unique. You won’t be able to preload it unless the wp_get_attachment_image_src function is used. You can exclude the image from the optimization/lazy loading process to solve the issue.
We are sorry for the inconvenience you might have faced due to this, and please let us know how it goes. Thank you!
Hi
I tried to disable optimisation of this image by setting up exclusion in Optimole settings.
This stopped my “preload” image from optimisation, however same image served from CSS background is still being optimised, so problem is not solved. Yes, I did clear page cache.
https://www.hatsfromoz.com.au
Image in question is SpringSummer1.jpg
Plugin Support
Kush
(@kushnamdev)
Can you please share the screenshot of the Exclusion settings you configured?
Plugin Support
Kush
(@kushnamdev)
It appears that this image is being cached by the fusion builder plugin, can you please try to clear cache or regenerate the css files of the builder (if this is possible) and check again?
No. Image is processed by Optimole.
Fusion Builder is a builder plugin in Avada theme. So, yes, image is inserted by the Fusion Builder and appropriate CSS is generated by same plugin.
Just for a test, I reset Avada cache (Fusion builder cache) and page caches. Image is still processed by Optimole
Rudolf
Plugin Support
Kush
(@kushnamdev)
I am not sure what could be the issue here but I would like to test it more. Can you please contact us from here – https://optimole.com/contact