Removing unused Javascript on Webflow

Hello! According to google pagespeed insights, it says I could shave off 6s of loading time by removing unused javascript, but I’m not sure how I can get to that

On the mobile site, I am getting a super long load time

If anyone could help, that would be highly appreciated!

Website: eddyyeung.com


Here is my site Read-Only: LINK

1 Like

You could probably get rid of the JQuery load since Webflow includes that already. Other than that everything other than Webflow’s core JS and Included JQuery is optional and a choice.

I really don’t think Jquery is included on pages by default though? I fired up a completely blank project now and put in

$(document).ready(function() {
alert("I'm alive!");
});

And it gives a standard Jquery is not defined error.

@Fonsume - It is loaded at the bottom of the page via a CDN link. So all JQ dependent code needs to be in the before body close area. Inspect the source in dev tools or check the network panel.

1 Like

Would you look at that! I despise going into the page settings to alter code so I always do it in a custom embed at the bottom of the page while making the site and then put it in a js file before deploying. Live and learn!

can I ask where I could check the code/ remove the JQuery load?
Thank you!!

I see it in the head of the document. So either you have it on the page or set in the project head area.