缩小嘶嘶声
我找不到缩小的嘶嘶声=( 如果我尝试用 yuicompressor 自己制作,那么之后某些功能将无法使用。 请帮忙。
I can't find minified sizzle =(
And if i trying to make it myself by yuicompressor, after that, some features not work.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Sizzle 的基本功能可以这样复制:
全部完成。不需要图书馆。
The basic function of Sizzle can be replicated as such:
All done. No need for library.
获取此处的最新未压缩版本并使用其中任何一个免费压缩它工具:
以上都是粘贴/获取结果,而不是控制台应用程序,所以很快就能得到结果。不维护缩小版本的原因是它并不意味着成为一个独立的库,而是集成到使用它的任何内容中......因此整个库的构建过程/缩小,例如 jQuery 或 Prototype 2.0 将包括缩小 Sizzle。
Get the latest uncompressed version here and compress it using any of these free tools:
The above are all paste/get result, not console applications, so pretty quick to get results. The reason a minified version isn't maintained is it's not meant to be a standalone library, but rather integrated into whatever's using it...so the build processes/minification of the whole library, e.g. jQuery or Prototype 2.0 would include minifying Sizzle.
尝试使用 http://fmarcia.info/jsmin/test.html 处的压缩器来压缩就靠你自己了。
Try using the minifier at http://fmarcia.info/jsmin/test.html to minify it on your own.
Sizzle 网站声称“压缩和压缩后只有 4KB”。
大多数网络服务器提供压缩(透明)的内容。
所以我想如果你缩小它,然后你的网络服务器将其压缩,那么传输将只有4K。您可以使用数据包捕获工具(如wireshark)进行检查。我认为没有办法在 HTML 源代码中包含压缩脚本,它必须在服务器级别完成。
The sizzle website claims "Only 4KB minified and gzipped".
Most webservers serve the contents gzipped (transparently).
So I guess if you minify it, then your webserver serves it gzipped, then the transmission will only be 4K. You can probably check that with a packet capture tool (like wireshark). I don't think there is a way to include a gzipped script in your HTML sources, it has to be done at the server level.