[wp-trac] [WordPress Trac] #51519: Remove use of jQuery ready()

WordPress Trac noreply at wordpress.org
Fri Mar 19 08:43:13 UTC 2021


#51519: Remove use of jQuery ready()
--------------------------+-------------------------
 Reporter:  wpnomad       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+-------------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 5.8


Comment:

 It looks like most of `jQuery(document).ready()` instances were removed in
 [50547] / #51812, but some are still left in these files:

 * `js/_enqueues/vendor/mediaelement/wp-playlist.js`
 * `js/_enqueues/vendor/plupload/handlers.js`
 * `js/_enqueues/vendor/swfupload/handlers.js`
 * `js/_enqueues/vendor/thickbox/thickbox.js`

 These are all either WordPress files (and not external dependencies) or
 "adopted" libraries that have been patched in the past (in the case of
 Thickbox), so should be safe to patch.

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


More information about the wp-trac mailing list