Re: [w3c/webcomponents] Need "slotchange" event (#288)

FWIW We've implemented the `slotchange` in a [prollyfill](https://github.com/skatejs/named-slots/blob/3e4e0f79a440d0cc264385e845e92a42bdbf23d3/src/index.js#L176) and the overhead in triggering a debounced event is minimal, though it is noticeable in benchmarks. From the small amount of practical experience we have using it, it seems to do what we need quite nicely.

We also spiked attaching added / removed nodes as detail to the event since we could record which nodes have been slotted / unslotted since the last event was triggered. We ended up removing it since we weren't sure what was happening in this thread and we didn't have a valid use case for it. That said, it didn't impact performance when reporting unflattened nodes.



---
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/288#issuecomment-203261033

Received on Wednesday, 30 March 2016 05:58:08 UTC