If the loading attribute is not supported by the browser, the plugin falls back to JavaScript solution based on IntersectionObserver. For the case that JavaScript is disabled, but the loading attribute is supported by the browser, variant of the element will be added that also includes the loading attribute without any further changes... However, the solutions for lazy-loading so far still added bit of overhead themselves, since they relied on loading, parsing and running custom JavaScript logic, that may be more or heavy on performance.. Upload the entire native-lazyload folder to the wp-content plugins directory or download it through the WordPress backend.. Activate the plugin through 'Plugins WordPress... Note that the plugin loads JavaScript file as fallback for when the browser does not support the native loading attribute yet. Still, the plugin is built in way that it will not break AMP compatibility, just to make sure... If you have technical issue with the plugin where you already have more insight on how to fix it, you can also open issue on Github instead... If you have some ideas to improve the plugin or to solve bug, feel free to raise issue or submit pull request in Github for the plugin. Interested in development.., check out SVN repository, or subscribe to the development log by RSS...
Read more