$(document).ready()

$(document).ready()


hello,
I would like to specify the order of the function in order to be
executed.
for instance
$(document).ready( function() { // cleanup(); }, 100 ); // executed at
the end
$(document).ready( function() { init(); }, 0 ); // executed at first
$(document).ready( function() { // normal code } ); // executed by
default at position 1
$(document).ready( function() { // normal code } ); // executed by
default at position 1
$(document).ready( function() { // normal code } ); // executed by
default at position 1
When the position is the same, the order of insertion is taken.
I actually meet the problem because I abstracted some code that would
need to be executed at the end, but is now executed at first :-(
Do you have any idea ?
Cheers,
Sylvain