Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slow to start clock faces device setTimeout(function, time) not working?

Hello,

 

I am trying to improve the launch time of my clock face by only loading the important parts for display and delaying other non-essential elements. However, when I try to use the setTimeout feature to do this it does not delay running the desired function. I have tried putting setTimeout for a few minutes on all functions in the app/index.js except the time and this still does not work. The screen remains blank for about 10s before loading. Once loaded it is responsive, but just slow to get there.

 

I have even tried putting a function with only a console.log message to be delayed by several minutes, but this will log in the console immediately after the clock face is loaded on the device.

 

From the API I cannot find a better way to improve the loading time to help shorten to less than the 5 seconds. Does anyone have any suggestions?

Best Answer
0 Votes
0 REPLIES 0