So my website seems to work okay on desktop but it constantly crashes on mobile. I have no idea why (just an average jo tryna make a site) so I was hoping someone might be able to have a look and maybe have some ideas of things I could try to fix it. Also open to any general optimisation suggestions as it’s performance isnt the best. I work in media and need to have a lot of work displayed so the page size is quite big but any tips would be great!
Hi! First of all, congratulations on great design! Love it!
Some tips on performance.
Replace all images with Webp
Something I try to do is make sure any of my images aren’t greater than 1600px in height or width. Nobody is going to view the image in 5000px width unless they’re plugged into a projector or something.
Make sure you have minimize CSS, minimize JS checked
Make sure you have hit cleanup for both styles and interaction or else all those unused animations and styles are going to still be there slowing down the website.
You can do this from webflow assets panel now. Just select all jpg, jpeg, and png assets (make sure other formats like svg, pdf etc are not selected) then hit compress and webflow will do it for you
Thats great!
To minimize CSS and JS go to Site Setting for the project, then navigate to Publishing and as you scroll down you’ll find toggles for “Minimize CSS” and “Minimize JS”.
So in your Designer, on the left side (where you find the tab options for Pages, Navigator), hover through and find Style Selector. Open this table and on top there is a paint brush which should say “Clean Up” when hovered. Hit this button and it will remove all the unused styles and classes from your code
Similarly for JS, go to interactions on the right side and you’ll find the paint brush near the title as well. Hit “Clean Up” and it will delete all the unused interactions from your code.
This overall will improve your speed massively as you have a ton of unused things there when I checked. I’m including screenshots to both of these as they might be a little hard to find.
Thanks so much for all the info, that was super helpful! the mass compress feature was such a relief haha. Compressing now but will try update how the changes affects the performance :)