Polymer and WebComponentsReady event

前端 未结 1 1952
礼貌的吻别
礼貌的吻别 2020-12-06 10:15

According to the Polymer docs, the WebComponentsReady event is necessary because...

The polyfills parse element definitions and handle th

相关标签:
1条回答
  • 2020-12-06 10:29

    In Polymer 1.0 you can just listen for WebComponentsReady.

    In Polymer 0.5, because it does more things asynchronously, there's an extra event called polymer-ready which will fire when your elements are loaded. Here's a jsbin showing the order.

    0 讨论(0)
提交回复
热议问题