sIFR js 文件可以合并为 1 个 js 文件吗?
在新的sifr 3中,作者实现了将css文件合并为1个文件的功能。总共有 4 个 .js 文件,我想知道是否有任何想法如何组合这些文件以加快客户端的加载时间,而且我想知道是否有任何方法可以将 sIFR css 样式包含在已经存在的文件中现有的 css 文件。
这些修改将大大减少最终用户的负载/等待时间,我想知道是否有任何关于即将到来的构建的想法,或者是否有任何关于如何实现这个想法的想法。
In the new sifr 3, the author has implemented the ability to combine the css files into 1 file. There are 4 .js files total and I was wondering if there were any ideas how to combine these files for a faster loading time on the client side and also I was wondering if there was any way to just include the sIFR css styles in an already existing css file.
These modifications would greatly decrease the load/waiting time on the end user and I was wondering if there was any thought for that on upcoming builds or if there were any ideas on how to accomplish this idea.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在生产中实际部署的应该只有两个 JavaScript 文件,但是,您可以将它们组合起来。只是不要尝试自己压缩
sifr.js
,它已经为您压缩了。There should be only two JavaScript files actually deployed in production, but yes, you can combine them. Just don't try to compress the
sifr.js
yourself, it's already compressed for you.