Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to combine multiple javascript files into one... [closed]

Tags:

javascript

Is there a tool which can combine multiple javascript files into one and then compress them?

like image 841
Dmitriy Sosunov Avatar asked Feb 09 '11 15:02

Dmitriy Sosunov


2 Answers

Yahoo - YUI Compressor

Google - Closure Comipler (+ Online Service)

JSMin - the JavaScript minifier

Packer

Combining JSMin and Packer into a command line tool - SmallSharpTools Packer

like image 67
Ryan Avatar answered Sep 28 '22 08:09

Ryan


For PHP, try Minify: http://code.google.com/p/minify/

From the docs:

Minify is a PHP5 app that helps you follow several of Yahoo!'s Rules for High Performance Web Sites.

It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

like image 24
payne Avatar answered Sep 28 '22 08:09

payne