Skip to content

Commit b463cae

Browse files
authored
docs: add jsDelivr example
1 parent a4f9eaf commit b463cae

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,27 @@ Install NPM package - https://www.npmjs.com/package/simple-scrollspy:
1818
npm install simple-scrollspy
1919
```
2020

21-
### Using CDNjs
21+
### Using CDN
2222

23-
The `simple-scrollspy` is already on CDNjs. Therefore, you can:
24-
1. Go to https://cdnjs.com/libraries/simple-scrollspy
25-
2. Choose a version
26-
3. Click `Copy Script Tag`, CDNjs will generate the script and copy them to your clipboard. For example:
23+
#### cdnjs
24+
25+
The `simple-scrollspy` library is available on [cdnjs](https://cdnjs.com/libraries/simple-scrollspy). For instance:
2726

2827
```html
2928
<script src="https://cdnjs.cloudflare.com/ajax/libs/simple-scrollspy/2.4.1/simple-scrollspy.min.js" integrity="sha512-NNb5TgmE+7PHedvAWwPKZ/ukCGJciTHZ23ghPriEeEfcGySDBm9zIrjaXp/WNAUcVYhi5XhJ1rHveDKR35CInw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
3029
```
3130

31+
#### jsDelivr
32+
33+
The `simple-scrollspy` can be installed using [jsDelivr](https://jsdelivr.com). For instance:
34+
35+
```html
36+
<script src="https://cdn.jsdelivr.net/npm/simple-scrollspy@2.5.3/demo/dist/simple-scrollspy.min.js"></script>
37+
```
38+
3239
### Using `simple-scrollspy.min.js` file
3340

34-
You can download `simple-scrollspy.min.js` file on each release. Please check [the latest version](https://github.com/kimyvgy/simple-scrollspy/releases/latest).
41+
The `simple-scrollspy.min.js` file is available for download with each release. To obtain the most recent version, please visit [the latest release page](https://github.com/kimyvgy/simple-scrollspy/releases/latest) on GitHub.
3542

3643
```html
3744
<script src="/path/to/dist/simple-scrollspy.min.js"></script>

0 commit comments

Comments
 (0)