Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
100% CPU in IE7 (desktop) when in a iframe #1422
I've been able to replicate a issue with Alpha 4.1 (and 4.0) that will cause 100% processor utilization in IE7 when it is run inside a iframe. The CPU usage spikes when the page is loaded, however occasionally I've got the page to load but whenever an action occured (click on element) the CPU usage would spike and render the browser unusable. A very basic sample follows...
** Warning: this will crash your IE7 browser, so be sure you don't have any other IE7 windows open that you want to keep around **
<iframe style="width:250px;height:100%;" src="http://jquerymobile.com/demos/1.0a4.1/"></iframe>
The iFrame issue does not affect Google Chrome 10 or FF4.
Based on my preliminary, non-uber-js-coder spelunking through the source with the Visual Studio debugger, it appears its a resize event that is causing this problem. Presumably, there are some resize events getting called, and then whatever code is executing is resizing something, causing the event to be fired again (and on forever).
added a commit
Apr 21, 2011
OK, after more research, the fix above addresses the issue. The iframe wasn't the issue, it was just the small width of the window. I've finally got around to making my app work inside the iframe (yeah!).
Once the small width issue is fixed, this ticket can be closed.