shabados / presenter

Desktop app for presenting the Shabad OS Database on projectors, TVs, and live streams
https://shabados.com
MIT License
19 stars 15 forks source link

Explore how to shorten node startup time #241

Open bhajneet opened 4 years ago

bhajneet commented 4 years ago

Currently taking 10-11 seconds to load the first window of Shabad OS on a relatively high-end laptop. Specs below:

Can this be reduced to no more than 3-5 seconds?

bhajneet commented 4 years ago

This will take upwards of 20 seconds if changing laptop to "Best Battery Life" mode (most left of this slider in windows 10)

image

bhajneet commented 4 years ago

v1 takes 2 seconds

v2 takes 7+ seconds

saihaj commented 4 years ago

We can try this out: https://reactjs.org/docs/code-splitting.html

AkalUstat commented 4 years ago

Pretty sure @Harjot1Singh is already using lazy loading

Harjot1Singh commented 4 years ago

Indeed we are already using code-splitting for lazy loading, we could probably go even further, but I think the next steps involve shortening node startup time