earlyWebReturn
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
main.tsx
https://neverstew--2a1cc456278011f0b46e569c3dd06744.web.val.run
This val demonstrates the early response return feature of web vals. It produces two timestamps:
- one in the response JSON, which returns pretty much straight away
- one in the logs, three seconds after the response is returned