0

I am looking for an HTML compressor/minimizer written in Javascript. Say, I have a Javascript variable containing some HTML code, I want to pass it to a Javascript function that will remove unecessary spaces, comments, etc... Does such tool exist? I can't find any...

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
  • It would help if you added "minifier" to your dictionary of search words. –  May 14 '13 at 10:43

1 Answers1

0

Is there a specific reason for a javascipt minimizer?

If you are worried about your website loading time, then why not try head.js()?

You can see the change if you have a large number of libraries.

But if you have really want to minify, there is AJAX minifier

I used it just now and works wonderful.

A_AR
  • 508
  • 2
  • 6
  • 20