title: SPA multiple JQuery document.ready()
body: <p>Was wondering if anyone has some insight into a sound way of doing the following. I'm writing a single page app with a templating engine. The 'main' page has its own <code>$(document).ready()</code>, but what should I do for other ajax calls, that have their own <code>document.ready</code>? Let's say I load up the login page, which has it's own <code>document.ready</code> for form validation, so the page will have two of them, one from the layout, and one from the login script. Is this acceptable, or is there a better way of doing it?</p>