zhanjh / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Use jsmin PHP extension at http://www.ypass.net/software/php_jsmin/ #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
Just to know if you have take a look at this php extension:
http://www.ypass.net/software/php_jsmin/

i've tried it in a project, and have integrated it into minify just with that: 

class Minify_ExtJsmin {
    public static function minify($code, $options = array())
    {
        return jsmin($code);
    }
}

For big groups of js files, the generation time passed from 2s to 30ms...
awesome.

Maybe you could integrate this in minify sources ? 

Cheers

Xavier

Original issue reported on code.google.com by xlembo@gmail.com on 17 Dec 2009 at 1:22

GoogleCodeExporter commented 9 years ago
I'll give it a link, but 
1. I want Minify to stay as portable as possible for shared hosting users. 
2. Unless you're changing your JS files every few seconds, our server-side 
caching
makes the minification a small one-time cost.
3. It's unknown if this extension has fixed Issue 74
4. If rumors are true, Minify may have to abandon all use of JSMin due to 
Google Code
licensing restrictions. The relatively new JSMin+ is likely my second choice 
(if we
don't move the project).

Original comment by mrclay....@gmail.com on 17 Dec 2009 at 2:16