3 ms·
Can next.js give me a page's links without requiring that I execute any code that I didn't have prior to visiting that page? The .js part makes me think not.
by __MatrixMan__ 1mo ago
Can next.js give me a page's links without requiring that I execute any code that I didn't have prior to visiting that page?
The .js part makes me think not.
- pests 1mo agoSpeculative 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.