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 onclick
s, 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 | More toots from olets@hachyderm.io
text/gemini
This content has been proxied by September (ba2dc).