![Joe Hall on Twitter: "#FreeCodeFriday: Native lazy loading for iframes is now a thing! Today's code is derivative of the first code snippet I did for lazy loading images. Paste this into Joe Hall on Twitter: "#FreeCodeFriday: Native lazy loading for iframes is now a thing! Today's code is derivative of the first code snippet I did for lazy loading images. Paste this into](https://pbs.twimg.com/media/Ee1GRuaWkAQ9_uS.png)
Joe Hall on Twitter: "#FreeCodeFriday: Native lazy loading for iframes is now a thing! Today's code is derivative of the first code snippet I did for lazy loading images. Paste this into
![Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter](https://pbs.twimg.com/media/EchIETBXkAYuU3D.jpg)
Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter
![Output hooked to the_content is output after template parts in Block Based Themes · Issue #20342 · WordPress/gutenberg · GitHub Output hooked to the_content is output after template parts in Block Based Themes · Issue #20342 · WordPress/gutenberg · GitHub](https://user-images.githubusercontent.com/7538525/74971848-bd365d80-53ee-11ea-81e0-4a12f6fe7d27.png)