What is Nostr?
Nathan Knowler /
npub172d…zt3e
2024-06-12 15:58:46

Nathan Knowler on Nostr: Ok, this might be heretical, but defining some (most?) custom elements should ...

Ok, this might be heretical, but defining some (most?) custom elements should probably be render blocking? Especially if that’s how we expect declarative custom elements to work (even then we might still have a lever like `blocking=render` to make that call as authors). With that being said, if we do block render for our definitions it becomes vital we don’t do any weird shit in them. The goal still remains the same: write a custom element with the grain of the web so that the platform can forgive you later (i.e. it’ll eat your JS tech debt when you can rewrite as a DCE—which admittedly is a bit of a bet). This isn’t advice, just me thinking out loud/speculating. #WebComponents
Author Public Key
npub172dyqcxlmmacszwavnk6028pmz08hkvqgzsms2u6ryjn0rq4s9rqc5zt3e