I have a .html document with CSS and Javascript inside of document (no external files). Is there some online tool that would minify document and Javascript to some very small footprint? I saw many scripts kind of unreadable, where all variables and function names are replaced with one-letter names, etc. Please advice.
Share
Edit 2 (Feb 22, 2017): Now the best tool to minify your assets (and a whole lot more, by adding loaders and plugins) is definitely Webpack.
Example of config to move all your
.cssin one file and minify it:Edit 1 (Sept 16, 2014): Even better, now you have task runners like Gulp or Grunt.
Must read: Getting started with Gulp.js
Example of task with JavaScript concatenation and minification (and JSHint):
Original answer (Jul 19, 2012): I advise the HTML5 Boilerplate Build Script which can minify your JS and CSS.