3 ms·
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.
by spankalee 10y ago
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.
- gambler 10y agoYou 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.