https://bugzilla.wikimedia.org/show_bug.cgi?id=34905
Web browser: ---
Bug #: 34905
Summary: JSMinifier: Skip '+' when both side is a literal
Product: MediaWiki
Version: 1.20-svn
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Sometimes a javascript literal has a break to add a manually newline or to
break wikisyntax (like signature, the tracking of cats and templates of script
pages was changed in 1.19, but many scripts are using that in production), but
in that case it is possible for the minifier to skip the quotes and the plus
and save three bytes.
For the javascript literal with slash at the end the minifier can change that
to a single literal to save two bytes (slash and newline).
"te"+"xt"
=> "text"
"te /
xt"
=> te xt"
Only when someone has fun to do it. Thanks.
--
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