Closed azaozz closed 4 years ago
This brings some of the changes from https://github.com/WordPress/wp-lazy-loading/pull/9, but "scopes" them only for adding of the "loading" attribute to img tags and eventually to iframes.
Why was this merged? We were still discussing the propertiy here. https://github.com/WordPress/wp-lazy-loading/pull/10/files#r371407221
@spacedmonkey We'd like to release a first version of the plugin today, and this looked good to go for that. Things will continue to be iterated on, we can also continue discussing the hook priority (as I see you already opened #12 for that 👍).
Based on https://github.com/WordPress/wp-lazy-loading/pull/7.
wp_add_lazy_load_attributes()
.See: https://github.com/WordPress/wp-lazy-loading/pull/4.