Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Startup optimization - MetaData load seems to be Synchronous

$
0
0

Hello,

 

I'm trying to optimize the startup time of my app, and (app)CacheBuster solves most of the problems, but I'm still unhappy with the metadata load which I can't seem to make asynchronous.

 

In component.js I'm calling this:

 

this.setModel(new sap.ui.model.odata.ODataModel(sServiceUrl, true, null, null, null, false, true).attachMetadataLoaded(this, this._onMetaLoad));

 

But I'm getting this timeline in Chrome:

 

Captura de ecrã 2015-03-24, às 15.06.05.png

The List.view.xml is the first view loaded by the component according to the router, but it seems to wait until the metadata load is finished before it is retrieved. The last "true" in the model creation should be setting it to asynchronous, and if I break point the code, the next instruction does run before the metadata is returned.

 

It seems to be asynchronous but apparently it is blocking the loading of the next element. Which is even stranger since the oData service is connection to an ECC while the SAPUI5 is running in a local web server.

 

Any ideas?

 

Thanks


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>