Refs #463. Move iframe load detection outside of the iframe HTML.

IE double-loading is still occuring.