If the callback is called before the images are loaded, the comparison doesn't work. `wp.domReady` uses `DOMContentLoaded`, which does not guarantee that the images are loaded. This switches to use the `load` event, which waits for all resources to load. Props vladytimy, joyously, sergeybiryukov. Fixes #52758. Built from https://develop.svn.wordpress.org/trunk@50535 git-svn-id: http://core.svn.wordpress.org/trunk@50148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
12 KiB
12 KiB