Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Online JS / CSS / HTML minifier

Is there a service out there that provides public API for compressing CSS or Javascript?

(Like imgur let's you upload images trough PHP and get the image URL)

like image 861
Alex Avatar asked Aug 19 '11 09:08

Alex


People also ask

How do I minify HTML online?

Use your HTML URL to minimize. Click on the URL button, Enter URL and Submit. Users can also minify HTML files by uploading the file. Minify HTML Online works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.

Can I minify HTML?

To minify JS, CSS and HTML files, comments and extra spaces need to be removed, as well as crunch variable names so as to minimize code and reduce file size. The minified file version provides the same functionality while reducing the bandwidth of network requests.


1 Answers

Google Closure Compiler let's you send JavaScript code with POST request and returns optimalized code.

like image 160
Petr Peller Avatar answered Oct 23 '22 09:10

Petr Peller