Amoxi: Fast pages with very little JavaScript
Amoxi is a web framework built on the idea that most pages are mostly static content, so it renders pages to plain HTML on the server. Only small interactive components, called islands, ship JavaScript to the browser. The article walks through adding a stats page to a notes app, with a live filter box, a slow streaming section, and links that load without a full page reload. Islands are written with signals, computed values, and keyed lists, and can be set to load immediately, when the browser is idle, or when scrolled into view. The example page's total JavaScript cost is under 6 kB, and the page still works with JavaScript disabled.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in