Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
optimalisatie committed Nov 7, 2020
1 parent f6a4550 commit 1d54440
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ $lazy supports a strict `Content-Security-Policy` and can be controlled by a `as
}'></script>
```
Multiple configurations are supported via the special multi-token `||`. The token needs to be included at the begining and each configuration needs to be valid JSON.
Multiple configurations are supported via the attribute `data-zz`. The attributes accepts a JSON array with configurations.
`||{config...}||{second config...}`
```html
<script async src="dist/lazy+data-attr.js" data-zz='["selector",{config...},{second config...}]'></script>
```
### Advanced `in-view` and `out-of-view` callback
Expand Down
1 change: 1 addition & 0 deletions src/lazybg.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function $lazybg(sheet, lazy_config, resolver, webp) {
LAZY_BG_RENDER(key, value);
}
});

})(lazy_config, rule.selectorText, match[1]);
}
}
Expand Down

0 comments on commit 1d54440

Please sign in to comment.