Implementation overview
How to load your JS and CSS file per page on Webflow?
By default, Webflow loads all your custom JavaScript and CSS across every page, regardless of whether it’s needed. This can lead to slower load times, unnecessary code execution, and harder debugging.
If your website has page-specific functionality — like a form script that only runs on the contact page or animation styles used only on the homepage — it’s more efficient to load those scripts and styles only when required.
Optimizing code delivery per page improves performance, SEO scores, and the overall user experience. It also makes your codebase cleaner and more maintainable.
How to do it on Webflow?
Go to Site Settings > Publishing > Advanced options
Toggle on Enable per-page code loading
This must be done by a Workspace or Site owner/admin
Webflow documentation for per page JS load
Webflow documetation for per page CSS load