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

WordPress Trac noreply at wordpress.org
Tue May 10 13:31:49 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):

 I think I might remove this block of code then to prevent core or plugin
 functionality from allowing me to override the order.  I would have to
 keep track of what is set on my side, but that's a small price to pay to
 give me control over the queue order.

 {{{#!php
 <?php
 while ( array_key_exists($offset, $this->offsets) ) {
     $offset++;
 }
 }}}

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


More information about the wp-trac mailing list