Skip to content

Commit c16748d

Browse files
Nicholas KyriakidesNicholas Kyriakides
authored andcommitted
explained status attr. in README
1 parent 5bfa366 commit c16748d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,16 @@ relatively(i.e using `this.resolveUrl(src)`), therefore keeping it intact.
4141
<defer-script src="http://foo-cdn.com/foo-lib.js"></defer-script>
4242
```
4343

44-
### Status Events
44+
### Checking load status
4545

46-
The element will fire `load`/`error` events where appropriate:
46+
When all `src`s have loaded successfully, a `loaded` attribute will be added
47+
to the element.
48+
49+
```html
50+
<defer-script src="/lib/foo.js, /lib/bar.js" loaded></defer-script>
51+
```
52+
53+
The element will also fire `load`/`error` events where appropriate:
4754

4855
```javascript
4956

0 commit comments

Comments
 (0)