聚合物元素有CDN吗? [英] Is there CDN for polymer elements?

查看:85
本文介绍了聚合物元素有CDN吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道聚合物元素是否有CDN,因为您必须始终下载元素,因此通过CDN导入它会更方便.在Google上找不到任何内容?还有什么理由不存在它,或者仅仅是因为它太新了?

I would like to know if there are any CDNs for polymer elements, since you have to always download the elements and It would be more convinient to import it via cdn. Can't find any on google? Also are there any reasons that it does not exists or just because it is so new?

推荐答案

我目前不知道任何托管聚合物元素的CDN,我认为在生产环境中vulcanize会更好.大多数元素都托管在github上,您可以将导入链接到rawgit.com

I do not know any CDN hosting polymer elements right now and I assume it would be better to vulcanize them for a production environment but due to the fact that most of the elements are hosted on github you could link your imports to rawgit.com

示例:

<link rel="import" href="https://rawgit.com/Polymer/core-ajax/master/core-ajax.html">

这篇关于聚合物元素有CDN吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆