Feature request
Join 600.000 users and install The Privacy Suite for WordPress locally, automated or fully customized, and access our awesome support if you need any help!
Feature request
Missing a feature? Add a feature request and we will review your request. We might ask for more information if needed.
- 600.000+ Users
- Awesome Support
- Easy Configuration for Complex Features
- 30-Day Money Back Guarantee
Support wp-rocket iframe lazy loading
Hi,
I want propose to support wp-rocket iframe lazy loading.
I have read the rationale behind the decision to disable it here: https://wordpress.org/support/topic/wp-rocket-integration/#post-13241154. But the iframes are not lazyloaded for users not needing the banner. Also in the forum answer, it’s said that “If an iframe is blocked by Complianz, it is effectively lazy loaded” but , if the iframes is outside the viewport, this is not true, as Complianz will load it anyway.
Not lazy loading the iframes(YT in this case) , make webVitals go down.
Moreover the native iframe lazy loading is not available on Firefox and Safari https://caniuse.com/loading-lazy-attr, and the wp-rocket lazy loading has a different threshold https://docs.wp-rocket.me/article/1292-chrome-native-lazyload
To support it, you could the same you are doing for native one, i.e. rename the element’s attribute if has to blocked, and use it when unblocked
Thanks
Top Requests
- 6.0 Get rid of jQuery - Vanilla JS 1142 Votes
- 6.0 Build cookie banners with Elementor Pop-ups 260 Votes
- 6.0 Automatically accept services for bots? 123 Votes
- 5.2 New Region: South Africa POPIA 56 Votes
- Extra US States and Update for California 45 Votes