HTML 整页缩小工具?
我有一个相当独立的页面,我想让它尽可能小:内联最小化 Javascript 和最小化 CSS,然后最小化 HTML 本身。每个部分都有相应的工具,但我想避免编写将所有这些部分组合在一起的粘合剂。开源将是理想的选择。
I have a fairly stand-alone page, and I'd like to make it as small as possible: inline minimized Javascript and minimized CSS, and then minimize the HTML itself. There's tools for each of these parts, but I'd like to avoid writing the glue for putting all of these together. Open source would be ideal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试http://code.google.com/p/htmlcompressor/
编辑< /em>
虽然这样做会使代码读取部分变得更加复杂,从而导致调试会很痛苦。仅在所有其他所需的优化到位后才执行此操作。
try http://code.google.com/p/htmlcompressor/
EDIT
Although doing it will make the code reading part a lot more complex and as a result, debugging will be a big pain. Do it only after you have all the other required optimization in place.
我不确定您是否会找到一种可以完成所有工作的工具,但我见过一些确实能完成不错的工作......但对我来说通常与其他工具结合使用。
http://code.google.com/speed/page-speed/
Page speed是一个firefox插件,也是一个apache模块
I'm not sure if you're going to find one tool that does all, but I've seen a few that do get a decent job done..... for me normally combined with other tools though.
http://code.google.com/speed/page-speed/
Page speed is a firefox plugin, and is also an apache module
查看 Pretty Diff 工具,网址为 http://prettydiff.com/?m=minify&html
您还可以使用 s 参数告诉工具指向给定页面,例如:
http://prettydiff.com/?m=minify&html&s=https://stackoverflow.com/
Check out the Pretty Diff tool at http://prettydiff.com/?m=minify&html
You can also tell the tool to point to a given page with the s parameter, such as:
http://prettydiff.com/?m=minify&html&s=https://stackoverflow.com/