How to force already loaded Javascript functions and pieces of HTML to work during loading page containing them? I.e. to display database query processing by server?