Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18779 closed enhancement (wontfix)

Concatenate localised script data

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

Description

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
15 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
15 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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.