Spinner like in Dashboard application

Hello

i want to show a spinner until a component is loaded like in https://demo.vaadin.com/dashboard/ (there a spinner until the page is loaded) but i could’nt figure out how to do it.

can anyone help ?