[wp-trac] [WordPress Trac] #36791: Set load order when enqueuing scripts and styles

WordPress Trac noreply at wordpress.org
Tue May 10 13:10:55 UTC 2016


#36791: Set load order when enqueuing scripts and styles
--------------------------------------+------------------------------
 Reporter:  logistiker                |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Script Loader             |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by logistiker):

 add_action is for function calls and in this case the only call is to
 print scripts and has no bearing on the queue order of scripts or styles.
 The point of adding an offset is so you don't have to worry about the
 order in which the style or script is enqueued and it allows you to
 override code that is not in your control like core functionality or
 plugins without modifying them.

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


More information about the wp-trac mailing list