Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequireJS 配置从 CDN 加载 jQuery #1

Open
synzhang opened this issue Oct 3, 2013 · 0 comments
Open

RequireJS 配置从 CDN 加载 jQuery #1

synzhang opened this issue Oct 3, 2013 · 0 comments

Comments

@synzhang
Copy link
Owner

synzhang commented Oct 3, 2013

当前 RequireJS 配置上,jQuery 是合并在每个 Page 的 main 模块中的,导致每个 main 模块文件过大,而且每次加载新页面都需要重复下载 jQuery 部分,这样反而导致性能恶化。

因此需要配置将 jQuery 独立出来,从 CDN 加载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant