We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a242a3a commit c590212Copy full SHA for c590212
src/index.ts
@@ -12,6 +12,10 @@ const observer = new IntersectionObserver(entries => {
12
}
13
14
}, {
15
+ // Currently the threshold is set to 256px from the bottom of the viewport
16
+ // with a threshold of 0.1. This means the element will not load until about
17
+ // 2 keyboard-down-arrow presses away from being visible in the viewport,
18
+ // giving us some time to fetch it before the contents are made visible
19
rootMargin: '0px 0px 256px 0px',
20
threshold: 0.01
21
})
0 commit comments