You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ export default MyImage;
73
73
| placeholder |`ReactClass`|`<span>`| React element to use as a placeholder. |
74
74
| placeholderSrc |`String`|| Image src to display while the image is not visible or loaded. |
75
75
| threshold |`Number`| 100 | Threshold in pixels. So the image starts loading before it appears in the viewport. |
76
+
| useIntersectionObserver |`Boolean`| true | Whether to use browser's IntersectionObserver when available. |
76
77
| visibleByDefault |`Boolean`| false | Whether the image must be visible from the beginning. |
77
78
| wrapperClassName |`String`|| In some occasions (for example, when using a placeholderSrc) a wrapper span tag is rendered. This prop allows setting a class to that element. |
78
79
| ... ||| Any other image attribute |
@@ -141,6 +142,7 @@ export default Article;
141
142
| delayTime |`Number`| 300 | Time in ms sent to the delayMethod from lodash. |
142
143
| placeholder |`ReactClass`|`<span>`| React element to use as a placeholder. |
143
144
| threshold |`Number`| 100 | Threshold in pixels. So the component starts loading before it appears in the viewport. |
145
+
| useIntersectionObserver |`Boolean`| true | Whether to use browser's IntersectionObserver when available. |
144
146
| visibleByDefault |`Boolean`| false | Whether the component must be visible from the beginning. |
145
147
146
148
@@ -198,6 +200,7 @@ Component wrapped with `trackWindowScroll` (in the example, `Gallery`)
198
200
|:---|:---|:---|:---|
199
201
| delayMethod |`String`|`throttle`| Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
200
202
| delayTime |`Number`| 300 | Time in ms sent to the delayMethod from lodash. |
203
+
| useIntersectionObserver |`Boolean`| true | Whether to use browser's IntersectionObserver when available. |
201
204
202
205
Notice you can do the same replacing `LazyLoadImage` with `LazyLoadComponent`.
0 commit comments