I want to call function before document get ready, so is there any method in Jquery to do this?
If you simply call a function in the head tag it will execute immediately, before the DOM is even parsed (that's the 'problem' that ready solves).
ready