Re: [w3c/webcomponents] connectedCallback timing when the document parser creates custom elements (#551)

This is 😢 for now. Trying to minimize flash of non-upgraded children:

```
export default class TimeagoElement extends HTMLElement {
  constructor() {
    super()
    if (this.querySelector('time')) {
      this.init()
    } else {
      window.requestAnimationFrame(() => {
        this.init()
      })
    }
  }
  ...
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/551#issuecomment-289244101

Received on Saturday, 25 March 2017 22:32:40 UTC