Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
It's always good to keep track of these things over time so performance doesn't slide. Parcel, which I used for this project, has a helpful bundle analyzer (similar to the one for Webpack) that gives a nice visual overview of a project's bundle. This is especially helpful for identifying bundled dead code coming from packages that could be avoided with tree-shaking. There are also plenty of tools you can integrate with CI to enforce bundle size.
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
This one only applies to React-based projects, but the simplest way to cut out a sizeable chunk from your bundle is to swap React for Preact. There are guides for doing this process in a few steps, and with the preact-compat compatibility layer chances are you won't notice a difference (except for the significantly smaller bundle size!)
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.
👩🎤 CSS-in-JS library designed for high performance style composition
For example: I was using emotion to style components, but this was overkill for such a small project. There was no good reason why I needed to keep it, so I just scrapped it for old-fashioned CSS and let the bundler take care of it.
Setup ReactJs + TS + Styled-Componets + Redux
3 projects | dev.to | 27 Mar 2023
Complete Guide On How To Use Styled-components In React
3 projects | dev.to | 16 Feb 2022
State of the Web: React
9 projects | dev.to | 13 Feb 2022
How to build UI elements using CSS pseudo elements
2 projects | dev.to | 29 Dec 2021
Help figuring out platform
2 projects | /r/Wordpress | 26 Nov 2021