Created
June 18, 2020 14:51
-
-
Save codedrops-io/f617d418deea6746fb185771088bd978 to your computer and use it in GitHub Desktop.
Check if a feature of your project is loading slow.
This file contains hidden or 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(() => { | |
if (!HAS_LOADED_CONDITION) { | |
// This should be sent to your error tracking system | |
console.error('⚠️ Slow connection!') | |
} | |
}, 10000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment