Web BaeWB
Web Bae2y ago
4 replies
infernus

Webflow Custom Code Limit

Hello everyone, I found an interesting solution to the problem of reaching the 10k character limit in custom code in Webflow. I watched a video by Web Bae that offered a solution using GitHub and jsdelivr, but it seems to me that this is simpler and faster. I'm not sure if everyone already knows about this or if there's any issue with it that prevents people from using this method. Here's how it works: We all know that we can't upload a JS file directly to the Webflow assets panel, but we can upload a TXT file. Simply change the file extension, for example, from "script.js" to "script.txt" and upload it to Webflow. We'll get a unique URL just like when we upload an image. Now, all we need to do is copy that URL and put it into script tags like this:

<script src="URL_OF_TXT_FILE.txt" type="text/javascript"></script>

This works perfectly for me, but I'm not sure if there's any issue with this method that I'm unaware of.
Was this page helpful?