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

WordPress Trac noreply at wordpress.org
Wed Aug 7 21:02:39 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  |
--------------------------------------+-----------------------------
Changes (by rickalee):

 * cc: ricka@… (added)


Comment:

 Number of JS/CSS requests in themes/plugins are simply getting out of
 hand.

 I would love to see this worked into core as part of enqueue. Better
 WordPress Minify plugin does the trick if you are a diligent developer and
 know which files to manually exclude such as CSS files containing path
 references to @font-face and admin-bar from concatenation.

 An additional argument to wp_register_script and wp_enqueue_script seems
 the most straightforward approach.  Integrate best practice into
 Underscores functions and the community will quickly start adoption.

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


More information about the wp-trac mailing list