https://bugzilla.wikimedia.org/show_bug.cgi?id=31286

Brion Vibber <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Normal                      |Lowest

--- Comment #1 from Brion Vibber <[email protected]> 2011-09-30 20:56:17 UTC 
---
Bumping priority down since it's a fairly rare case, but it'd be nice to fix!

JSMin+ (JSMinPlus) was patched in r98281 to accept Unicode chars & escapes in
identifiers for validation. A further tweak to have it retain the decoded form
for the escapes would result in slightly smaller output from JSMin+.

However, we actually do our minification using the faster (but not quite as
compressy) home-brewed JavaScriptMinifier -- so if we want that on MediaWiki
we'll need to poke that side. :)

For minification purposes, this may actually make a bigger impact on string
literals than identifiers: for instance WikiEditor's
jquery.wikiEditor.toolbar.config.js contains a butt-ton of single Unicode
characters as \uXXXX escapes -- every one is 6 bytes of source but would be 2-4
bytes if decoded.

That potentially saves a couple hundred bytes here. Not huge, but they add up.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to