Improving ES6 workers loading time

Hi,

Loading all the workers takes a lot of time and delays the first rendering of the globe.

What I see:

  • there are many small workers;

  • these workers depends on several other files which encurs roundtrips;

  • the same workers are loaded several times.

This can be reproduced using the sandcastle:

Are you aware of it and do you have some suggestions about how to improve the situation?

Maybe it would be worth trying:

1- to combine each worker dependencies so that there is only 1 file to load per worker;

2- to combine all workers together (and there dependencies) into a single bundle.

For 1, I have looked into the gulp file but could not figure out where the rollup configuration asks for unbundled dependencies.

Do you have some guidances?

Let me know what you think about it.

Cheers,

Guillaume

1 Like

I am having the exact same issue. Each of the workers is downloaded sequentially, one by one, so the first render of the globe through the Internet gets delayed by 5 seconds at least. I am using the Cesium standard distribution (minified).

Is there a way to improve loading performance or to combine the modules somehow?