简体   繁体   English

iPhone4“添加到主屏幕”即时启动

[英]Iphone4 “add to home screen” instant startup

How do you make a web app start up instantly - is it possible to make as fast as a native app that is already loaded? 您如何使网络应用立即启动-是否可以像已经加载的本机应用一样快速地启动?

I have developed a HTML5 web app that runs nicely on Iphone 4 with a splashscreen. 我开发了一个HTML5 Web应用程序,该应用程序可以在带有飞溅屏的Iphone 4上很好地运行。 But now I'm looking into performance: 但是现在我正在研究性能:

I use a manifest file to ensure that all files are loaded from the local storage. 我使用清单文件来确保所有文件都从本地存储加载。 I have checked both in chrome and mobile safari, that the files are stored correctly locally. 我已经在chrome浏览器和移动Safari浏览器中检查了文件是否正确存储在本地。 Now performance it quite different depending on how I access my web app: 现在,根据我访问网络应用程序的方式,其性能将大不相同:

~4s When I load the web app in browser (not from a home screen icon). 〜4s当我在浏览器中加载Web应用程序时(不是从主屏幕图标加载)。 ~6s When I load from an "add to homescreen" icon 〜6s当我从“添加到主屏幕”图标加载时

When I load in chrome browser it takes 234ms to load and render the whole page. 当我在Chrome浏览器中加载时,加载和呈现整个页面需要234ms的时间。 I seems like the lack of speed is due to the rendering being pretty slow. 我似乎缺乏速度是由于渲染速度很慢。

Any performance suggestions are very welcome. 任何性能建议都非常欢迎。

I know from experience that a MacOSX device the Chrome App all of its previous versions/updates leaves in its App. 我从经验中知道,MacOSX设备Chrome应用程序的所有先前版本/更新都保留在其应用程序中。 This maybe also apply to ios, since it's is a stripped version of the MacOSX sysem. 这可能也适用于ios,因为它是MacOSX sysem的简化版本。

It might help to delete the Chrome App from your iPhone and re-install it from the App store. 从您的iPhone中删除Chrome应用并从App Store重新安装它可能会有所帮助。 This way you be sure you have a clean copy op Chrome on the iPhone whithout all the previous Chrome versions. 这样一来,您可以确定iPhone上的Chrome浏览器是全新的,而没有所有以前的Chrome版本。

I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM