[wp-trac] [WordPress Trac] #3372: Consolidated JavaScript/CSS Plugin API

WordPress Trac noreply at wordpress.org
Thu Aug 1 21:44:42 UTC 2013


#3372: Consolidated JavaScript/CSS Plugin API
--------------------------------------+-----------------------------
 Reporter:  robertaccettura           |       Owner:  anonymous
     Type:  feature request           |      Status:  reopened
 Priority:  lowest                    |   Milestone:  Future Release
Component:  JavaScript                |     Version:  2.1
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+-----------------------------

Comment (by joshbroton):

 While there are plugins that accomplish this, as the web moves more to
 mobile, it becomes increasingly important to concatenate and minify
 JS/CSS. We'd be helping the entire Internet by making this core
 functionality.

 I'd love to see another parameter of the wp_enqueue_script() function:
 $in_concat_group, that allows the developer to specify a group that the
 script gets added to. WordPress could then cache that concatenated version
 until a script is replaced or an admin requests a re-concat.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/3372#comment:40>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list