Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ $(function() {
});
```

Or, if you're loading scripts dynamically:

```js
loadScript('/path/to/fastclick.js').then(_ => {
if (document.readyState == "complete") {
FastClick.attach(document.body);
}
})
```

If you're using Browserify or another CommonJS-style module system, the `FastClick.attach` function will be returned when you call `require('fastclick')`. As a result, the easiest way to use FastClick with these loaders is as follows:

```js
Expand Down