Skip to content

Commit e809aa0

Browse files
authored
Merge pull request select2#5687 from select2/swap-cdnjs
Replace cdnjs with jsDelivr in the docs
2 parents 0d37eed + 884a1a6 commit e809aa0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Browser compatibility
3535

3636
Usage
3737
-----
38-
You can source Select2 directly from a CDN like [JSDliver][jsdelivr] or
39-
[CDNJS][cdnjs], [download it from this GitHub repo][releases], or use one of
38+
You can source Select2 directly from a CDN like [jsDelivr][jsdelivr] or
39+
[cdnjs][cdnjs], [download it from this GitHub repo][releases], or use one of
4040
the integrations below.
4141

4242
Integrations

docs/pages/01.getting-started/01.installation/docs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ In order to use Select2, you must include the compiled JavaScript and CSS files
1010

1111
A CDN (content delivery network) is the fastest way to get up and running with Select2!
1212

13-
Select2 is hosted on both the [cdnjs](https://cdnjs.com/libraries/select2) and [jsDelivr](https://www.jsdelivr.com/#!select2) CDNs. Simply include the following lines of code in the `<head>` section of your page:
13+
Select2 is hosted on both the [jsDelivr](https://www.jsdelivr.com/package/npm/select2) and [cdnjs](https://cdnjs.com/libraries/select2) CDNs. Simply include the following lines of code in the `<head>` section of your page:
1414

1515
```
16-
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/css/select2.min.css" rel="stylesheet" />
17-
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/js/select2.min.js"></script>
16+
<link href="https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/css/select2.min.css" rel="stylesheet" />
17+
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/js/select2.min.js"></script>
1818
```
1919

2020
>>> <i class="fa fa-info-circle"></i> Immediately following a new release, it takes some time for CDNs to catch up and get the new versions live on the CDN.

0 commit comments

Comments
 (0)