[wp-trac] [WordPress Trac] #10582: Support for JavaScript concatenation

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 10 20:38:37 UTC 2009


#10582: Support for JavaScript concatenation
-----------------------------+----------------------------------------------
 Reporter:  emartin24        |       Owner:  azaozz                                    
     Type:  feature request  |      Status:  new                                       
 Priority:  normal           |   Milestone:  Unassigned                                
Component:  JavaScript       |     Version:                                            
 Severity:  normal           |    Keywords:  javascript, concatenate, wp_enqueue_script
-----------------------------+----------------------------------------------
 I realize concatenation is already supported, but I believe it is only in
 the admin section.

 What I am looking for is a way to use a concatenated file, but still
 utilize the features provided by wp_enqueue_script().

 I started a discussion on wp-hackers:
 http://groups.google.com/group/wp-
 hackers/browse_thread/thread/1b431b699bfa2eab

 I realize the complications of automatically concatenating files, dealing
 with plugins scripts, headers, footers, etc. However, I still think there
 should be a way to make it work.

 One idea is to allow us to pass in the same source file for
 wp_enqueue_script calls, which would allow the scripts to be registered,
 but then the print scripts function would only print out 1 line for the
 single file.

 Anyway, just wanted to open it up for discussion and see if there were any
 other ideas/suggestions/alternatives/etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10582>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list