Skip to content

Commit 740119c

Browse files
authored
Add note about jsdelivr being blocked in China (#66)
* Add note about jsdelivr being blocked in China * Also mention in v1 docs
1 parent 185c433 commit 740119c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/getting-started/install.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ Add the following to your website's HTML:
2121
```
2222

2323
::::tip
24-
#### Using the scripts without a CDN
24+
#### Using the scripts without a CDN (i.e. self-hosting)
2525

26-
You can [download the latest release files](https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected]/) and serve them from your own server.
26+
Using `cdn.jsdelivr.net` is optional. If preferred, you can self-host the scripts. [Download the latest release files](https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected]/) and serve them from your own server.
2727
Remember to update these scripts regularly.
28+
29+
`cdn.jsdelivr.net` is blocked in some jurisdictions, like some parts of China. If your website needs to be reachable from these jurisdictions, we recommend that you self-host the scripts.
2830
::::
2931

3032

versioned_docs/version-v1/getting-started/install.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ It is recommended that you include the `async` and `defer` attributes like in th
2222

2323
> If you want to support old browsers, you can instead use a polyfill build, see the [**browser support**](../guides/browser-support#polyfills) page.
2424
25-
#### Download and self-host the widget library (releases, recommended by GDPR)
25+
#### Download and self-host the widget library (recommended for GDPR)
2626

27-
Instead of using a CDN (e.g. for GDPR reasons) you can of course also download the library .js files and host them on your server.
28-
Simply download the latest release from one of the CDN's mentioned above, like: https://cdn.jsdelivr.net/npm/friendly-challenge/
27+
Using `cdn.jsdelivr.net` is optional. If preferred (e.g. for GDPR reasons), you can self-host the scripts. [Download the latest release files](https://cdn.jsdelivr.net/npm/friendly-challenge/) and serve them from your own server:
2928

30-
- The module widget.module.min.js: https://cdn.jsdelivr.net/npm/friendly-challenge/widget.module.min.js
31-
- The nomodule widget.min.js: https://cdn.jsdelivr.net/npm/friendly-challenge/widget.min.js
29+
- The module `widget.module.min.js`: https://cdn.jsdelivr.net/npm/friendly-challenge/widget.module.min.js
30+
- The nomodule `widget.min.js`: https://cdn.jsdelivr.net/npm/friendly-challenge/widget.min.js
31+
32+
`cdn.jsdelivr.net` is blocked in some jurisdictions, like some parts of China. If your website needs to be reachable from these jurisdictions, we recommend that you self-host the scripts.
3233

3334
**Please remember to update to the latest release from time to time.**
3435

0 commit comments

Comments
 (0)