Skip to content

Commit 1509d64

Browse files
authored
Upgrade examples in README to v5 (#626)
1 parent 463abbd commit 1509d64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ _**Important!** The [unpkg.com](https://unpkg.com), [jsDelivr](https://www.jsdel
113113
```html
114114
<!-- Append the `?module` param to load the module version of `web-vitals` -->
115115
<script type="module">
116-
import {onCLS, onINP, onLCP} from 'https://unpkg.com/web-vitals@4?module';
116+
import {onCLS, onINP, onLCP} from 'https://unpkg.com/web-vitals@5?module';
117117
118118
onCLS(console.log);
119119
onINP(console.log);
@@ -129,7 +129,7 @@ Note: When the web-vitals code is isolated from the application code in this way
129129
<script>
130130
(function () {
131131
var script = document.createElement('script');
132-
script.src = 'https://unpkg.com/web-vitals@4/dist/web-vitals.iife.js';
132+
script.src = 'https://unpkg.com/web-vitals@5/dist/web-vitals.iife.js';
133133
script.onload = function () {
134134
// When loading `web-vitals` using a classic script, all the public
135135
// methods can be found on the `webVitals` global namespace.
@@ -151,7 +151,7 @@ Note: When the web-vitals code is isolated from the application code in this way
151151
onCLS,
152152
onINP,
153153
onLCP,
154-
} from 'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.js?module';
154+
} from 'https://unpkg.com/web-vitals@5/dist/web-vitals.attribution.js?module';
155155
156156
onCLS(console.log);
157157
onINP(console.log);
@@ -166,7 +166,7 @@ Note: When the web-vitals code is isolated from the application code in this way
166166
(function () {
167167
var script = document.createElement('script');
168168
script.src =
169-
'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.iife.js';
169+
'https://unpkg.com/web-vitals@5/dist/web-vitals.attribution.iife.js';
170170
script.onload = function () {
171171
// When loading `web-vitals` using a classic script, all the public
172172
// methods can be found on the `webVitals` global namespace.

0 commit comments

Comments
 (0)