Polymer 聚合物未定义,Firefox中出现引用错误

Polymer 聚合物未定义,Firefox中出现引用错误,polymer,polymer-1.0,Polymer,Polymer 1.0,这个简单的代码缺少什么,在Firefox中失败,而在Chrome中工作正常 <!DOCTYPE html> <html> <head> <base href="//polygit.org/components/"> <script src="webcomponentsjs/webcomponents.js"></script> <link rel="import" href="paper-material/paper-

这个简单的代码缺少什么,在Firefox中失败,而在Chrome中工作正常

<!DOCTYPE html>
<html>
<head>
<base href="//polygit.org/components/">
<script src="webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="paper-material/paper-material.html">

<dom-module id="ui-firefox">
  <template>    
    <paper-material>Can you see me in Firefox?</paper-material>
  </template>
  <script>
    Polymer({
      is: "ui-firefox",
      ready: function(){ console.log("Am I ready?"); }
    });
  </script>
</dom-module>

</head>
<body>
  <ui-firefox> </ui-firefox>
</body>
</html>

你能在Firefox中看到我吗?
聚合物({
是:“ui firefox”,
ready:function(){console.log(“我准备好了吗?”);}
});
这里有小提琴样品

我读过一些帖子,但我找不到这个简单案例的解决方案

提前感谢,Fausto我猜Firefox以不同的方式加载HTML导入


当在
index.html
中定义
dom模块时,建议将其包装在
HTMLImports.whenReady(function(){…})
中。在遵循该建议后,您的作品在Firefox和Chrome中的这个修改版本。

我猜Firefox以不同的方式加载HTML导入


当在
index.html
中定义
dom模块时,建议将其包装在
HTMLImports.whenReady(function(){…})
中。在遵循该建议后,您的作品在Firefox和Chrome中都得到了修改。

的确,非常简单,而且有很好的文档记录。仍然有很多东西需要学习,但很享受,非常感谢你让我漂浮起来,真的,很容易,而且有很好的记录。还有很多东西要学,但很享受,非常感谢你让我浮出水面