> there is a statistics script in the same page.The statistics > script is so slow that someFun cannot run at once.
Do you have a page that demonstrates the problem? It sounds like your statistics script may use document.write() calls to inject HTML into the body of the page. If that is the case, then it would hold up jQuery's .ready() handler.