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
When building the performance tests for #167 , I realized that even the input would become slow when lots of elements were on the page. In the performance tab on chrome, I saw the following warning:
You can see, that there are two purple blocks, both with the warning "forced reflow is a likely performance bottleneck". As detailed on stack overflow this issue stems from using querySelectorAll, which require the DOM to be fully rendered before the JS logic can continue. We do this in several places and should look into alternatives that are more performant.
The text was updated successfully, but these errors were encountered:
Right now we are using querySelectorAll as a shortcut to get the children of an element, but maybe we should use TreeWalkers or just recursively go through the DOM (even recursive JS may prove to be more performant)
Summary
When building the performance tests for #167 , I realized that even the input would become slow when lots of elements were on the page. In the performance tab on chrome, I saw the following warning:
You can see, that there are two purple blocks, both with the warning "forced reflow is a likely performance bottleneck". As detailed on stack overflow this issue stems from using
querySelectorAll
, which require the DOM to be fully rendered before the JS logic can continue. We do this in several places and should look into alternatives that are more performant.The text was updated successfully, but these errors were encountered: