0

Is there any jQuery or Javascript event which fire before $(document).ready();?

If there are many then can anybody list them with description, please?

I have tried:

 $(document).on("pageinit", function () {
        debugger;
        alert("pageinit event fired!")
    });

and it is not working, doesn't even fire once :( I am working in asp.net MVC, and I am doing this stuff in a partial view

I know I can do the required stuff before rendering the Partial view,but just want to know more about it. $(document).ready() event is working fine, but is there any event which fire before this?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
R K Sharma
  • 845
  • 8
  • 23
  • 42

0 Answers0