You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/index.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,6 @@ In this guide, you will learn step by step on how to integrate the DBR-JS SDK in
37
37
-[Run the example](#run-the-example)
38
38
-[Preparing the SDK](#preparing-the-sdk)
39
39
-[Step 1: Include the SDK](#step-1-include-the-sdk)
40
-
-[Option 1: Use a public CDN](#option-1-use-a-public-cdn)
41
-
-[Option 2: Host the SDK yourself (optional)](#option-2-host-the-sdk-yourself-optional)
42
40
-[Step 2: Prepare the SDK](#step-2-prepare-the-sdk)
43
41
-[1. Specify the license](#1-specify-the-license)
44
42
-[2. \[Optional\] Specify the location of the "engine" files](#2-optional-specify-the-location-of-the-engine-files)
@@ -216,7 +214,13 @@ Alternatively, you can test locally by copying and pasting the code shown above
216
214
217
215
### Step 1: Include the SDK
218
216
219
-
#### Option 1: Use a public CDN
217
+
<div class="multi-panel-switching-prefix"></div>
218
+
<!--
219
+
- [Use a public CDN](#useapubliccdn)
220
+
- [Host the SDK yourself](#hostthesdkyourself) -->
221
+
222
+
<div class="multi-panel-start"></div>
223
+
<div class="multi-panel-title">Use a public CDN</div>
220
224
221
225
The simplest way to include the SDK is to use either the [jsDelivr](https://jsdelivr.com/) or [UNPKG](https://unpkg.com/) CDN. The "hello world" example above uses **jsDelivr**.
222
226
@@ -232,13 +236,13 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
- In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
239
+
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself.
245
+
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
242
246
243
247
- In frameworks like React, Vue and Angular, you may want to add the package as a dependency.
244
248
@@ -248,9 +252,11 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
NOTE that in frameworks, you need to [specify the engineResourcePaths](#specify-the-location-of-the-engine-files-optional).
255
+
NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files).
256
+
<div class="multi-panel-end"></div>
252
257
253
-
#### Option 2: Host the SDK yourself (optional)
258
+
<div class="multi-panel-start"></div>
259
+
<div class="multi-panel-title">Host the SDK yourself</div>
254
260
255
261
Besides using the public CDN, you can also download the SDK and host its files on your own server or a commercial CDN before including it in your application.
256
262
@@ -277,6 +283,9 @@ You can typically include SDK like this:
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/use-in-framework-v10.4.2002.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Assuming you have an existing project using a framework, you should have a `pack
39
39
}
40
40
```
41
41
42
-
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
42
+
Notice that there is no `^` before `10.4.2002`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
43
43
44
44
While we keep the SDK's external interface relatively stable, the SDK's internal communication often change with each new version. These changes can potentially lead to compatibility issues with `engineResourcePaths` settings. To prevent any unexpected difficulties and surprises, it's essential to use the exact version of the SDK.
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/use-in-framework.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Assuming you have an existing project using a framework, you should have a `pack
39
39
}
40
40
```
41
41
42
-
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
42
+
Notice that there is no `^` before `10.4.3100`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
43
43
44
44
While we keep the SDK's external interface relatively stable, the SDK's internal communication often change with each new version. These changes can potentially lead to compatibility issues with `engineResourcePaths` settings. To prevent any unexpected difficulties and surprises, it's essential to use the exact version of the SDK.
0 commit comments