We can start a timeout in an inline script block in
section , which will be run as soon as it's encountered.We would then cancel the timeout when the load event fires. If the timeout ever fires, the page is loading slowly.
In real world project - We would want to replace the alert with something little more useful.
Top comments (0)