diff --git a/app.js b/app.js new file mode 100644 index 0000000..6bfb1e2 --- /dev/null +++ b/app.js @@ -0,0 +1,5 @@ +import LazyloadImage from './lazyload-image.js'; + +customElements.define('lazyload-image', LazyloadImage, { + extends: 'img' +}); diff --git a/index.html b/index.html index cca7470..f3f4a88 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,8 @@