mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
8bf7643c4b
Improve the check for sourceless or dimensionless media when determining if the lazy loading attribute should be added to iframes and images. Never include the lazy loading attribute on embeds of WordPress posts as the iframe is initially hidden. Including `loading="lazy"` on initially hidden iframes and images can prevent the media from loading in some browsers. Props adamsilverstein, fabianpimminger, flixos90, johnbillion, jonkastonka, joyously, peterwilsoncc, SergeyBiryukov, SirStuey, swissspidy. Merges [50682], [50683] to the 5.7 branch. Fixes #52768. git-svn-id: https://develop.svn.wordpress.org/branches/5.7@50684 602fd350-edb4-49c9-b593-d223f7449a82