Why Nostr? What is Njump?
2024-05-31 02:39:05

Nathan Knowler on Nostr: Write your custom element’s JS in such a way that when the declarative form of ...

Write your custom element’s JS in such a way that when the declarative form of custom elements show up you get to delete all or most of your code (or keep it around as a polyfill). How do you do that? Pay close attention to how HTML elements work and keep the weird shit to a minimum. The weird shit is your tech debt that the web platform isn’t going to forgive you for.

Until then your custom element is a progressive enhancement for something else. And remember that’s not about providing the same experience, but an equitable one. When you start with a base experience that’s proven to work, sometimes you realize you don’t need an enhanced one. Win-win.

#WebComponents #ProgressiveEnhancement
Author Public Key
npub172dyqcxlmmacszwavnk6028pmz08hkvqgzsms2u6ryjn0rq4s9rqc5zt3e