[wp-trac] [WordPress Trac] #45130: Defer jQuery WordPress Admin & Customizer doesn't work properly

WordPress Trac noreply at wordpress.org
Thu Oct 25 07:28:58 UTC 2018


#45130: Defer jQuery WordPress Admin & Customizer doesn't work properly
----------------------------+------------------------------
 Reporter:  remzicavdar     |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript
----------------------------+------------------------------

Comment (by remzicavdar):

 If we upgrade jQuery we could do something like this:
 {{{
 jQuery = jQuery.noConflict(); // I think we are already using this
 somewhere

 jQuery(function( $ ) {
    // $ Works! You can test it with next line if you like
    // console.log($);
 });
 }}}
 In this way we could ensure backwards compatibility. Or if we are not
 upgrading jQuery we should do something like this:


 {{{
 jQuery = jQuery.noConflict(); // I think we are already using this
 somewhere

 jQuery(document).ready(function($) {
    // $ Works! You can test it with next line if you like
    // console.log($);
 });
 }}}

 Shall I check/test this? I could first test with the old jQuery?

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


More information about the wp-trac mailing list