diff --git a/src/lib/lazyload.ts b/src/lib/lazyload.ts index 4775dfb..e4daab9 100644 --- a/src/lib/lazyload.ts +++ b/src/lib/lazyload.ts @@ -14,7 +14,12 @@ const getObserver = () => { }); }; -// This is used as an action on lazyloaded elements +/** + * Use this as an action on elements that should be only loaded when moved into view. + * Note that if the element's size is 0 on mount, multiple elements could be in-view that + * would be out-of-view with their correct size. + * This happens for