Alvaro Montoro on Nostr: Out of curiosity, why is JS needed even for "static" web components? Wouldn't it be ...
Out of curiosity, why is JS needed even for "static" web components? Wouldn't it be better expanding the <template> to inject the JS if needed or use something like a DTD for components?
Published at
2024-07-11 19:01:44Event JSON
{
"id": "3daedd657a9ab643ddfc1b338cd8f3253cf14e4735e8732ea581f35d953e12dd",
"pubkey": "2d5c0019b3f1700b4670038856105a59a6efda8414ea5ba045664ee99880ef54",
"created_at": 1720724504,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/users/alvaromontoro/statuses/112769401122609703",
"activitypub"
]
],
"content": "Out of curiosity, why is JS needed even for \"static\" web components? Wouldn't it be better expanding the \u003ctemplate\u003e to inject the JS if needed or use something like a DTD for components?",
"sig": "0c55699000e8c9c0c7584a09b379308dc393da4daf099cd1a16b7e369ded9e95e43e2ab2aaa6d21504e9e5497e46cd57247724c2b8669bfd568e282d8804dc00"
}