The normal flow is to have JavaScript manipulate the DOM. For example, I have a callback from a transaction executeSql on an openDatabase. The callback manipulates the DOM to add the result into a div.
But I have a special case where the page has to load correctly in toto. Yes, that's right - I used the phrase in toto.
Q: Is there a way for JavaScript to pause the page load until call the callbacks have called back?
I'm thinking I will have to use document.write instead of $('body').append().