← Graph

Custom Elements

concept 2 connections

Native web-platform feature that lets developers define new HTML tags backed by JavaScript classes, encapsulating behavior without a framework. Used on the Rails World website to deliver modals, carousels and similar interactive components without setting up an esbuild pipeline. Classes are referenced via a plain script tag alongside a turbo import, so the site still works even with JavaScript disabled.

category
pattern
about
Custom Elements concept
Chose native custom elements instead of an esbuild pipeline
uses
Custom Elements concept
Uses native custom elements for modals/carousels

Provenance

Created in
wroclove.rb 2023 Lightning Talks 2026-04-17 22:11
Read by
3 extractions