Skip to Content
author's profile photo Former Member
Former Member

How to Minimize Apache Cordova App loading time

I am new to Cordova apps,Right now I am developing an app on SAPUI5 using cordova, When I run it on android its taking 7-8 seconds to load,I tried minify css and js but it didn't help.Here is my HTML code.


<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>

<script src="resources/sap-ui-core.js"
<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->

<link rel="stylesheet" type="text/css" href="Style/myCSS.css">

var user = "xxxx";
var pass = "xxxx";
var gatewayLoginLink = "proxy/http/xxxxxx/sap/opu/odata/sap/xxxxx";
sap.ui.getCore().setModel(new sap.ui.model.odata.ODataModel( gatewayLoginLink, true, user, pass));


var app = new sap.m.App({initialPage:"idqrcode1"});
var page = sap.ui.view({id:"idqrcode1", viewName:"qrcode.qrcode", type:sap.ui.core.mvc.ViewType.XML});
<script type="text/javascript" src="cordova.js"></script>

<body class="sapUiBody" role="application">
<div id="content"></div>


How can I minimize it to 2-3 seconds.Please help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 03, 2016 at 11:08 PM

    Hi Vinayak,

    I recommend that you use the WEBIDE to generate a preload file for your application code which will speed things up slightly.

    Have you checked the response times from your server to see if it is causing the delay? You can check this by debugging your android app in chrome on your PC and checking the network tab



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.