Created
September 8, 2017 09:21
-
-
Save shabaz-ejaz/98c50942c1b0821ad97677358356151c to your computer and use it in GitHub Desktop.
Reload page if loader shown for more than 6 seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(() => ( function(){ if(this.isFetching) window.location.reload(true); console.log("page reloaded due to loading timeout") }), 6000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment