Plugin Support
Vytis
(@bvytis)
Hi Nate,
Thank you for your feedback, we appreciate it!
Let’s go through your questions:
* Optimole considers lazyloading & image scaling and replacement as an inseparable set, correct? If anything is excluded from lazyload, it won’t be scaled?
That’s correct.
* Do you provide ways to still scale excluded images from lazyload? Would there be any downsides to scaling excluded images?
No, there is no way to serve images scaled when they are excluded from being lazy-loaded.
* Is this what your filters are for? Is there any documentation about how your filters work (something I add in functions.php?)? For example, optml_force_replacement to force replacements in the latest update?
We do not have documentation that covers all the filters available, unfortunately.
The optml_force_replacement filter that you mentioned is used for cases when Optimole doesn’t serve images while users still want them to be served. The main cause why we added this filter is because Optimole doesn’t serve images when they are loaded via AJAX if the user, visiting the page, is logged into the dashboard. We had requests to still serve such images so our development team added this filter that forces images to be served via Optimole even in the mentioned scenario.
I hope it helps!
Thread Starter
Nate
(@goseongguy)
Thank you for confirming!
Thread Starter
Nate
(@goseongguy)
Hello! Would I be able to confirm a similar question?
If I use the new setting “Exclude first <number> of images from lazyload”, it will also not be scaled? The effect on the image is the same as if it were excluded manually (by class name, etc) in the exclusion settings?
Plugin Support
Vytis
(@bvytis)
Hi @goseongguy,
Yes, that’s correct. Optimole can only serve images scaled if they are lazy-loaded so disabling this feature also makes image served as not scaled.
In the future for new questions please create a new thread in this forum, thank you!