Page MenuHomePhabricator

Security review for tedivm/jshrink
Closed, DeclinedPublic

Description

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.

Event Timeline

ori raised the priority of this task from to Needs Triage.
ori updated the task description. (Show Details)
ori subscribed.

Change 230811 had a related patch set uploaded (by Ori.livneh):
Add tedivm/jshrink

https://gerrit.wikimedia.org/r/230811

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)

Also does it support ES5/ES6 features? (T96901/T75714)

Yes. The JavaScript snippets included in each of those two bug reports are minified properly by JShrink.

ori changed the task status from Open to Stalled.Aug 12 2015, 9:10 PM

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.

csteipp moved this task from Ready to Incoming on the Security-Team board.
ori claimed this task.

JShrink does not compress any better than JSMinPlus, sadly. My measurements were wrong.

Change 230811 abandoned by Reedy:
Add tedivm/jshrink

Reason:
Actually, I see the task was declined

https://gerrit.wikimedia.org/r/230811