簡體   English   中英

減少phonegap應用程序ios中的html文件加載時間?

[英]Reduce html file loading time in phonegap application ios?

iam在一個簡單的phonegap應用程序上工作,它需要大約3分鍾的時間來加載文件(用於顯示主頁),直到顯示初始圖像(啟動屏幕)時,才有任何方法可以使其快速運行?

“ WWW”文件夾文件的總大小為5.3MB, 我的應用程序委托應用程序didFinishLaunchingWithOptions()顯示如下

- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
    CGRect screenBounds = [[UIScreen mainScreen] bounds];


#if __has_feature(objc_arc)
        self.window = [[UIWindow alloc] initWithFrame:screenBounds];
#else
        self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];
#endif
    self.window.autoresizesSubviews = YES;

#if __has_feature(objc_arc)
        self.viewController = [[MainViewController alloc] init];
#else
        self.viewController = [[[MainViewController alloc] init] autorelease];
#endif
    self.viewController.useSplashScreen = YES;

    // Set your app's start page by setting the <content src='foo.html' /> tag in config.xml.
    // If necessary, uncomment the line below to override it.
    // self.viewController.startPage = @"index.html";

    // NOTE: To customize the view's frame size (which defaults to full screen), override
    // [self.viewController viewWillAppear:] in your view controller.

    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    return YES;
}

我認識其他遇到類似問題的人(但沒有3分鍾的延遲!),我不確定您有很多事情可以做,我認為我們需要等待PhoneGap人員開發出使其效率更高的系統。加載中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM