Skip to content

Commit

Permalink
5.2.1-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed May 17, 2020
1 parent e84ac98 commit b12ac7f
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 287 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 5.2.1-rc1

- BlurUp-Plugin: Copy style attribute ([#764](https://github.com/aFarkas/lazysizes/pull/764))
- Fixes minor security issue with video-embed plugin ([#764](https://github.com/aFarkas/lazysizes/pull/764))
- Built: Update dependencies ([#774](https://github.com/aFarkas/lazysizes/pull/774), [#756](https://github.com/aFarkas/lazysizes/pull/756))
- Fixes diverse issues with old AMD module pattern ([#780](https://github.com/aFarkas/lazysizes/pull/780), [#779](https://github.com/aFarkas/lazysizes/pull/779))

## 5.2.0

* Fix wrong window context under very rare SSR (fixes [#717](https://github.com/aFarkas/lazysizes/pull/717))
Expand Down
8 changes: 0 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@
src: [ "lazysizes.js", "plugins/**/*.js", "!*.min.js", "!plugins/**/*.min.js" ] //, "Gruntfile.js", "tests/*.js"
}
},
plato: {
all: {
files: {
"plato-report/": ["lazysizes.js", "plugins/**/*.js", "!*.min.js", "!plugins/**/*.min.js"]
}
}
},
qunit: {
all: ['tests/*.html']
},
Expand Down Expand Up @@ -97,7 +90,6 @@
grunt.loadNpmTasks('grunt-uncss');
grunt.loadNpmTasks('grunt-bytesize');
grunt.loadNpmTasks('grunt-max-filesize');
grunt.loadNpmTasks('grunt-plato');
grunt.loadNpmTasks('grunt-contrib-qunit');

grunt.registerTask('wrapcore', 'wraps lazysizes into umd and common wrapper.', function() {
Expand Down
50 changes: 25 additions & 25 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h3>Image with LQIP technique</h3>
<div class="col-sm-12">
<div class="thumbnail">
<div class="intrinsic">
<img alt="Desert Road" data-src="https://farm6.staticflickr.com/5531/9638435181_7e3e44c2b8_b.jpg" class="lazyload no-src" />
<img alt="Desert Road" data-src="https://i.picsum.photos/id/1071/1920/1440.jpg" class="lazyload no-src" />
</div>

<div class="caption">
Expand Down Expand Up @@ -242,18 +242,18 @@ <h3>responsive image with srcset and sizes attribute</h3>
<picture>
<!--[if IE 9]><audio><![endif]-->
<source
data-srcset="//lorempixel.com/710/533/people/9/"
data-srcset="https://i.picsum.photos/id/1048/1200/900.jpg"
media="(max-width: 990px)" />
<source
data-srcset="//lorempixel.com/930/698/people/8/"
data-srcset="https://i.picsum.photos/id/1055/1440/1080.jpg"
media="(max-width: 1024px)" />

<source
data-srcset="//lorempixel.com/1130/848/people/" />
data-srcset="https://i.picsum.photos/id/103/1440/1080.jpg" />
<!--[if IE 9]></audio><![endif]-->
<img
class="lazyload"
data-src="//lorempixel.com/930/698/people/8/"
data-src="https://i.picsum.photos/id/1055/1440/1080.jpg"
alt="image with artdirection" />
</picture>
</div>
Expand Down Expand Up @@ -417,12 +417,12 @@ <h3><code>[data-expand]</code>: More than lazyloading</h3>

<div class="item">
<div class="intrinsic">
<img alt="100%x200" src="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg"
<img alt="100%x200" src="https://i.picsum.photos/id/1031/300/225.jpg"
data-sizes="auto"
data-srcset="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg 240w,
https://farm1.staticflickr.com/113/284651694_69e63b374d.jpg 500w,
https://farm1.staticflickr.com/113/284651694_69e63b374d_z.jpg?zz=1 640w,
https://farm1.staticflickr.com/113/284651694_69e63b374d_o.jpg 800w"
data-srcset="https://i.picsum.photos/id/1031/300/225.jpg 300w,
https://i.picsum.photos/id/1031/600/450.jpg 600w,
https://i.picsum.photos/id/1031/1024/768.jpg 1024w,
https://i.picsum.photos/id/1031/1440/1080.jpg 1440w"
class="lazyload" />
</div>
<div class="carousel-caption">
Expand Down Expand Up @@ -670,7 +670,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/abstract/1/"
data-src="https://i.picsum.photos/id/1031/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -679,7 +679,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/animals/1/"
data-src="https://i.picsum.photos/id/1059/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -688,7 +688,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/business/1/"
data-src="https://i.picsum.photos/id/1062/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -700,7 +700,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/cats/1/"
data-src="https://i.picsum.photos/id/1065/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -709,7 +709,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/city/1/"
data-src="https://i.picsum.photos/id/1069/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -718,7 +718,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/food/1/"
data-src="https://i.picsum.photos/id/1072/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -729,7 +729,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/nature/1/"
data-src="https://i.picsum.photos/id/1074/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -738,7 +738,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/sports/1/"
data-src="https://i.picsum.photos/id/110/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -747,7 +747,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/technics/1/"
data-src="https://i.picsum.photos/id/111/460/345.jpg"
alt="" />
</div>

Expand All @@ -759,7 +759,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/nightlife/1/"
data-src="https://i.picsum.photos/id/116/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -768,7 +768,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/fashion/1/"
data-src="https://i.picsum.photos/id/122/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -777,7 +777,7 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/people/1/"
data-src="https://i.picsum.photos/id/1031/460/345.jpg"
alt="" />
</div>
</div>
Expand All @@ -790,23 +790,23 @@ <h3>Widgets/Javascript/Script</h3>
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/transport/1/"
data-src="https://i.picsum.photos/id/134/460/345.jpg"
alt="" />
</div>
</div>
<div class="thumbnail thumbnail-small lazyload" data-expand="-40">
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/animals/1/"
data-src="https://i.picsum.photos/id/133/460/345.jpg"
alt="" />
</div>
</div>
<div class="thumbnail thumbnail-small lazyload" data-expand="-40">
<div class="intrinsic">
<img
class="lazyload no-src"
data-src="//lorempixel.com/400/300/food/2/"
data-src="https://i.picsum.photos/id/137/460/345.jpg"
alt="" />
</div>
</div>
Expand Down
Loading

0 comments on commit b12ac7f

Please sign in to comment.