Skip to content

Commit ebdead3

Browse files
Use unpkg for JS tutorial (#6617)
We don't have to host it ourselves now that it's on npm
1 parent 3367906 commit ebdead3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/date-picker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ cargo add icu
3030
We recommend using [CodePen](https://codepen.io/pen/?editors=1011) to follow along. To load ICU4X into CodePen, you can use this snippet in the JavaScript editor:
3131

3232
```javascript
33-
import { Locale, DateFormatter, IsoDate, DateTimeLength } from "https://storage.googleapis.com/static-493776/2_0/npm/lib/index.mjs";
33+
import { Locale, DateFormatter, IsoDate, DateTimeLength } from "https://unpkg.com/[email protected]";
3434
```
3535

36-
This loads the full development ICU4X WebAssembly file. Since it may take some time to load on slow connections, we'll create a loading div. In future tutorials you will learn how to build an optimized WebAssembly file, reducing the size of the WASM file by 99% or more. Add this to your HTML:
36+
This loads the full ICU4X WebAssembly file. Since it may take a few seconds to load on slow connections, we'll create a loading div. Add this to your HTML:
3737

3838
```html
3939
<div id="loading">Loading…</div>

0 commit comments

Comments
 (0)