Why my custom theia app start with One to two seconds of white screen

I just add a fetch in preload.js , and if not, original fetch will get result before the localization plugins loaded, so I can not get the transitions.

@lqd1434 Which version of Theia are you using? Newer versions will wait until the localizations are loaded before they return from the localization fetch call.

1.37.0

Ok, that should be new enough. Can you share a reproducible example so that I’m able to reproduce the issue? I’m not sure what’s wrong there.

oh, i am sorry, i am working a private project, so i can not give a reproducible example, but i want to ask that is there a method to reduce or remove the white screen?

Again, no idea what’s wrong there, and I’ve never experienced that issue either so I can’t really recommend anything.

oh, i am sorry, i am working a private project, so i can not give a reproducible example

I’m not asking for your project, but for a reproducible example. I.e. the least amount of code that reproduces the behavior.

On another note, do you get the same issue when using Theia Blueprint or the example app in the Theia repo?

i just clone the theia official github repositorie, i find that if load more vscode plugins the time will cost more ,and the time refers the white screen time, so it is the plugins load question?

so, can i just load essential plugins and when the main screen show or later to load another plugins ? can I do it ?

Very weird. There is a routine that runs at the very start of the application that sets the background color and loading indicator. It should run independently of how many plugins are loaded.

so, can i just load essential plugins and when the main screen show or later to load another plugins ? can I do it ?

I don’t think that’s possible in Theia.