Has anyone found any way to trigger a spinner, for as long as a page is loading in the webview component?
the problem, is that for as long as the page is loading the user gets annoyed without any feedback that the page is loading, now theres just a white screen
Hi! Select your page (page layout), go to Properties > Advanced and you’ll see a toggle for “show spinner on load”. This means you have to manually use hide spinner again to dismiss the spinner – does this sound like what you were looking for?
Unfortunately I think there’s no good way of implementing that currently.
The WebView component does not provide an event for when the displayed page DOM has finished loading, which would otherwise be the first option I’d look at (i.e. hide the WebView until it’s finished loading and display a spinner instead).
Pragmatically your best bets might be:
Rely on some constant delay (e.g. always display a spinner for one second),
Have WebView loading in the background if that’s possible for your use case
Display a page that’s in your control and implement the logic there