[wp-trac] [WordPress Trac] #50564: Update jQuery step two
WordPress Trac
noreply at wordpress.org
Mon Oct 12 12:32:22 UTC 2020
#50564: Update jQuery step two
-------------------------------------------+-------------------------
Reporter: azaozz | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.6
Component: External Libraries | Version:
Severity: normal | Resolution:
Keywords: early has-patch needs-testing | Focuses: javascript
-------------------------------------------+-------------------------
Comment (by malthert):
I would like to add that all jQuery .ready() should be changed too in all
WP included js.
As of 3.0 $( handler ) should be used instead of $( document ).ready(
handler ) (and similar. see: https://api.jquery.com/ready/), as it is
measurably faster and the recommended syntax.
Please let me know if I should create a separate ticket for this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50564#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list