【发布时间】:2009-11-07 16:34:30
【问题描述】:
是否有与 Google 的 Closure Compiler 等效的用于 HTML 最小化的方法?
【问题讨论】:
标签: html minify google-closure google-closure-compiler
是否有与 Google 的 Closure Compiler 等效的用于 HTML 最小化的方法?
【问题讨论】:
标签: html minify google-closure google-closure-compiler
我猜你的意思是 Closure 编译器,它可以有效地压缩 javascript。如果您在the goog 中搜索“HTML Compressor”,您会发现有很多适合个人需求的选项。
【讨论】:
【讨论】:
我觉得你可以试试google的mod_pagespeed,它会缩小响应内容。
【讨论】:
我编写了一个 python 脚本,替换 pushlish 中的所有 id 和类名。该脚本为每个类名和 id 生成唯一的令牌,并在 javascript、css 和 html 模板文件中替换。它对我很有用
【讨论】: