3 ms·
Speculative Rules API <script type="speculationrules"> { "prefetch": [ { "source": "list", "urls": ["/checkout.html", "/thank-you
by pests 1mo ago
Speculative Rules API
<script type="speculationrules">
{
"prefetch": [
{
"source": "list",
"urls": ["/checkout.html", "/thank-you.html"]
}
]
}
</script>
- __MatrixMan__ 1mo agoRight, but my browser doesn't interpret that. The site tells me to run some code which interprets it. I should be able to get the lay of the land without trusting the site enough to blindly execute whatever code it points me at. It's needless attack surface. Also it's not really pointing me at data, its pointing me a certain kinds of requests which I have to trust will be responded to consistently. I'd much rather have a hash so if I have that data lying around I can just forgo the request entirely and use what's present locally.
- pests 1mo agoThat is a browser API, there is no other code or script needed.