Skip to content

Commit

Permalink
Merge branch 'release/19.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Mar 28, 2024
2 parents 28c2089 + c6afb35 commit 4e44c46
Show file tree
Hide file tree
Showing 41 changed files with 4,992 additions and 4,948 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## Version 19

#### 19.0.0

- Rollup setup enhancement
- Refactored the Rollup setup to improve performance and maintainability.
- Switched to ES6 module format for better compatibility and readability.
- Enabled tree shaking and module preservation to optimize the build output.
- Added [ESM demo](demos/esm.html) to showcase the functionality of the esm module.
- Updated various dependencies to their latest versions for better compatibility and security

## Version 18

#### 18.0.0
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Please note that the video poster can be lazily loaded too.

## 👩‍💻 Getting started - Script

The latest, recommended version of LazyLoad is **18.0.0**.
The latest, recommended version of LazyLoad is **19.0.0**.
Note that if you need to support Internet Explorer 11, you need to use version 17.9.0 or below.

Quickly understand how to upgrade from a previous version reading the [practical upgrade guide](UPGRADE.md).
Expand All @@ -185,7 +185,7 @@ Quickly understand how to upgrade from a previous version reading the [practical
The easiest way to use LazyLoad is to include the script from a CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@18.0.0/dist/lazyload.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.0/dist/lazyload.min.js"></script>
```

Then, in your javascript code:
Expand Down Expand Up @@ -226,7 +226,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@18.0.0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.0/dist/lazyload.min.js"
></script>
```

Expand Down Expand Up @@ -260,7 +260,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@18.0.0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.0/dist/lazyload.min.js"
></script>
```

Expand Down Expand Up @@ -321,7 +321,7 @@ Inside the `dist` folder you will find different bundles.
| `lazyload.min.js` | UMD <small>(Universal Module Definition)</small> | Works pretty much everywhere, even in common-js contexts |
| `lazyload.iife.min.js` | IIFE <small>(Immediately Invoked Function Expression)</small> | Works as in-page `<script src="...">`, ~0.5kb smaller than UMD version |
| `lazyload.amd.min.js` | AMD <small>(Asynchronous Module Definition)</small> | Works with _RequireJS_ module loader, ~0.5kb smaller than UMD version |
| `lazyload.esm.js` | ES Module | Exports `LazyLoad` so you can import it in your project both using `<script type="module" src="...">` and a bundler like WebPack or Rollup |
| `esm/lazyload.js` | ES Module | Exports `LazyLoad` so you can import it in your project both using `<script type="module" src="...">` and a bundler like WebPack or Rollup |

---

Expand Down
Loading

0 comments on commit 4e44c46

Please sign in to comment.