Re:Introducing Custom Elements
by spankalee on Sunday November 20, 2016 @10:48AM
(#12999384)
So you have to run a querySelectorAll() across the whole document every time you want to update/upgrade your elements? That's not going to scale at all.
[ Parent
| on HN ]
You should actually try it before making such statements. It scales well enough. Also, we could use getElementsByTagName instead of querySelectorAll. But that's not important.
The point is that there are approaches to handling "components" with current APIs. They are simple, they work across all browsers right now and they are good enough for 99% of websites out there.