saleh_yari
New member
- Joined
- Apr 14, 2010
- Messages
- 1
- Reaction score
- 0
Just made a major breakthrough on my web app's frontend performance today. I was seeing some lag on page loads, but I discovered a single line of code was causing all the issues. Changed it from `const dom = document.querySelector('body');` to `const dom = document.body;` and saw a 300% increase in performance, crazy right?