Be careful about hard coding Javascript in SharePoint 2007
Have you ever gotten "Please wait while scripts are loaded..." in SharePoint 2007? This is caused by a script error on the current SharePoint page. To solve this problem just fix the javascript errors on the page and it should go away. If you are a using a minimal or custom WCM master page you might run into this. One place you might see this after applying a new master page is in the Survey form. This is due to a hard coded script line in a content area that tries to set an element without checking if the element exists first. Actually this should happen in an list that uses the form.aspx where the code actually lives.
<script id="onetidPageTitleAreaFrameScript">
document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
</script>
If you don't have this element the message to wait for scripts will never go away. To define the element just add it to a table as defined on the default.master page like the following table row:
<td valign=top id="onetidPageTitleAreaFrame" class='ms-pagetitleareaframe' nowrap>