@@ -113,7 +113,7 @@ _**Important!** The [unpkg.com](https://unpkg.com), [jsDelivr](https://www.jsdel
113
113
``` html
114
114
<!-- Append the `?module` param to load the module version of `web-vitals` -->
115
115
<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' ;
117
117
118
118
onCLS (console .log );
119
119
onINP (console .log );
@@ -129,7 +129,7 @@ Note: When the web-vitals code is isolated from the application code in this way
129
129
<script >
130
130
(function () {
131
131
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' ;
133
133
script .onload = function () {
134
134
// When loading `web-vitals` using a classic script, all the public
135
135
// 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
151
151
onCLS ,
152
152
onINP ,
153
153
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' ;
155
155
156
156
onCLS (console .log );
157
157
onINP (console .log );
@@ -166,7 +166,7 @@ Note: When the web-vitals code is isolated from the application code in this way
166
166
(function () {
167
167
var script = document .createElement (' script' );
168
168
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' ;
170
170
script .onload = function () {
171
171
// When loading `web-vitals` using a classic script, all the public
172
172
// methods can be found on the `webVitals` global namespace.
0 commit comments