Skip to content

Instantly share code, notes, and snippets.

View deckarts's full-sized avatar

detlef deckarts

View GitHub Profile
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
const addPreloadAfter = (href) => ({
element: (el) => {
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.
{
"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": [