Skip to content

Commit 0dba05a

Browse files
committed
docs: kudos for the service worker idea to garygreen
1 parent 5ea9d87 commit 0dba05a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# loading="lazy" attribute polyfill with Service Worker
2-
Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute, depending on ServiceWorker
2+
3+
Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute, depending on Service Worker (kudos for that [great idea](https://github.com/mfranzke/loading-attribute-polyfill/issues/88#issuecomment-649723103) to [@garygreen](https://github.com/garygreen) !!!)
34

45
[![MIT license](https://img.shields.io/npm/l/loading-attribute-polyfill-with-serviceworker.svg "license badge")](https://opensource.org/licenses/mit-license.php)
56
[![GitHub Super-Linter](https://github.com/mfranzke/loading-attribute-polyfill-with-serviceworker/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/mfranzke/loading-attribute-polyfill-with-serviceworker/actions/workflows/linter.yml)
@@ -10,6 +11,7 @@ Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy
1011
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
1112
[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
1213
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE-OF-CONDUCT.md)
14+
1315
- Released under the MIT license
1416
- Made in Germany. And supported by so many great people from all over this planet - see "Credits" accordingly.
1517
- Compatible [down to Microsoft Internet Explorer 17](https://caniuse.com/?search=serviceworker)
@@ -36,11 +38,18 @@ You may optionally load via NPM or Bower:
3638

3739
$ npm install loading-attribute-polyfill-with-serviceworker
3840
$ bower install loading-attribute-polyfill-with-serviceworker
41+
3942
Include one of the provided JavaScript files depending on your setup plus the CSS file:
4043

4144
```html
42-
<script src="dist/loading-attribute-polyfill-with-serviceworker.js" async></script>
43-
<link rel="stylesheet" href="dist/loading-attribute-polyfill-with-serviceworker.css" />
45+
<script
46+
src="dist/loading-attribute-polyfill-with-serviceworker.js"
47+
async
48+
></script>
49+
<link
50+
rel="stylesheet"
51+
href="dist/loading-attribute-polyfill-with-serviceworker.css"
52+
/>
4453
```
4554

4655
or e.g. within JS

0 commit comments

Comments
 (0)