[wp-trac] [WordPress Trac] #52758: 5.7 About Page: Image comparison doesn't work on first load on some browsers
WordPress Trac
noreply at wordpress.org
Thu Mar 11 19:36:08 UTC 2021
#52758: 5.7 About Page: Image comparison doesn't work on first load on some
browsers
--------------------------+-------------------------
Reporter: vladytimy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.7.1
Component: Help/About | Version: 5.7
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+-------------------------
Comment (by ryelle):
I'm pretty sure this happens when one of the images is not fully loaded
before the comparison script runs - it looks like `domReady` runs when the
page is loaded, not necessarily when all the assets are loaded. Switching
to [https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event the
window load event] should wait until all resources are loaded.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52758#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list