Modern lazy loading for React
Name | Type | Optional | Default value | Description |
---|---|---|---|---|
root |
Element | Document | null |
true |
null |
Root element' MDN Docs |
rootMargin |
string |
true |
0% |
Margin' MDN Docs |
threshold |
number | number[] |
true |
0 |
Threshold' MDN Docs |
keepTrackingVisibility |
boolean |
true |
false |
If set to true, it tracks changes in visibility at all times. |