i usually do
$('#load').show();
$(document).ready(function(){
$('#load').hide();
});
where <div id="load"> has just a animated gif
but i was thinking of improve a little bit and show a progressbar
having
<div id="load"><div id="done"></div></div>
so i could, in a timeout (i guess)
var percent_done = how_do_i_figure_out(); /* here is where i need help */
$('#done').width(percent_done);
It can’t be done!
You have no access to elements not rendered yet, so how would you know what is missing?!