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
Published at
2024-06-12 15:58:46Event JSON
{
"id": "663fee5ff90e9cb159be13b78fde2bedeb79e1b3fc445b685afe302a56794d7a",
"pubkey": "f29a4060dfdefb8809dd64eda7a8e1d89e7bd98040a1b82b9a1925378c158146",
"created_at": 1718207926,
"kind": 1,
"tags": [
[
"t",
"WebComponents"
],
[
"proxy",
"https://sunny.garden/@knowler/112604474641099534",
"web"
],
[
"proxy",
"https://sunny.garden/users/knowler/statuses/112604474641099534",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://sunny.garden/users/knowler/statuses/112604474641099534",
"pink.momostr"
]
],
"content": "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",
"sig": "97a1cdde63b61495d9cc4bdc782f483e0c83472ed9e13937f178c2b3ac4bc4a9cc331830d24e9cf35ef778dc57338d7e737ec656eb00c087d5b8f691cfcc09e2"
}