Added lazysizes v4.1.8

This commit is contained in:
nobody42 2020-03-26 07:33:27 +01:00
parent 2b6b0bc17c
commit b7edb5007d
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
6 changed files with 16 additions and 0 deletions

View File

@ -86,6 +86,9 @@ var files = {
// jQuery UI
'resources/jqueryui/1.11.4/jquery-ui.min.jsm': true,
// lazysizes
'resources/lazysizes/4.1.8/lazysizes.min.jsm': true,
// lozad.js
'resources/lozad.js/1.14.0/lozad.min.jsm': true,

View File

@ -80,6 +80,7 @@ var mappings = {
'jquery/{version}/jquery.min.': resources.jQuery,
'jqueryui/{version}/jquery-ui.js': resources.jQueryUI,
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
'lazysizes/{version}/lazysizes.min.js': resources.lazysizes,
'modernizr/{version}/modernizr.': resources.modernizr,
'moment.js/{version}/moment.': resources.moment,
'moment.js/{version}/moment.min.': resources.moment,

View File

@ -109,6 +109,11 @@ var resources = {
'path': 'resources/jqueryui/{version}/jquery-ui.min.jsm',
'type': 'application/javascript'
},
// lazysizes
'lazysizes': {
'path': 'resources/lazysizes/{version}/lazysizes.min.jsm',
'type': 'application/javascript'
},
// lozad.js
'lozad': {
'path': 'resources/lozad.js/{version}/lozad.min.jsm',

View File

@ -232,6 +232,8 @@ helpers.determineResourceName = function (filename) {
return 'jQuery';
case 'jquery-ui.min.jsm':
return 'jQuery UI';
case 'lazysizes.min.jsm':
return 'lazysizes';
case 'lozad.min.jsm':
return 'lozad.js';
case 'modernizr.min.jsm':
@ -356,6 +358,8 @@ helpers.setLastVersion = function (type, versionNumber) {
version = '3.4.1';
} else if (type.includes('/jqueryui/1.')) {
version = '1.11.4';
} else if (type.includes('lazysizes/4.')) {
version = '4.1.8';
} else if (type.includes('lozad')) {
version = '1.14.0';
} else if (type.includes('/modernizr/2.')) {

View File

@ -28,6 +28,7 @@
<li>Fixed Twitter Bootstrap CSS & JS v3.4.1</li>
<li>Added toastr.js v2.1.4</li>
<li>Added WOW v1.1.2</li>
<li>Added lazysizes v4.1.8</li>
</ul>
<div class="topic-label">
Please update your uBlock/uMatrix rules

File diff suppressed because one or more lines are too long