I'm working in APEX 5.0.1 and I'm having a problem with one page that doesn't always seem to load correctly. It's a modal dialog with a fair amount of dynamic actions, mostly javascript. 90% of the time everything works fine, but the other 10% the page looks like it loaded, but the javascript doesn't run, not just the onload actions but also anything else that's based on a click or a change. Most of the time the page looks completely normal but a few times most of the page looks normal but I see this at the top of the page:

It also doesn't seem to matter what browser I use. I've been able to recreate the problem with IE, Chrome and Firefox.