Dear pals, I have an online app site which need 11 JS files including jQuery & D3.js files. I need to compress it into a single file and it's easy to use . I check some but need node.js and complex stuffs. I found http://jscompress.com/ but it's not working Application error in web site . Please advise a solution.
Thanks, Anes
https://github.com/dfsq/compressJS.sh but it is only for Linux
kromol;1286859 wrote:https://github.com/dfsq/compressJS.sh but it is only for Linux
Dear kromol, We are using Windows pc , please suggest a solution for Windows too.
have you tried soemthgin liek this
http://www.electrictoolbox.com/combine-minify-javascript-php/
DanInMA;1286909 wrote:have you tried soemthgin liek this http://www.electrictoolbox.com/combine-minify-javascript-php/
Dear Dan, As suggest in tutorial , I download the code from github and try it in my local wamp installation . The target file is created but it's blank (0 K content .
pls check the attachment
Download
Advise me
Why are you trying to compress Javascript?
You just include them in a <script tag and be done with it.
If you really want to be fancy, I can suggest that you load via AJAX.
There are few javascript online tools available at http://codebeautify.org you can try.. this might help.