[wp-trac] [WordPress Trac] #39784: Add jquery dependency to admin-bar.js

WordPress Trac noreply at wordpress.org
Sat Feb 4 11:51:39 UTC 2017


#39784: Add jquery dependency to admin-bar.js
----------------------------+-----------------------------
 Reporter:  rellect         |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.7.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 The admin-bar.js contains two implementations, one in vanilla js and the
 other in jquery.
 I'm suggesting adding jquery dependency to admin-bar.js, for two reasons:
 1. Looking at the recent changes in the file, only the jquery
 implementation is maintained.
 2. It's common practice to move jquery (and other js files) to footer,
 causing admin-bar.js to be loaded before jquery is available.

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


More information about the wp-trac mailing list