I have a first.js file included in the page index.php that have something like this:
$(function(){
$(\"#my_slider\").slider(\"value\", 10);
});
Based on Ian's answer I figured this out (tested - working):
jQuery(document).ready(function() {
jQuery(document).ready(function() {
/* CODE HERE IS EXECUTED AS THE LAST .ready-CALLBACK */
});
});
Of course this is because the ready callbacks are invoked in the order they where assigned. At the moment, when your outer ready callback is invoked, all other scripts should have their ready callbacks already assigned. So assigning your ready callback (the inner one) now will lead to yours being the last one.