efortis 7 hours ago

> But it doesn't really matter. What's important here is that for the data fetching process to trigger, JavaScript needs to be downloaded, compiled, and executed.

Not true. In SPAs, APIs can be prefetched before the JavaScript assets are downloaded. For example, in index.html:

  <head>
    <link rel="preload" href="/api/colors" as="fetch" crossorigin="use-credentials">
  </head>

More options and details: https://github.com/ericfortis/aot-fetch-demo