Use both. In an element with a predictable ID, include your loading message. Put that near the top of the page. As early as possible in your page lifecycle on the server, flush your response buffer so you will send what’s prepared so far to the client, which should include that part of the markup.
Also include a JavaScript that is fired on the onload event, which finds that element and sets the style.display to none.
Comments
Leave a comment Trackback