In 2023, two years after being built, the app was legacy. Couldn't upgrade the frontend.
Sure Svelte was less heavy than React. But why did the login page, as bare as it was, need JS anyway, let alone 100kB of it?
I took a week off my main project and did the app a favor: rewrite, but moving *out *of the "JS by default" paradigm.
I replaced the API routes with controller methods returning HTML rendered by Nunjucks #templates.
A third of the codebase disappeared!
=> More informations about this toot | View the thread | More toots from florimond@fosstodon.org
=> View templates tag This content has been proxied by September (3851b).Proxy Information
text/gemini