[wp-trac] [WordPress Trac] #21633: Switch to min.js convention

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 20 06:40:46 UTC 2012


#21633: Switch to min.js convention
----------------------------+------------------
 Reporter:  nbachiyski      |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------

Comment (by scribu):

 Replying to [comment:7 azaozz]:
 > so we would be fishing in the $deps array for other args.

 Yeah, you're right. So maybe after it:

 {{{
 wp_register_script( $handle, $src, $deps = array(), $args = array() );
 }}}

 > The same could probably be accomplished by looking for .min.js or
 .min.css in the registered script or stylesheet and expecting there are
 non-minified versions without the suffix.

 Yes, but only if we ship non-minified versions of all the third-party
 libs, like jQuery, which we don't.

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


More information about the wp-trac mailing list