Getting Around the Webflow Custom Code Limit: Hosting Code on GitHub
When the code gets too big for Webflow: how we deliver our framework via GitHub and why we solved the Taste swipe game differently.

Founder and Head of Development
- Webflow limits the amount of custom code. For your own framework or larger features, that isn't enough.
- Our framework lives in a GitHub repository and is delivered via jsDelivr. In Webflow, there's only a script tag.
- Every project uses a fixed version. Updates don't break any client site, and every change lands in the changelog.
- The Taste Labs swipe game sits on Bunny as an experiment. For code that's maintained, GitHub is the better choice.
- Rule of thumb: code belongs in the repository, videos and image sequences on the media CDN.
Taste Labs is a San Francisco-based AI startup aiming to teach artificial intelligence about taste. The company is building the data and infrastructure layer that allows frontier labs and app developers to give their models and agents a sense of design and aesthetics. Its $18.5 million seed round was led by CRV and Amplify Partners.
What do you do when the code gets too big for Webflow? Maintain the code in a GitHub repository, deliver it via a CDN and only embed it in Webflow. That's how we deliver our own framework today. And that's how we'd approach larger features like the Taste Labs swipe game, too.
Where does Webflow reach its limits?
With the amount of custom code. Webflow limits the number of characters for code in embeds and in page and project settings. For tracking, small scripts or individual interactions, that's plenty. But if you build your own systems for animations, sliders, forms and page transitions, you quickly hit the limit. There's a second problem too: page-long code blocks in Webflow are hard to maintain, aren't versioned and are a risk for the marketing team.
How do we solve it?
With a GitHub repository as the single source for the code. The code no longer lives in Webflow, but in a repository. From there, jsDelivr, a free CDN for open-source files, delivers the finished scripts. In Webflow, there's just one line that loads the script. For visitors, nothing changes, the website loads just as fast.
What does that look like for our framework?
One framework, all projects, one source. In Webflow, we work with our own framework: recurring systems for animations, navigation, sliders, forms and videos, controlled via data attributes. This code used to live in every project separately. At some point, the limit was almost reached, and every improvement had to be transferred to other projects by hand. Older projects often just stayed on the old version as a result. Today, the framework lives in a GitHub repository. Every change gets its own release and an entry in the changelog.
Why are versions so important?
Because an update must never break a client site. Every project uses a fixed version of the framework, for example 1.2.0. When we develop the framework further, the client site keeps running unchanged. Only when we deliberately move a project to the new version and have tested it does it follow. And if something does go wrong, the way back is a single changed number.
What did we do at Taste Labs?
An experiment: a game that's hosted externally on Bunny. For Taste Labs, we built a swipe game for the footer. Visitors see design tiles and choose between “Love it” and “Hmm, not so much”. That's exactly how Taste collects human judgment on aesthetics, which it uses to teach AI taste. Mobbin featured the section shortly after launch as an example of interactive web design.
The game is a small application of its own and would have completely blown Webflow's limit. We developed it on Vercel, with a lot of AI support. We then hosted the finished files on Bunny and only embedded them in Webflow. That works well. But for code that's maintained long-term, GitHub with versions and a changelog is the cleaner solution. Today, we mainly use Bunny for what it's made for: media.
When GitHub, when Bunny?
Code in the repository, media on the CDN.
- GitHub and jsDelivr: scripts, frameworks and small applications that are maintained, versioned and shared across several projects
- Bunny: videos, image sequences for 3D animations and other heavy files that need to be delivered quickly worldwide
How we use Bunny for animations is covered in the article Complex Animations Without Performance Loss.
When should code move out of Webflow?
As soon as it's more than a small script. Three rules of thumb:
- Small scripts stay in Webflow. Anything that's done in a few lines and only needed on one page doesn't need a detour.
- Recurring code moves out. Whatever runs in several projects or on many pages belongs in a repository with versions.
- So do standalone applications. Games, configurators or complex visualizations are developed externally and only embedded.
How the entire Taste website came about is covered in the overview article.
Frequently Asked Questions about this topic
Is there a custom code limit in Webflow?
Yes. Custom code in Webflow is limited to 50,000 characters, in embeds as well as in page and project settings. For small scripts, that's enough, but not for your own framework or extensive interactive applications. The solution is to host the code externally, for example in a GitHub repository, and only embed it in Webflow.
Where is the best place to host code for a Webflow website externally?
For code that's maintained and developed further, in a GitHub repository. A CDN like jsDelivr delivers the files directly from the repository, and in Webflow there's only a short script tag. Videos and image sequences, on the other hand, belong on a media CDN like Bunny.
Can you add AI-built features to a Webflow website?
Yes. A feature developed with AI support is, in the end, normal code. It's hosted externally and embedded in Webflow. What matters is that someone reviews the result and adapts it to the design and the brand.




