Open ddelpiano opened 5 years ago
That's a good starting point, we could concentrate on everything bigger than a threshold and think about the following:
Nice reading: https://medium.com/a-young-devoloper/analyzing-and-reducing-react-bundle-size-bb2d2577b22a
Besides everything aforementioned one interesting strategy to check is the use of compression-webpack-plugin: Here are some of the measures resulted of my experiences with that:
bundle / size / time / time with network restrictions
Uncompressed Dev : main bundle: 6.3MB / 265 ms / 2.9 min common bundle: 1.8MB / 215 ms / 1.3 min
Compressed Dev : main bundle: 1.3 MB / 493 ms / 39.07 s common bundle: 484 KB / 203 ms / 21.35 s
Uncompressed Prod / https://live.geppetto.org/ : main bundle: 1.4MB / 1.95 s / N/A common bundle: 404kb / 730 ms / N/A
Compressed Prod : main bundle: 722 KiB / Not Tested common bundle: 312 KiB / Not Tested
The measures were taken from the Hodgkin-Huxley NEURON simulation. Branch with the changes https://github.com/openworm/geppetto-application/tree/feature/23_geppetto_client
Next steps:
Regardless of the application that is using the geppetto-client, make the common chunks that are downloaded at the start very lightweight.