Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Add CDN link #536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ Include fastclick.js in your JavaScript bundle or add it to your HTML page like
<script type='application/javascript' src='/path/to/fastclick.js'></script>
```

Or add it through a CDN:

```
<script src='https://cdn.jsdelivr.net/npm/fastclick@1/lib/fastclick.js'></script>
```

The script must be loaded prior to instantiating FastClick on any element of the page.

To instantiate FastClick on the `body`, which is the recommended method of use:
Expand Down