We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f6fda3 commit a9d6fdaCopy full SHA for a9d6fda
README.md
@@ -17,8 +17,8 @@ Respond to the DOM being ready in different JS modules without binding multiple
17
```javascript
18
import ready from 'one-ready'
19
20
-// multiple files
21
-ready().then(() => console.log('Only one event handler is bound.'))
+ready().then(() => console.log('Only one DOMContentLoaded event handler is bound.'))
+ready().then(() => console.log('Even if imported and called in other modules.'))
22
```
23
24
## See Also
0 commit comments