-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set passive to true for scroll event listener in ProgressiveLoad…
…ingContainer [DHIS2-9508] (#1084) A minor optimization that probably won't have much impact on the performance, but nevertheless doesn't have a negative impact. Changes include: * do not add eventListener on the window * set passive: true on the event listener (see explanation here: https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=devtools)
- Loading branch information
1 parent
b1d7fab
commit 763881b
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters