Florimond Manca (en)<p>In 2023, two years after being built, the app was legacy. Couldn't upgrade the frontend.</p><p>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?</p><p>I took a week off my main project and did the app a favor: rewrite, but moving *out *of the "JS by default" paradigm.</p><p>I replaced the API routes with controller methods returning HTML rendered by Nunjucks <a href="https://fosstodon.org/tags/templates" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>templates</span></a>.</p><p>A third of the codebase disappeared!</p>