Skip to content

Instantly share code, notes, and snippets.

@rakeshpai
Created January 16, 2012 20:55
Show Gist options
  • Save rakeshpai/1623028 to your computer and use it in GitHub Desktop.
Save rakeshpai/1623028 to your computer and use it in GitHub Desktop.
Errorception populating the queue before it's ready to flush
<script>
var _errs = [];
window.onerror = function() { _errs.push(arguments); }
// <snip> Load our JS asynchronously, after page load, to process the _errs "queue"
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment