Simple Performance tips for JS
REDUCE ACTIVITY IN LOOPS
Each statement in a loop, including the for statement, is executed for each iteration of the loop.
Bad:
for (let i = 0; i < arr.length; i++) {
Better Code:
let l = arr.length;
for (let i = 0; i < l; i++) {
Reduce DOM size...
fromhimalayas.hashnode.dev1 min read