Is there a recommended bundle size to

Is there a recommended bundle size to remain below for workers for the start-up time to remain unnoticable? Should I be concerned about increasing 500KB -> 1MB?
3 Replies
petebd
petebd4mo ago
Startup time is subject to more than just bundle size. You should always be concerned about significant increases in size as it is hard for it not to have an impact. I think the best you can do is monitor and measure.
petebd
petebd4mo ago
GitHub
workerd/src/workerd/io/compatibility-date.capnp at 68d394ff7c3e8d09...
The JavaScript / Wasm runtime that powers Cloudflare Workers - cloudflare/workerd
petebd
petebd4mo ago
When this becomes stable we will be able to avoid loading and parsing dynamic imports before they are requested. This will help start up time if you split up your app into lazy loaded chunks

Did you find this page helpful?