WP Rocket
Forum Replies Created
-
Hi,
Which page builder are you using?
Hi,
You can replace the default placeholder with a spinner image, by using the following filter:
rocket_lazyload_placeholderHi,
This could be a solution for your case yes, though we didn’t try that ourselves.
Since version 2.0, lazyload is applied globally on the
template_redirectaction by doing output buffering to get the HTML content and modify it.Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] Not workingYou can use the following code, added in the functions.php of your theme for example.
add_filter('rocket_lazyload_excluded_attributes', function($excluded) { $excluded[] = 'ac-masonry'; return $excluded; });This should fix the issue with your slider.
Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] Not workingEverything seems to be working fine, looking at the network inspector I can see the images being requested and loaded while scrolling on the page
Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] Not workingHi,
The plugin is supposed to lazyload images. Can you provide an URL so we can have a look?
Hi,
You can add a data-no-lazy=”1″ attribute in you img tag.
You can also use the filters
rocket_lazyload_excluded_attributesorrocket_lazyload_excluded_srcto exclude specific patterns.Hi,
Please open a support thread, and provide us an URL with the issue, we’ll try to help you resolve this.
Hi,
All images flagged on PageSpeed for the mobile test are background images, which can’t be lazyloaded currently.
Sorry about this issue.
Do you think you can share the URLs of the pages affected? We would like to have a look at the source code and test our code against it to see where it is failing.
That would be very helpful to improve the plugin.
I just had another look at the page, and now it seems to be working correctly even with lazyload?
Hi,
This is going to be fixed in the next version of the plugin.
Yes there is, you can use the following code:
function change_rocket_lazyload_placeholder() { return "data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201%201'%3E%3C/svg%3E"; } add_filter('rocket_lazyload_placeholder', 'change_rocket_lazyload_placeholder');Hi,
It’s an oversight indeed, and we’re going to fix this in the next version of the plugin
Hi,
You can use the following code to prevent the issue:
add_filter( 'rocket_lazyload_excluded_attributes', function( $excluded_attributes ) { $excluded_attributes[] = 'soliloquy-image'; return $excluded_attributes;} );
- This reply was modified 7 years, 3 months ago by WP Rocket.