Is it true that adding an event listener on scroll like the bellow example is going to fire 1000s events and is bad for performance?
window.addEventListener('scroll', () => {
const myDiv = document.querySelector('#my-div')
if(myDiv) {
myDiv.style.top = '60px';
}
console.log('SCROLLING');
})