Skip to content

Commit

Permalink
Merge branch 'release/10.14.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Verlicchi committed Aug 6, 2018
2 parents 565728f + 0eee08c commit 7780c1d
Show file tree
Hide file tree
Showing 19 changed files with 1,023 additions and 219 deletions.
160 changes: 80 additions & 80 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"jest": true
},
"rules": {
"quotes": [2, "double"],
"block-scoped-var": 1,
"class-methods-use-this": 1,
"complexity": 1,
"consistent-return": 1,
"curly": 2,
"default-case": 1,
"dot-location": 1,
"dot-notation": 1,
"eqeqeq": 2,
"guard-for-in": 1,
"no-alert": 1,
"no-caller": 1,
"no-case-declarations": 1,
"no-div-regex": 1,
"no-else-return": 1,
"no-empty-function": 1,
"no-empty-pattern": 1,
"no-eq-null": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-extra-label": 1,
"no-fallthrough": 1,
"no-floating-decimal": 1,
"no-global-assign": 1,
"no-implicit-coercion": 0,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-iterator": 1,
"no-labels": 1,
"no-lone-blocks": 1,
"no-loop-func": 1,
"no-magic-numbers": [1, {"ignore": [-1, 0, 1]}],
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-new": 1,
"no-new-func": 1,
"no-new-wrappers": 1,
"no-octal": 1,
"no-octal-escape": 1,
"no-param-reassign": 1,
"no-proto": 1,
"no-redeclare": 1,
"no-restricted-properties": 1,
"no-return-assign": 1,
"no-return-await": 1,
"no-script-url": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": 1,
"no-unused-labels": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-useless-return": 1,
"no-void": 1,
"no-warning-comments": 1,
"no-with": 1,
"prefer-promise-reject-errors": 1,
"radix": 1,
"require-await": 1,
"vars-on-top": 1,
"wrap-iife": 1,
"yoda": 1
}
}
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"jest": true
},
"rules": {
"quotes": [2, "double"],
"block-scoped-var": 1,
"class-methods-use-this": 1,
"complexity": 1,
"consistent-return": 1,
"curly": 2,
"default-case": 1,
"dot-location": 1,
"dot-notation": 1,
"eqeqeq": 2,
"guard-for-in": 1,
"no-alert": 1,
"no-caller": 1,
"no-case-declarations": 1,
"no-div-regex": 1,
"no-else-return": 1,
"no-empty-function": 1,
"no-empty-pattern": 1,
"no-eq-null": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-extra-label": 1,
"no-fallthrough": 1,
"no-floating-decimal": 1,
"no-global-assign": 1,
"no-implicit-coercion": 0,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-iterator": 1,
"no-labels": 1,
"no-lone-blocks": 1,
"no-loop-func": 1,
"no-magic-numbers": [1, { "ignore": [-1, 0, 1] }],
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-new": 1,
"no-new-func": 1,
"no-new-wrappers": 1,
"no-octal": 1,
"no-octal-escape": 1,
"no-param-reassign": 1,
"no-proto": 1,
"no-redeclare": 1,
"no-restricted-properties": 1,
"no-return-assign": 1,
"no-return-await": 1,
"no-script-url": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": 1,
"no-unused-labels": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-useless-return": 1,
"no-void": 1,
"no-warning-comments": 1,
"no-with": 1,
"prefer-promise-reject-errors": 1,
"radix": 1,
"require-await": 1,
"vars-on-top": 0,
"wrap-iife": 1,
"yoda": 1
}
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Version 10

#### 10.14.0

Now supporting WebP through dynamic extension rename if the user browser is compatible.

#### 10.13.0

- Shortened the RegEx for crawlers detection (shaved a few bytes)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Starting from version 9, LazyLoad uses the IntersectionObserver API, which is no
To include the [latest version](https://cdnjs.com/libraries/vanilla-lazyload) of LazyLoad, use the following script:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/10.13.0/lazyload.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/10.14.0/lazyload.min.js"></script>
```

### Advanced and best option: conditionally load version 8 or 10
Expand All @@ -32,7 +32,7 @@ You can do it with the following script:
(function(w, d){
var b = d.getElementsByTagName('body')[0];
var s = d.createElement("script"); s.async = true;
var v = !("IntersectionObserver" in w) ? "8.13.0" : "10.13.0";
var v = !("IntersectionObserver" in w) ? "8.13.0" : "10.14.0";
s.src = "https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/" + v + "/lazyload.min.js";
w.lazyLoadOptions = {}; // Your options here. See "recipes" for more information about async.
b.appendChild(s);
Expand Down
Loading

0 comments on commit 7780c1d

Please sign in to comment.