Add the loading=lazy attribute to iframes coming from oEmbeds in content
Author: | Weston Ruter (profile at wordpress.org) |
WordPress version required: | 2.9 |
WordPress version tested: | 5.4.6 |
Plugin version: | 1.0.1 |
Added to WordPress repository: | 08-06-2020 |
Last updated: | 24-01-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://gist.github.com/westonruter/9a8cda730... |
Total downloads: | 830 |
Active installs: | 10+ |
Click to start download |
This plugin adds the loading=lazy
attribute to iframe
elements coming from oEmbeds. In WordPress 5.5, loading=lazy
is added to images per #44427, and in 5.7 it is being added to iframes as well per #50756.
This plugin will be obsolete by the time WordPress 5.7 is released. When that happens, this plugin will do nothing.