|
|
|
|
|
by sopromo
2152 days ago
|
|
From their FAQ about dependencies in this case for js: Can I use npm with Workers? Workers has no explicit support for npm, but you can use any build tool or package manager you need to create your Worker script. Just upload to us the final, built, script with all dependencies included. |
|
Anyway, what I'm getting at is, the platform has to load a bunch of code, sometimes that will take longer than the latency that you can hide behind an ssl handshake; plus the code might run something on init.
But yes, workers seem to be oriented towards relatively small bits of code, so maybe the vast majority of load times are a few ms.