diff --git a/CHANGELOG.md b/CHANGELOG.md index f0fcbfa9..ec7f594c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Version 13 +#### 13.0.1 + +- Fixed a JS error that could happen to IE11 users after going offline and back online +- Minor refactoring for better readibility and lighter code (and files)! + #### 13.0.0 - Added the minified version of `dist/lazyload.esm.js` as `dist/lazyload.esm.min.js`, so now you can effortlessly use it with an ES module `import` statement when using `type="module"` diff --git a/README.md b/README.md index ad3b5f5e..83d969ca 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Please note that the video poster can be lazily loaded too. ## 👩‍💻 Getting started - Script -The latest, recommended version of LazyLoad is **13.0.0**. +The latest, recommended version of LazyLoad is **13.0.1**. ### To polyfill or not to polyfill IntersectionObserver? @@ -128,14 +128,14 @@ If you prefer to load a polyfill, the regular LazyLoad behaviour is granted. The easiest way to use LazyLoad is to include the script from a CDN: ```html - + ``` Or, with the IntersectionObserver polyfill: ```html - + ``` Then, in your javascript code: @@ -168,7 +168,7 @@ Include RequireJS: Then `require` the AMD version of LazyLoad, like this: ```js -var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@13.0.0/dist/lazyload.amd.min.js"; +var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@13.0.1/dist/lazyload.amd.min.js"; var polyfillAmdUrl = "https://cdn.jsdelivr.net/npm/intersection-observer-amd@2.0.1/intersection-observer-amd.js"; /// Dynamically define the dependencies @@ -214,7 +214,7 @@ Then include the script. ```html ``` @@ -247,7 +247,7 @@ Then include the script. ```html ``` diff --git a/__tests__/lib/getFakeInstance.js b/__tests__/lib/getFakeInstance.js index 52d0a37e..431893b5 100644 --- a/__tests__/lib/getFakeInstance.js +++ b/__tests__/lib/getFakeInstance.js @@ -1,9 +1,9 @@ -import getSettings from "../../src/lazyload.defaults"; +import { getInstanceSettings } from "../../src/lazyload.defaults"; export default customSettings => { return { _elements: [], - _settings: getSettings(customSettings), + _settings: getInstanceSettings(customSettings), loadingCount: 0 }; }; diff --git a/demos/amd_polyfill.html b/demos/amd_polyfill.html index 746974cf..5e2ff432 100644 --- a/demos/amd_polyfill.html +++ b/demos/amd_polyfill.html @@ -448,7 +448,7 @@ } var polyfillAmdUrl = - "https://cdn.jsdelivr.net/npm/intersection-observer-amd@1.0.0/intersection-observer-amd.js"; + "https://cdn.jsdelivr.net/npm/intersection-observer-amd@2.0.1/intersection-observer.amd.min.js"; var dependencies = [ "IntersectionObserver" in window ? null : polyfillAmdUrl, diff --git a/demos/load.html b/demos/load.html index 4950cfca..eaf1107b 100644 --- a/demos/load.html +++ b/demos/load.html @@ -343,7 +343,7 @@ - +