LazyHTML icon indicating copy to clipboard operation
LazyHTML copied to clipboard

Why external div

Open psdwebdesigns opened this issue 2 years ago • 1 comments

I

I followed the steps but I have a query here. Why it is mandated to have div? Can't we directly add "data-lazyhtml" attribute in any element like footer or any

psdwebdesigns avatar May 18 '22 15:05 psdwebdesigns

LazyHTML seems to use IntersectionObservers, <script> tags are not visible elements, it's very likely that IntersectionObserver would not be triggered on this kind of tag. So a <div> has to be used

clementduveau avatar Feb 16 '23 08:02 clementduveau