Iframe loading lazy
This module improves page performance by automatically adding lazy loading to all iframes on your website, ensuring they only load when visible in the viewport. This helps reduce initial load times and save bandwidth.
Adds lazy loading to iframes to improve page performance. Automatically adds loading="lazy" to all iframes on your site, ensuring they only load when they enter the viewport. This reduces initial page load time and saves bandwidth.
Features
Automatically adds loading="lazy" to all iframes.
Works with any iframe, including embedded videos, maps, and other third-party content.
Lightweight and requires no configuration after installation.
Improves page performance and Core Web Vitals scores.
Post-Installation
No configuration needed! The module works automatically after enabling.
All iframes on your site will have the loading="lazy" attribute added unless they already have a loading attribute.
Additional Requirements
None. Works with Drupal core only.
Recommended modules/libraries
None required, but works well with other performance modules like "Lazy-load" for images.