It’s been quite a while (nearly 3 years?) since @callmevlad and @danro mentioned they were working on streamlined webflow.js export functionality, but I don’t think it was ever released in the end.
I’m only using a few animations on my website, and don’t want to load the whole webflow.js.
With the webflow.css file, it’s easy to see what is unneccesary and cut it from the file. But with the webflow.js file, it’s very difficult to understand what can go and what needs to stay.
I just want a minimal subset of the webflow.js that is generated when I export my site, and is tailored only for what I’m using.
Actually, my understanding is that it is the full webflow.js file. It might be smaller than yours because it doesn’t yet have any user-added interactions.
The problem is: that’s the file for an empty project. It shouldn’t have anything in there for a slider or lightbox or lots of other things.
Oddly earlier today I was debating if I should start a new project with Webflow or just start hand coding from scratch. So I basically went a head and just exported a “blank” document. Here was the breakdown:
So you’re basically looking at 200k for a “blank” project.
EDIT: Just wanted to add if you run the JS through a minifier here was the savings:
Stats: 54.59% compression, saving 77.89 kb
That brings it down to 65k. This, again, was stated in a previous post I had replied to a few weeks ago is why I don’t host with Webflow. The code isn’t optimized enough for my liking.
Yes, and incase you missed the update to my previous post:
EDIT: Just wanted to add if you run the JS through a minifier here was the savings:
Stats: 54.59% compression, saving 77.89 kb
That brings it down to 65k. This, again, was stated in a previous post I had replied to a few weeks ago is why I don’t host with Webflow. The code isn’t optimized enough for my liking.
I remember seeing a ‘since you’ve been gone’ notice about this too – I guess it must have been reverted.
While on topic, I created a wishlist item for this a while ago. There’s also a related one for minifying the js (which does offer a decent kb saving, not sure why this has been implemented for CSS but not JS yet).
Please don’t get me started. I get they have to keep things “updated” for marketing, but at some point you have to fix the stuff that people are paying for. I am starting to wonder if they think ignoring their paying customers is going to pay off in the long run because there are other options out there.