Get started with html-minifier CDN
MIT licensed
The HTML Minifier is a lightweight library that removes unnecessary characters, comments, and whitespace from HTML code to reduce its size and improve page load times.
Tags:- cli
- compress
- compressor
- css
- html
- htmlmin
- javascript
- min
- minification
- minifier
- minify
- optimize
- optimizer
- pack
- packer
- parse
- parser
- uglifier
- uglify
Stable version
Copied!
How to start using html-minifier CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with html-minifier CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/html-minifier/4.0.0/htmlminifier.min.js"></script>
<script>
const minify = async () => {
const originalHTML = document.documentElement.outerHTML;
const minifiedHTML = await htmMin.minify(originalHTML);
document.documentElement.outerHTML = minifiedHTML;
};
minify();
</script>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a minified example using HTML Minifier.</p>
</body>
</html>
Copied!
Copied!
All versions
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.4.5
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2
0.8.0
0.8.1
1.0.0
1.0.1
1.1.1
1.2.0
1.3.0
1.3.1
1.4.0
1.5.0
2.0.0
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
3.0.0
3.0.1
3.0.2
3.0.3
3.1.0
3.1.1
3.2.0
3.2.3
3.3.0
3.3.1
3.3.2
3.3.3
3.4.0
3.4.1
3.4.2
3.4.3
3.4.4
3.5.0
3.5.1
3.5.10
3.5.11
3.5.12
3.5.13
3.5.14
3.5.15
3.5.16
3.5.17
3.5.18
3.5.19
3.5.2
3.5.20
3.5.21
3.5.3
3.5.4
3.5.5
3.5.6
3.5.7
3.5.8
3.5.9
3.6.0
*** 4.0.0