https://github.com/verlok/lazyload-es2015-test
Test usage of LazyLoad as es2015 module
https://github.com/verlok/lazyload-es2015-test
Last synced: 5 days ago
JSON representation
Test usage of LazyLoad as es2015 module
- Host: GitHub
- URL: https://github.com/verlok/lazyload-es2015-test
- Owner: verlok
- Created: 2018-08-07T12:39:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T17:07:48.000Z (over 6 years ago)
- Last Synced: 2025-03-18T12:51:36.087Z (7 months ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lazyload-es2015-test
Test usage of LazyLoad as es2015 module through the `` notation.
## Usage
```html
```
Then, in `lazyload-init.js`:
```js
import LazyLoad from "./node_modules/vanilla-lazyload/dist/lazyload.es2015.js";
// or import LazyLoad from cdnjs.com;var lazyLoadOptions = {/* your options here */};
var pageLazyLoad = new LazyLoad(lazyLoadOptions);
```## Result
To see the result, open the `index.html` file.
## Take a look
Open [index.html](index.html) and [lazyload-init.js](lazyload-init.js) to see how LazyLoad is loaded as an ES2015 module, or go to [LazyLoad's readme file](https://github.com/verlok/lazyload/blob/master/README.md) for documentation.