1. you should just load the top few branches of the tree and then load the rest on demand
2. try something like this
<%Response.buffer=true%>
document.write('<div id="progressbar">loading....</div>');
<%response.flush
'generate your code
%>
function window.onload()
{
document.all('progressbar').style.display = "none";
}