Page Load ($(document).ready) events

Page Load ($(document).ready) events


I'm starting to build an app using jQuery mobile and ASP.Net MVC, and was wondering how to call methods on when then DOM was ready?

As jQuery hijacks linked pages using AJAX, then diregards the <head> elements before injecting them into the DOM - this means that page load-type js calls in the head are only executed on the first page.

I can see that the DOM will already be 'ready' for subsequent calls, however, where should put page load js calls so that they are excuted on every page load for new devices, and pre-HTML older ones which will view the degraded pages?

Any advice gratefully received