iPad 网络应用程序似乎分块重绘。有没有优化来阻止这种情况?
例如,我在主页上有一个简单的过渡,可以在三个不同图像之间淡入淡出。在浏览器中,它会漂亮地消失,但在 iPad 上,它会用块重新绘制它(想象一下 Google 地图加载速度非常慢)。我可以做些什么来阻止这种情况吗?实在是太丑了。
For instance I have a simple transition on the home page that fades between three different images. In a browser this fades beautifully, but on the iPad it redraws it with blocks (imagine Google Maps loading very slowly). Is there something I can do to stop this? It's quite ugly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果其他人遇到这个问题,我已经找到原因了。
完整答案在这里:http://www.appleinsider.com/articles/11/03/15/full_screen_web_apps_fail_to_use_nitro_acceleration_in_apples_ios_4_3.html
但简而言之,这是因为作为一个网络应用程序,iPad 不使用硝基加速器来在本机浏览器渲染页面时渲染页面。目前看来还没有解决办法。
--更新
显然,阻塞也是由于使用硬件加速造成的。删除启用硬件加速的 translate3d 调用会使运动有点不稳定,但解决了渲染错误。我想我们只是在等待苹果解决这些问题。
In case anyone else hase this issue I have found the cause.
The full answer is here: http://www.appleinsider.com/articles/11/03/15/full_screen_web_apps_fail_to_use_nitro_acceleration_in_apples_ios_4_3.html
But in short, it's because as a web app the iPad does not use the nitro accelerator to render the pages while the native browser does. It seems that there currently is no solution.
--Update
Apparently, the blocking is also caused by using hardware acceleration. Removing the translate3d call that enabled hardware acceleration made the movement a little choppy but resolved the rendering bug. I guess we are just waiting on Apple to work out these glitches.