late-images
Version:
Lightweight javascript library to lazy load images as enter viewport
30 lines (22 loc) • 1.05 kB
HTML
<section class="attireBlock">
<div class="inner">
<h2 class="attireTitleType2">Installation</h2>
<p class="attireTextType2">
Late images is packaged as UMD library so you can use it in CommonJS and AMD environment or with browser globals.
</p>
<pre class="attireCodeHighlight"><code class="language-javascript">
// install via npm
npm install {{ npmRepositoryName }} --save
// if you use bundler
var LateImage = require('{{ npmRepositoryName }}');
// or just using browser globals
var LateImage = window.LateImage;
</code></pre>
<p class="attireTextType2">
For browser usage browse dist folder - if working with build tools go with src folder.
Download library files from <a href="{{ repositoryUrl }}">github repo</a>,
get them via bower (bower install {{ bowerRepositoryName }})
or via npm (npm install {{ npmRepositoryName }})
</p>
</div>
</section>