LazyHTML
LazyHTML copied to clipboard
Why external div
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
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