两个SAP UI5脚手架应用加载性能的比较
加載一個只包含button控件的SAP UI5腳手架應用:
http://localhost:3000/wt/
18 requests
1.1 MB transferred over network
5.1 MB resources loaded by the page
DOM content loaded 1.19s:當純HTML被完全加載以及解析時,DOMContentLoaded 事件會被觸發,而不必等待樣式表,圖片或者子框架完成加載。
Load: 3.06s
一個易混用但不同的事件是,load,這個事件僅僅應該在探測到整個頁面完全加載完成時被使用。一個常見的錯誤就是在該使用DOMContentLoaded的地方使用了load.
以上數據來自:https://developer.mozilla.org/zh-CN/docs/Web/API/Document/DOMContentLoaded_event
加載jerrylist UI5應用:
http://localhost:3000/ui5/
48 requests
3.1 MB transferred
13.4 resources
Finish: 59.07s
DOMContentLoaded: 52.57s
Loaded: 59.08s
https://sapui5.hana.ondemand.com/resources/sap/ushell/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/m/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/ui/core/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/ui/comp/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/suite/ui/commons/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/collaboration/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/ui/layout/library-preload.js
https://sapui5.hana.ondemand.com/resources/sap/uxap/library-preload.js
就算只包含一個button控件,messagebundle_en.properties也是分開存儲的:
比較Spartacus:
96 requests
17.4MB transferred
17.4MB resources loaded by the page
Finish: 44.7s
DOMContentLoaded: 1.79s
Load: 2.4s
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的两个SAP UI5脚手架应用加载性能的比较的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ABAP事物码SFW5里business
- 下一篇: Angular 依赖注入 UseClas