Optimization of sapui5 / openui5 initialization in hybrid web applications

We are creating a hybrid web application using sapui5 (built through the assembly of phone calls).

Launch time is a little slow for the application as a whole, including sapui5, so we would like to optimize it.

All sapui5 files are packaged with the hybrid application, so there is no network request during initialization.

This is our current sapui5 initialization:

    <script id="sap-ui-bootstrap" type="text/javascript" src="sap-ui-core.js"
data-sap-ui-preload="sync"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.ui.layout,sap.viz,sap.ui.commons,sap.ui.unified,sap.ui.ux3,sap.ui.table,sap.suite.ui.commons,sap.m,sap.me"></script>

We are currently using sapui5 version 1.24.2.

I will use the performance.timing object to check the effect of any changes.

We will remove unused libs from data-sap-ui-libs, but are there any other actions that can be taken?

+4
3

. : cordova -v: 4.3.0 corova android: 3.7.1 ios: cordova -v: 5.1.1 corova android: 3.8.0

:

+1

, , , , sap/m/library-preload.json. , , .js -dgb.js .

+2

. , , ​​:

   <script id="sap-ui-bootstrap" type="text/javascript" src="sap-ui-core.js"
data-sap-ui-preload="async"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.ui.layout,sap.viz,sap.ui.commons,sap.ui.unified,sap.ui.ux3,sap.ui.table,sap.suite.ui.commons,sap.m,sap.me"></script>

<script>


    var oCore = sap.ui.getCore().attachInit(function(){
    //start application
        });
    </script>

: sapui5

0

All Articles