Skip to content

Commit fdce923

Browse files
authored
Fix typo
1 parent 48ba9e4 commit fdce923

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/snippets/js/s/passive-scroll-listener-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ excerpt: Scroll listeners can easily become a performance bottleneck for your we
1010
dateModified: 2023-03-07
1111
---
1212

13-
When working with scroll listeners in JavaScript, one can often run into performance issues. This is because scroll listeners are triggered on **every single scroll event**, which can be quite frequent. Most of the time, such listeners are used for infinite scrolling and lazy loading, meaning that the scroll event won't be intercepted. As such, `Event.preventDefault()` will not be called, guving us an optimization opportunity.
13+
When working with scroll listeners in JavaScript, one can often run into performance issues. This is because scroll listeners are triggered on **every single scroll event**, which can be quite frequent. Most of the time, such listeners are used for infinite scrolling and lazy loading, meaning that the scroll event won't be intercepted. As such, `Event.preventDefault()` will not be called, giving us an optimization opportunity.
1414

1515
```js
1616
window.addEventListener('scroll', () => {

0 commit comments

Comments
 (0)