[wp-trac] [WordPress Trac] #36791: Set load order when enqueuing scripts and styles
WordPress Trac
noreply at wordpress.org
Tue May 10 09:12:37 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: | Focuses:
---------------------------+------------------------------
Changes (by swissspidy):
* component: General => Script Loader
Comment:
Hey there,
Welcome to trac and thanks for this patch!
Can you tell us a bit about why you implemented this or why you see a need
for this?
There's already way to set the load order, namely the `$priority`
parameter of `add_action()` and of course the order in which you enqueue
the scripts in your callback.
Adding an `$offset` parameter to `wp_enqueue_script/wp_enqueue_style` on
top of that sounds rather confusing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36791#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list