WP Rocket
Forum Replies Created
-
Hi,
Use
rocket-lazyloadfor the CSS class, the FAQ was not up to date.Hi,
Currently we’re getting mixed feedbacks: some users say it’s working fine with Rocket Loader, some don’t, so it’s complicated to make a change on this.
Hi,
Great to hear! Thank you for notifying us.
Hi,
If the plugin is uninstalled/deactivated, it doesn’t have an effect anymore. If you still see the lazyload or the plugin assets, it means the cache is not correctly cleared.
Hi,
Sorry the FAQ is up to date, the class should be
rocket-lazyload. After changing that it should work.The plugin is compatible with the official AMP plugin from Automattic. It has not been tested with other AMP plugins.
Hi,
This should be fixed with the new minor version we just released.
Hi,
please add this code snippet to your site:
add_filter( 'rocket_lazyload_polyfill', '__return_true' );After that, the lazyload should be working on Safari too.
An image lazyloaded will have a class “lazyloaded” and an attribute data-processed=”true”.
For the defer offscreen images, lazyload will help with that. But there might be cases where an image is loaded differently (from CSS background-image for example), and that can’t be lazyloaded.
It all depends on the page, without a specific page test I can’t tell you more.
Do you have an example URL with the issue?
The iframe option is still an optimization, as the iframe is not loaded until it comes into the viewport.
That indeed won’t work because the class is dynamically added to the image after the page is loaded.
Currently the solution would be to prevent lazyload on the page(s) where you have this slider, using the example code in our FAQ.
Hi,
Unfortunately since you already changed plugins we won’t be able to help you with this issue.
It would have been great to be able to see the issue, and work out a fix for others that might have the same one.
Hi,
You have JavaScript errors in your browser console. This is probably causing the issue.
I can see you have autoptimize, and also something applying the defer attribute on your scripts. I would recommend to adjust the settings on these to prevent any error.
Hi,
Can you describe what issue(s) you are encountering with the plugins?
Hi,
You should have only one click on desktop, as the auto-play should trigger.
Replacing the video by the thumbnail prevents any load of Youtube assets until you click on the thumbnail.
If you use the iframe option, youtube assets will be loaded once the iframe comes into the screen, even if you don’t click the video.