We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我会抛出 require.js 供考虑。它会动态地将 script 和 css 标签添加到
中,因此它可以很好地异步工作。它还会将所有 js 优化到一个文件中,因此如果您的项目像我的一样,您将有数十个 js 文件正在开发中(我认为我们大约有 100 个),但只有 1 个用于生产。
我唯一还没有开始工作的是 css 文件的优化,尽管显然它已经完成了。
祝你好运
I would throw require.js up for consideration. It will dynamically add script and css tags to the
<head>
so it works nicely asynchronously. It will also optimize all your js into one file so if you project is like mine you'll have dozens of js files in development (I think we have about 100) but only 1 for production.The only thing I haven't got working yet is the optimization of the css files though apparently it has been done.
Good luck