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.
4 Replies
Ander
Ander8mo ago
nice! I'll try it
Web Bae
Web Bae8mo ago
I've heard of this before but haven't explored it thoroughly. I think it's a great solution if it works well!
infernus
infernusOP8mo ago
Why did they even allow uploading txt files in the first place? What are the chances that someday in the future they delete all those txt files and then the websites get corrupted? Should we perhaps contact support about this?
Web Bae
Web Bae8mo ago
I think you’re pretty safe. I’ve had videos uploaded for like 2 years now that haven’t gone anywhere. Txt files should be pretty small and I wouldn’t think Webflow would worry about it.
Want results from more Discord servers?
Add your server