nasa / openmct-tutorial

A tutorial for OpenMCT that guides you through integrating historical and realtime telemetry.
Other
245 stars 104 forks source link

Avoiding the flash of unstyled content at the beginning #46

Closed trusktr closed 2 years ago

trusktr commented 3 years ago

On the end-user side, the following does the trick.

Change

openmct.start()

to

setTimeout(() => openmct.start())

A fix can be made inside openmct.start().

trusktr commented 2 years ago

Me me me me, assign to me! ✋

akhenry commented 2 years ago

I think this is the same issue as https://github.com/nasa/openmct/issues/3502 (correct me if this is actually something slightly different).

If it is, a setTimeout might not be enough. Are there any other solutions we can explore? I also want to be careful to avoid adding any unnecessary delays on fast systems.

@charlesh88 May have some thoughts on this.

trusktr commented 2 years ago

Yeah, that's the same issue. Indeed a setTimeout may not work all the time. I'll close this one for that one.