-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Future]支持快速切换CDN加载js库 #783
Comments
想法不错。 不过要进行切换的前提是 cdn 之间包的存储是否采用相同的路径,我感觉这个不能受保证。 |
现在大部分的 这是我之前收集到的一些
|
#629 这个功能非常棒,这两天更新用上了非常不错,感谢作者~~~ |
我想知道 我有自己的 cdn 怎么破??? upyun 七牛 都有 |
为什么不把jquery.fancybox.css和font-awesome也加进去呢? |
jquery.fancybox.css 应该是要开放出去,避免版本不一致的问题。 FontAwesome 我还没想好怎么处理。 |
今天测试了一下。。。因为这几个 JS。。。加载硬是拖到 40S。。。 能否提供个 自定义 这几个 js 路径的功能? 我所有图片全部放在 upyun上。。。如果可以我想自己把这几个 js 拿下来放到自己的 cdn 上。 |
自己硬改是可以的。我猜作者应该在考虑fallback的处理。 |
@panzhitian jquery.fancybox.css 和 font-awesome 都可以设置 CDN 地址。 vendors:
# Internal path prefix. Please do not edit it.
_internal: vendors
# Internal version: 2.1.3
jquery: //cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js
# Internal version: 2.1.5
# Fancybox: http://fancyapps.com/fancybox/
fancybox: //cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.pack.js
fancybox_css: //cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.min.css
# Internal version: 1.0.6
fastclick: //cdn.jsdelivr.net/fastclick/1.0.6/fastclick.min.js
# Internal version: 1.9.7
lazyload: //cdn.jsdelivr.net/jquery.lazyload/1.9.3/jquery.lazyload.min.js
# Internal version: 1.2.1
velocity: //cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js
# Internal version: 1.2.1
velocity_ui: //cdn.jsdelivr.net/velocity/1.2.3/velocity.ui.min.js
# Internal version: 0.7.9
ua_parser: //cdn.jsdelivr.net/ua-parser.js/0.7.10/ua-parser.min.js
# Internal version: 4.4.0
# http://fontawesome.io/
fontawesome: //maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css |
See: 设置 「JavaScript 第三方库」 |
Expected behavior (预期行为)
支持


CDN
加速js
库,这是我自己改动后的效果Actual behavior (实际行为)
现在
source\vendors
目录下js
库存放的路径不能快速的切换到CDN
Steps to reproduce the behavior (重现步骤)
NexT Informations
Add the ✔ sign before an item which is affected by this behavior.
NexT Version:
NexT Scheme:
Other Informations (Like Browser, System, Screenshots)
The text was updated successfully, but these errors were encountered: