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.
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