title: Function calls from outside of $(document).ready to the function defined in the $(document).ready
body: <p>I wanna use $(window).resize to call some function when a mobile device orientation change, I wrote all my code inside the $(document).ready, this works when I use an Android device, but with iPhone after first orientation is detected it doesn't call $(window).resize even again. When I put the (window).resize function outside of $(document).ready, it also works on iPhone.</p>
  
  <p>Inside this $(window).resize function, I have to make call to the methods which are defined in the $(document).ready block, so how can I do that?</p>