Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10582 closed feature request (duplicate)

Support for JavaScript concatenation

Reported by: emartin24's profile emartin24 Owned by: azaozz's profile azaozz
Milestone: Priority: normal
Severity: normal Version:
Component: JavaScript Keywords: javascript, concatenate, wp_enqueue_script, dup
Focuses: Cc:


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:

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.

Change History (3)

#1 @djr
15 years ago

  • Keywords dup added
  • Resolution set to duplicate
  • Status changed from new to closed

I believe this ticket is a duplicate and is best to be discussed in 3372.

#2 @westonruter
15 years ago

  • Cc westonruter added

Added description to #3372 of a plugin solution called “Optimize Scripts”:

#3 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.