Streaming live at 10am (PST)

Hosting Javascript file Externally

Hello, I am creating a custom calculator for my website and the code is getting too long to fit within the limit. I tried hosting the entire file externally but it would not work properly. I have very limited knowledge of js so I’m not sure if I am hosting the file properly. Can anyone help me host the code properly?

Pages: calculator and calculator copy

https://preview.webflow.com/preview/nattyknowledge?utm_medium=preview_link&utm_source=designer&utm_content=nattyknowledge&preview=d59ba49a3fc6acbc6204c909d8fa8716&pageId=5e7722ebc78e1c64f3b706ec&mode=preview

I haven’t tried it myself, but I have seen mention on this forum that you can host it within Webflow itself as an asset and use the asset’s URL.

Here’s the full “how to” kindly provided by @webdev - Character Limit

Have you tried minifying the code? That might make it small enough.

Otherwise you can host for free with Github, Netlify, Firebase, GCP Storage and probably lots of others I can’t think of. Then use a https script include to load it.