4 ms·
I'm wondering why W3C is using some limited declarative "language" instead of the more powerful Javascript to figure out these hints.
by amelius 11y ago
I'm wondering why W3C is using some limited declarative "language" instead of the more powerful Javascript to figure out these hints.
- drdaeman 11y agoSanity reasons, I suppose. One does not need to run a program in Turing-complete language just to express something as simple as few weighted sets.
- wtbob 11y agoWow, Poe's Law strikes again. Are you making a joke or are you serious?
- amelius 11y agoI wanted to make clear that I was serious, but there is no seriousness punctuation, only irony punctuation [1] [1] https://en.wikipedia.org/wiki/Irony_punctuation https://en.wikipedia.org/wiki/Irony_punctuation
- wtbob 11y agoWell, then see drdaeman's response. There's no reason to add anything more which requires JavaScript unless there's absolutely no alternative. Otherwise, why not just serve up a blank page which executes JavaScript to add characters one at a time?
- mccr8 11y agoOff-hand, I'd guess you can use these hints earlier in the loading process than you could start executing JS.
- SimeVidas 11y agoThese hints can be placed inside the HTTP response header. A JavaScript API can only be used via `<script>`, which can only appear on the page (after the HTTP response has arrived).