任何只结合 Web 应用程序所需的 css 和 js 的好方法
我一直在改进 Web 应用程序前端的结构,并完成了诸如组合和缩小 css/js 文件、版本文件以及构建一些模板之类的工作。然而,我正在查看一些网络工具,它说有大量未使用的 js/css。有什么建议吗 -发现完全必要的代码 - 组合、缩小页面的正确代码并对其进行版本控制 我主要寻找逻辑建议,任何代码示例都会很棒。我专门在 apache 上使用 python、cheetah templates、yui-compressor、modified time for versioning、mod_rewrite 和 gzip
I have been improving the structure of a web app's frontend and have done things like combine and minify css/js files, version files, and building out some templates. However I was looking at some web tools and it is saying there is a ton of unused js/css. Are there any suggestions on
-discovering the completely necessary code
-combining, minifying, and versioning the right code for the page
I am mainly looking for like a logical suggestion any code samples would be great. I am specifically using python, cheetah templates, yui-compressor, modified time for versioning, mod_rewrite and gzip on apache
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Dust-Me Selectors Firefox 扩展以简化 CSS:
对于 JavaScript,请查看 Google Closure 编译器,它可以计算代码中的相互依赖关系并删除裁员。
Check out the Dust-Me Selectors Firefox extension for streamlining CSS:
For JavaScript, take a look at the Google Closure Compiler which can calculate codependencies within your code and remove redundancies.