- From: Glen Huang <curvedmark@gmail.com>
- Date: Tue, 28 Apr 2015 14:13:43 +0800
- To: Elliott Sprehn <esprehn@chromium.org>
- Cc: public-webapps <public-webapps@w3.org>
Received on Tuesday, 28 April 2015 06:14:16 UTC
On second thought, if the list returned by getElementsByClass() is lazy populated as Boris says, it shouldn't be a problem. The list is only updated when you access that list again. > On Apr 28, 2015, at 2:08 PM, Glen Huang <curvedmark@gmail.com> wrote: > >> Live node lists make all dom mutation slower >> > Haven't thought about this before. Thank you for pointing it out. So if I use, for example, lots of getElementsByClass() in the code, I'm actually slowing down all DOM mutating APIs?
Received on Tuesday, 28 April 2015 06:14:16 UTC