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

WordPress Trac noreply at wordpress.org
Fri Oct 19 13:35:56 UTC 2018


#45130: Defer jQuery WordPress Customizer doesn't work property
--------------------------+-----------------------------
 Reporter:  remzicavdar   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.9.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If I defer jQuery or put jQuery in the footer. I get Uncaught
 ReferenceError: jQuery is not defined errors in the WordPress Customizer
 and the Customizer doesn't work, like for example changing theme logo,
 adding widgets or other things directly possible in the page.

 When I remove defer, everything works as expected.

 Maybe this is because document ready is not used? I have been checking
 this issue myself.
 The following files are effected:
 - wp-includes/js/mediaelement/mediaelement-migrate.min.js
 - wp-includes/js/wp-a11y.min.js
 - wp-includes/js/customize-base.min.js
 - wp-includes/js/customize-preview.min.js
 - wp-includes/js/mediaelement/wp-mediaelement.min.js
 - wp-includes/js/wp-util.min.js
 - wp-includes/js/mediaelement/wp-playlist.min.js
 - wp-includes/js/customize-selective-refresh.min.js
 - wp-includes/js/customize-preview-widgets.min.js
 - wp-includes/js/customize-preview-nav-menus.min.js

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


More information about the wp-trac mailing list