3 ms·
When I tried to ask you about this stuff on Twitter the other day, this was your dismissive response: https://twitter.com/domenic/status/774762508091551745 http
by rich_harris 10y ago
When I tried to ask you about this stuff on Twitter the other day, this was your dismissive response: https://twitter.com/domenic/status/774762508091551745 https://twitter.com/domenic/status/774762508091551745
Speculative fetching is possible in HTML because <link> and <img> and <script> tags etc are declarative. Similarly, modules can be fetched without the code executing because `import` is declarative. How can a browser prefetch modules when it encounters an imperative statement like `x = await import(computedModuleId())` without actually running the code?
- domenicd 10y agoYes, I found all of your points wrong, as I'm explaining in a medium with more than 140 - @-names characters in this Hacker News thread. See above for a response to your point here.