You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at a handful of options around the idea of element queries. I just pulled your repo and did a small experiment that made me curious about performance.
Essentially, I generated 1000, then 2000, then 3000 DOM nodes with a single class using element queries just to test the impact on the page. A quick snippet:
<!-- using angular to make the DOM, class="tester" is the one node with the queries --><divng-controller="list.items"><divng-repeat="item in list" layoutrowoutline><divoutline>{{item.id}}</div><divflexoutlineclass="tester">{{item.random}}</div><divoutline>{{item.string}}</div></div></div>
The queries I used are the same as those from the README.md file, just changing header to .tester:
Back Alley Coder has a good write up, has a lot to say about performance, and an implementation. I'm experimenting with an Angular Directive based approach, but not quite ready to roll yet. There are a few others here and there.
I'm looking at a handful of options around the idea of element queries. I just pulled your repo and did a small experiment that made me curious about performance.
Essentially, I generated 1000, then 2000, then 3000 DOM nodes with a single class using element queries just to test the impact on the page. A quick snippet:
The queries I used are the same as those from the README.md file, just changing
header
to.tester
:What I found was interesting.
So there is a pretty massive performance hit. At minimum this should probably be addressed in the README file.
The text was updated successfully, but these errors were encountered: