What about Web Components? 0 ▲ timomeh.de 1 hour ago · Tech · hide Are Web Components actually usable nowadays? Could they replace frameworks and bundlers for small to medium sites? Honest question! After only using frameworks and bundlers for too many years, I’m totally out of the loop what’s now natively possible. I’ve built a few interactive islands on this site as custom elements, mostly for the sake of encapsulating logic. Like my navigation bar, that floats when you scroll up. Writing this, I realize that this sentence will be outdated as soon as I change the design of this site, and future readers will think “what floating navigation bar?” If that’s the case, then: whoopsie sorry! Using custom elements for these JavaScript islands also has the advantage that event listeners can initialize when elements mount or unmount: document .querySelector('main-nav') .addEventListener('click', () => { // Only fires when `main-nav` was mounted during // initial page load. When it mounts later, it won't fire. }) class MainNav extends HTMLElement {… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town