两个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

你可能感兴趣的:(两个SAP UI5脚手架应用加载性能的比较)