Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save imhamad/e5b3c5541171b718c619313c8042d774 to your computer and use it in GitHub Desktop.
Save imhamad/e5b3c5541171b718c619313c8042d774 to your computer and use it in GitHub Desktop.
Check if a feature of your project is loading slow.
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