Answer the question
In order to leave comments, you need to log in
Is it possible to get the browser page loading icon status?
Is it possible to get the browser page loading icon status?
Answer the question
In order to leave comments, you need to log in
The icon changes to a spinner by the browser when the page is loaded (as well as objects that require loading, such as scripts, images and frames).
You can be sure that the spinner is spinning if . However, if something is loaded later, then, alas, there is no way (reliably) to find out about this, because this behavior is purely a front-end decision of browsers and is not documented anywhere.
You can make it spin whenever you want by adding and removing an "eternal loading" iframe.
But it's easier to just change the favicon as Aleksey Yarkov pointed out . document.readyState !== 'complete'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question