Using waiter.
Show a waiter with default options.
If id is null then the waiter is full screen.
// default
waiter.show({
id: null,
html: '<div class="container--box"><div class="boxxy"><div class="spinner spinner--1"></div></div></div>',
color: '#333e48',
hideOnRender: false,
hideOnError: false,
hideOnSilentError: false,
image: null,
fadeOut: false,
ns: null,
onShown: setWaiterShownInput,
onHidden: setWaiterHiddenInput
});
Hide the waiter, onHidden is a callback function to run when
the waiter is hidden.
waiter.hide(id, onHidden)
Update the html content of the waiter.
waiter.update(id, html)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.