HTML在线最小化/压缩? [英] HTML online minimizer/compressor?
问题描述
有人知道一个好的在线生成器来获取HTML页面的源代码,并压缩/最小化整个页面。
Does anyone know of a good online generator to take the source code of an HTML page and compress/minimize the entire page.
意思,压缩/最小化所有嵌入CSS,JavaScript以及该网页的HTML,同时也删除不需要的HTML / CSS / JavaScript注释,空格,制表符等。
Meaning, compress/minimize all embedded CSS, JavaScript and obviously the HTML of that web page while also removing unneeded HTML/CSS/JavaScript comments, spaces, tabs, etc?
推荐答案
Juriy Zaytsev用JavaScript编写了一个HTML缩略词,您可以在此页面上使用: http://kangax.github。 com / html-minifier /
Juriy Zaytsev wrote an HTML minifier in JavaScript, which you can use online on this page: http://kangax.github.com/html-minifier/
警告说,它还是一个早期alpha,所以可能有bug。谨慎使用!
As the warning says, it’s still an early alpha, so there might be bugs. Use with caution!
这篇关于HTML在线最小化/压缩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!