[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
Wed Mar 10 16:32:13 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
--------------------------+-------------------------
Changes (by vladytimy):

 * focuses:   => javascript


Comment:

 I think I found out the source of the problem:

 {{{wp.domReady()}}} that controls the code handling the Image comparison
 doesn't behave properly in all browsers.
 - If that function content is called in the console it works fine on the
 first load
 - If that function is called by a {{{setTimeout()}}} instead, it works
 fine on the first load

 so  {{{wp.domReady()}}} is most likely to be the source of the issue here

 Now we need someone that knows how to fix that. I'll see if I find any
 documentation on how that works.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52758#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list