Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#18779 closed enhancement (wontfix)

Concatenate localised script data

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Performance Keywords:
Focuses: Cc:


It would be nice if script data added via wp_localise_script() was concatenated into one file instead of being output directly to the page.

I might do a patch if I have time this week.

Change History (2)

#1 @nacin
10 years ago

These kinds of hacks are necessary. The issue here is then WordPress will need to be loaded again, just to spit out some translations.

#2 @scribu
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Besides adding an extra request, having to load WP twice, you would also have to store the data somewhere, which opens a whole new can of worms: how do you store it, how do you invalidate it etc. etc.

Totaly impractical.

Note: See TracTickets for help on using tickets.