I launched [this site](http://threejs.live/#/) yesterday (a site for live editing [three.js](https://threejs.org/) examples) and found that when making updates to the code or navigating to multiple example files, the frame rate skyrockets to around 1000 f/s.

The first mention of this is [here](https://github.com/mrdoob/three.js/issues/10481). I'm not sure why the frame rate would increase after updating. The WebGL canvas is inside an iframe, and I'm updating the iframe content with this code (iframe has an id of 'preview):

```
    var previewFrame = document.getElementById('preview');
    var preview = previewFrame.contentDocument || previewFrame.contentWindow.document;
    preview.open();
    preview.write(this.props.code);
    preview.close();

```

Does anyone have an idea how to resolve this? The editing is done with [CodeMirror](http://codemirror.net/) and the site is built with [React](https://facebook.github.io/react/). All src code is in the [repo here](https://github.com/ekatzenstein/three.js-live).