Streaming live at 10am (PST)

How to Increase the Defer parsing of JavaScript Score

Hi,

I need your help. I would like to ask about How to Increase the Defer parsing of JavaScript Score?

Thank you,
Edgar


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

HI @Support_Bluelight and welcome. Here is link to comprehensive explanation. Hope that will help you to sort your problem.

1 Like

Scripts loaded by Webflow you can’t control. Scripts loaded by you can be.

1 Like

Hi @Stan I tried this code on custom code weblflow Footer

< script type=“text/javascript”>
function parseJSAtOnload() {
var element = document.createElement(“script”);
element.src = “https://www.youtube.com/s/player/ac4b0b03/player_ias.vflset/en_US/base.js”;
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener(“load”, parseJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent(“onload”, parseJSAtOnload);
else window.onload = parseJSAtOnload;

But it’s not working.

The Score is not improving

Regards,

hi @Support_Bluelight I’m not expert on these things as I have never faced situation like that. Because I can’t see your code I can only suggest that you can check what script you have in Header (inline, page, project setting) and go from there. May be someone who faced similar problems will be able to help you to find solution. Keep in mind important note from @webdev.

good luck :wink:

Thank you Stan for the help