Hi,
It seems to have something to do with template.aspx. It also does it when the page posts back. I do not wish to use the save button on the editor as I have a number of buttons on the page which postback and this seems to be the issue. (I have a button for example called "revert to live version" to reload the live content into a pre-release version.
I have javascript alert written back in the code when its save and pre-release and the whole page displays underneath until I press OK and then the proper content renders again
I have attached some screen shots,