Slow startup iOS web boot application

I am working with a web application designed for webkit browsers, which is quite different from javascript. The application runs pretty smoothly in the safari browser, and the initial download is about 1.5-2 seconds (iPhone 4s iOS 6) on my 3G network. However, when I launch the application from my desktop, the splash screen will remain for 5-6 seconds, sometimes even longer (received reports that can last about 10 seconds).

I wonder how the difference can be so big? What can be done to reduce this load?

Any help is appreciated.

+4
source share
2 answers

If you use UIWebView, where you download your WebApp, you use a version of WebKit that does not support JIT optimizations for JS ( source )

I will break the application in smaller parts and try to show something to the user as soon as possible, and then continue loading JS in the background. I know this is bad, but if your problem is a heavy JS application, you are stuck with the UnIT JIT WebKit engine (AKA UIWebView).

Take a look at WWDC 2012 Session 601: Optimizing Web Content on UIWebViews and iOS Web Sites (You Must Be a Registered iOS Developer) and hear this episode of Cocoanetics Podcast

I would like to know some optimizations, however.

+1
source

Web applications running from the desktop are slower than those running from within Safari because home screens do not use the Safari Nitro Javascript engine.

Source: http://thenextweb.com/apple/2011/03/17/apple-admits-to-slower-performance-in-ios-web-apps/

Yes, the article is a little outdated, but I can not find any information that this is not so.

0
source

Source: https://habr.com/ru/post/1446409/


All Articles