An event listener is associated with JavaScript and is used by the browser to track user inputs. Adding a passive: true or the (minified js equivalent) {passive:!0} flag to the event listener, tells the browser to allow page scrolling immediately, rather than wait for the script containing the event listener to finish executing.