Polymer 使用Polygit.org聚合元素时出错
我使用Polymer CDN(Polygit.org)时出现以下错误:Polymer 使用Polygit.org聚合元素时出错,polymer,cdn,polygit,Polymer,Cdn,Polygit,我使用Polymer CDN(Polygit.org)时出现以下错误: 加载资源失败:服务器响应状态为404() 我的头标签有以下内容: <base href="https://polygit.org/components/" /> <script src="webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="polymer/polym
加载资源失败:服务器响应状态为404()
我的头标签有以下内容:
<base href="https://polygit.org/components/" />
<script src="webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="polymer/polymer.html">
<link rel="import" href="promise-polyfill/promise-polyfill-lite.html">
<link rel="import" href="iron-ajax/iron-ajax.html">
<link rel="import" href="iron-image/iron-image.html">
<link rel="import" href="paper-styles/demo-pages.html">
这是因为polygit.org作为其promise polyfill
组件提供服务,而不是由维护的fork
这可以通过将清单与存储库中找到的清单进行比较来验证。正如danielx所述,您必须包括PolymerLabs提供的promise polyfill
下一行将告诉polygit从github从polymerlabs组织获取最新版本的promise polyfill
:
<link href="https://polygit.org/promise-polyfill+polymerlabs+*/components/"
rel="import">
由于您能够成功加载其余文件,这意味着polygit
没有托管promise polyfill