How to reduce JavaScript on Webflow?

Hi there!
Unfortunately I’m a complete noob concerning programming.

After various PageSpeed tests I know that I have to reduce unused Java Script. But I don’t know how? There’s a button on Webflow that doesn’t say “Minify JS”, it’s ON. But how do I further reduce unused JavaScript?

If this question is just impossible to answer is a simple Blog post, please tell me honestly :smiley: But maybe there is a custom code snippet that at least helps to get Java Script loaded “later” and thus improves page speed.

The desktop version of my website gets about 93-98 points on PageSpeed Insights. But following the mobile first principle, I don’t really care too much about the desktop version, I need good results for the mobile version as well. And that is very bad with about 50 - max. 65 points on PageSpeed Insights.


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

1 Like

In short: you can’t on webflow.

But! You can async load your javascript files with async or defer keyword.

Hi! Thank you for your reply!
Unfortunately this did not work since I simply didn’t find a possibility to change the HTML code of the template.
BUT there was a HTML embed for the comment section and disqus was the reason why everything was so extremely slow after all. So I could change the HTML embed of the comment section to “load JavaScript on interaction”.

Luckily, the PageSpeed Test for the mobile version changed from 52 points to 81 after that.

1 Like

or use something like stacket to automate it