I’ve noticed a pretty laggy UI (production and dev) on a project I’ve been working on recently using mud v5. It uses lots of images and slideshows but has been unnecessarily laggy, and utilizing way too much memory. I Spent a couple days refactoring my code, memoizing components, and simplifying UI yet I still had poor performance which made no sense since most of the screens were fairly simple.
Today, my app is running as fast as expected! How? I removed almost every component used by material-UI. Literally every time I swapped a material-UI imported component over to my own custom components, or just regular html tags, performance got better. Now I’m pretty much only using buttons from mui and my app is snappy and fast. Makes no sense for my to even keep the component anymore if all I’m using are buttons. I’ve never experienced such a performance hit from a mui tho.
Can’t help but wonder why? Has anyone else experience something similar recently?