Toot

Written by Henry Bley-Vroman on 2025-01-22 at 19:46

New article: Adding front end interactivity to sites not written in JS

Introduces a pattern I've used to add JS interactivity without filling my markup with <script> tags and onclicks, then shows how a small refactor can turn that into Light DOM web components.

Applicable to many sites not using a JS framework, but written especially with the @eleventy and @craftcms communities in mind.

https://olets.dev/posts/adding-front-end-interactivity-to-sites-not-written-in-js/

[#]JS #SSG #eleventy #CraftCMS #WebComponents

=> More informations about this toot | View the thread | More toots from olets@hachyderm.io

Mentions

=> View eleventy@fosstodon.org profile | View craftcms@craftcms.com profile

Tags

=> View js tag | View ssg tag | View eleventy tag | View craftcms tag | View webcomponents tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113873727361613941
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
229.042861 milliseconds
Gemini-to-HTML Time
0.495803 milliseconds

This content has been proxied by September (ba2dc).