This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener("fetch", (event) => { | |
event.respondWith( | |
handleRequest(event.request).catch( | |
(err) => new Response(err.stack, { status: 500 }) | |
) | |
); | |
}); | |
const addPreloadAfter = (href) => ({ | |
element: (el) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const unblockCSS = () => ({ | |
element: (el) => { | |
el.removeAttribute('media'); | |
el.setAttribute('rel', 'preload'); | |
el.setAttribute('as', 'style'); | |
el.setAttribute('onload', "this.onload=null;this.rel='stylesheet';this.media='all'"); | |
el.after(` | |
<noscript><link rel="stylesheet" href="${el.getAttribute("href")}"></noscript> | |
`, { html: true }); }}); |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"captchaResult": "CAPTCHA_NOT_NEEDED", | |
"kind": "pagespeedonline#result", | |
"id": "https://www.siemens-healthineers.com/en-us/ultrasound", | |
"loadingExperience": { | |
"id": "https://www.siemens-healthineers.com", | |
"metrics": { | |
"CUMULATIVE_LAYOUT_SHIFT_SCORE": { | |
"percentile": 41, | |
"distributions": [ |
OlderNewer