Libraries like Backbone, Turbolinks, and Stimulus attempt to augment “the HTML you already have” with varying degrees of success and adoption, but the industry seems to have drifted away from this idea in favor of complex client-side approaches (like React). We’ve convinced ourselves that it’s impossible to simply serve HTML web pages and deliver the experience our users expect, but often the most complicated projects have the most to gain from this approach.
That’s why I decided to build Trimmings, a new tool for people who build websites.
data-* attributes) that enhance your page’s interactions. This includes things like loading a section of a page in a modal on the current page when the user clicks a link, or pre-fetching linked content and embedding it in the current page as soon as it’s loaded.
Get Trimmings on GitHub now:
Adopting Trimmings requires no specific technology but does work best when a website is built to serve HTML from meaningful URLs. Learn more about how to set yourself up for success with Trimmings in the Getting Started guide.