[jQuery] How to make the .ready fire earlier

[jQuery] How to make the .ready fire earlier


I have some jquery code in a
$(document).ready(...) block. In my html I have script tags in the
body, which loads remote objects.
The jquery code is conditionally hiding some elemnts on the page.
Now, the remote object load after the page has loaded, and
jquery .ready fires after the remote objects are loaded, which means
my users see the elemts which should be hidden, and after a delay
getting it hidden.
How can I make the jquery .ready fire after the document has loaded,
but before the remote objcts are fetched?