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

WordPress Trac noreply at wordpress.org
Wed Oct 24 00:22:21 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:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript
----------------------------+------------------------------
Changes (by dlh):

 * focuses:   => javascript
 * component:  Customize => Administration


Comment:

 Thanks for providing the code snippet.

 When I tested deferring jQuery, I got errors throughout the admin, not
 just the Customizer. For that reason, I'm moving this ticket out of the
 Customize component, as it doesn't appear to be specific to the
 Customizer. (#30277 might be the most likely source of any Customizer-
 specific refactoring.)

 You raise fair points about how theme developers can load jQuery, but I
 wonder whether theme developers should also limit their changes to `!
 is_admin()` or `! is_customize_preview()` so the effects are limited to
 theme templates.

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


More information about the wp-trac mailing list