JShrink (tedivm/jshrink) is a pure-PHP library for minifying JavaScript. It attains better compression than JSMinPlus, which is the library we currently use. I propose to replace JSMinPlus with JShrink.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add tedivm/jshrink | mediawiki/vendor | master | +1 K -1 |
Related Objects
Related Objects
Event Timeline
Comment Actions
What is the memory usage of this library like? (T31784: ResourceLoader: JsMinPlus is too memory hungry (memory leaks?)) Also does it support ES5/ES6 features? (T96901/T75714)
Comment Actions
Yes. The JavaScript snippets included in each of those two bug reports are minified properly by JShrink.
Comment Actions
Please hold off on this for a bit -- I am now seeing results which contradict my earlier findings, and I worry that I made a mistake.
Comment Actions
JShrink does not compress any better than JSMinPlus, sadly. My measurements were wrong.
Comment Actions
Change 230811 abandoned by Reedy:
Add tedivm/jshrink
Reason:
Actually, I see the task was declined