Loading indicator - how to display it for screens?

Hello,
some of my windows/screens loads slowly, about 2-3sec.
There should be some feedback for user, that the server is working…
Some screens have Loading indicator built-in. It is from Vaadin I guess…
I wan to use it too. But how?

Or how to change the mouse cursor to sand-clock?

Thanks.
Tomas

UPDATE: The VAADIN loading indicator is shown only some times. Usually after login and first display of a view/window. But subsequent opening and closing of screens does NOT show the loading indicator.
Why? It takes so long. What are the rules/conditions?
Thanks.
T

Hi,

when the screen loading takes some time then by default the loading indicator is shown as a thin progress at the top of the screen

Screenshot 2023-05-29 at 11.24.38

Could you please describe in more detail what you want to achieve?

Regards,
Gleb

OK, the thing is that I click on left item in the menu and nothing happens for 2-3 sec. No change, no indicator, nothing. This is confusing…
Sometimes the Loading indiator is there and is progressing to the right. That perfect. But sometimes nothing.
Thnak you.
T

Unfortunately, I can’t reproduce the problem. Every time, a task takes noticeable amount of time, a loading indicator appears. Could you please provide a demo project that reproduces the problem?

Regards,
Gleb