#18779 closed enhancement (wontfix)

Concatenate localised script data

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

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)

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

  • 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.