Skip to content

Commit

Permalink
Releasing 19.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Apr 2, 2024
1 parent cf05144 commit 7d4694e
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 24 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Version 19

#### 19.1.1

- Removed code to support image-set on legacy versions of Chromium browsers
- Added coverage with 2 more demos for images with single src and a placeholder image

#### 19.1.0

- Added end to end tests to expand test coverage to more use cases and cross browser
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Please note that the video poster can be lazily loaded too.

## 👩‍💻 Getting started - Script

The latest, recommended version of LazyLoad is **19.1.0**.
The latest, recommended version of LazyLoad is **19.1.1**.
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 @@ -186,7 +186,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/[email protected].0/dist/lazyload.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"></script>
```

OR, if you prefer to import it as an ES module:
Expand Down Expand Up @@ -237,7 +237,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"
></script>
```

Expand Down Expand Up @@ -271,7 +271,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"
></script>
```

Expand Down
2 changes: 1 addition & 1 deletion dist/esm/set.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions dist/lazyload.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,6 @@ var LazyLoad = (function () {
return "image-set(".concat(value, ")");
});
element.style.backgroundImage = bgImageValues.join();
// Temporary fix for Chromeium with the -webkit- prefix
if (element.style.backgroundImage === "") {
bgImageValues = imgSetValues.map(function (value) {
return "-webkit-image-set(".concat(value, ")");
});
element.style.backgroundImage = bgImageValues.join();
}
manageApplied(element, settings, instance);
};
var setSourcesFunctions = {
Expand Down
2 changes: 1 addition & 1 deletion dist/lazyload.iife.min.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions dist/lazyload.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,6 @@
return "image-set(".concat(value, ")");
});
element.style.backgroundImage = bgImageValues.join();
// Temporary fix for Chromeium with the -webkit- prefix
if (element.style.backgroundImage === "") {
bgImageValues = imgSetValues.map(function (value) {
return "-webkit-image-set(".concat(value, ")");
});
element.style.backgroundImage = bgImageValues.join();
}
manageApplied(element, settings, instance);
};
var setSourcesFunctions = {
Expand Down
2 changes: 1 addition & 1 deletion dist/lazyload.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-lazyload",
"version": "19.1.0",
"version": "19.1.1",
"description": "LazyLoad is a lightweight (2.4 kB) and flexible script that speeds up your web application by deferring the loading of your below-the-fold images, videos and iframes to when they will enter the viewport. It's written in plain \"vanilla\" JavaScript, it leverages the IntersectionObserver API, it supports responsive images, it optimizes your website for slower connections, and can enable native lazy loading.",
"main": "dist/lazyload.min.js",
"module": "dist/esm/lazyload.js",
Expand Down

0 comments on commit 7d4694e

Please sign in to comment.