title: jQuery: Enforce order of execution of document.ready() calls
body: <p>I'm working on a codebase with multiple blocks of code setting some behavior on document.ready() (jQuery). Is there a way to enforce that one specific block is called before any of the others? </p>
  
  <p>Background:
  I need to detect JS errors in an automated testing environment, so I need the code that starts logging JS errors to execute before any other JS code executes.</p>