ipad2的浏览器报js execute timeout的错误
程序员文章站
2022-07-13 10:59:18
...
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://*.com/questions/7876994/ios-5-safari-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://*.com/questions/7876994/ios-5-safari-javascript-execution-exceeded-timeout
上一篇: 分布式缓存学习记要
下一篇: curl的timeout 崩溃问题
推荐阅读
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法
-
ipad2的浏览器报js execute timeout的错误
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法_php技巧
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法_php技巧
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法_PHP
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法_PHP
-
defer属性导致引用JQuery的页面报“浏览器无法打开网站xxx,操作被中止”错误的解决方法_javascript技巧
-
Nodejs Post请求报socket hang up错误的解决办法_node.js
-
解决ThinkPHP下使用上传插件Uploadify浏览器firefox报302错误的方法