when is Component-preload.js loaded by UI Framework
Created by Jerry Wang, last modified on Jan 16, 2015
- sap.ushell.services.AppConfiguration.getMetadata
- sap.ui.getCore().getEventBus().publish(“openApp”,f);
- sap.ui.controller.openSomething
- openDashboard
在UI上點(diǎn)擊了navigation target之后,UI framework首先會(huì)去取target component的metadata:
由于addMetadata method 調(diào)用時(shí),metadata還不ready,因此會(huì)在runtime時(shí)去retrieve:
By Andreas:“This preload file can only be produced by our internal (complex) Maven-based build and by the Control development tools in Eclipse which I think are not available outside yet, either.”
update 2017-11-23 5:34PM
它是一個(gè)壓縮的js,在upload本地的js到UI5 repository時(shí)自動(dòng)生成的。
上傳之后我們的BSP下面有一個(gè)mapping的xml:里面可以找到Component-preload.js對(duì)應(yīng)的文件,文件名為一串guid
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的when is Component-preload.js loaded by UI Framework的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: UI5 Control lazy loa
- 下一篇: UI5 EventBus