ipad2的浏览器报js execute timeout的错误

iPhone javascript execution exceeded timeout
Posted on July 6th, 2011
Wow. I know that Apple severely cripples their phones, under clocking their processors, etc. I know that the iPhone 3G I have for testing is incredibly slow when side-by-side with my Android Samsung Galaxy S phone… But my experience with this iPhone has hit a new low… I was just debugging a problem with the iPhone showing a blank page on a functional JQuery Mobile page. It works perfectly in all desktop browsers, as well as on Android, WP7, etc. I enabled iPhone’s debug console and it’s reporting a javascript execution timeout error in JQuery 1.6.1 code. Apparently, the iPhone 3G runs so slowly that it is now timing itself out when trying to render a JQuery Mobile page…

Now I have to start trying to find a work-around to make this work… From what I understand, the javascript execution timeouts are reset with new execution contexts– of which setTimeout is one… So possibly I need to put some of my page initialization code in a setTimeout code so that it will actually run on an iPhone 3G…  Amazing the lengths I must get to to make things work on all these devices….and don’t even get me started on Blackberry support…

另一个参考
http://stackoverflow.com/questions/7876994/ios-5-safari-javascript-execution-exceeded-timeout

你可能感兴趣的:(execute)