README
LazyLoad
Only render children when visible in the viewport.
Installation
npm install --save @app-elements/lazy-load
Usage
import LazyLoad from '@app-elements/lazy-load'
<LazyLoad>
<BigHeftyVideo />
</LazyLoad>
Won't render children until it's in viewport.
<script type="module">
import appElementsLazyLoad from 'https://cdn.skypack.dev/@app-elements/lazy-load';
</script>
Only render children when visible in the viewport.
npm install --save @app-elements/lazy-load
import LazyLoad from '@app-elements/lazy-load'
<LazyLoad>
<BigHeftyVideo />
</LazyLoad>