在我们的应用程序中,我们加载了许多SAPUI5库.index.html具有以下代码来加载SAPUI5资源
<script src="resources/sap-ui-cachebuster/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.ux3,sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-appCacheBuster="./">
</script>
Run Code Online (Sandbox Code Playgroud)
在我们的web.xml中,我们提到了https://sapui5.hana.ondemand.com作为com.sap.ui5.resource.REMOTE_LOCATION来加载资源.
我们观察到的是,应用程序第一次需要很长时间才能加载.并且网络调用给出了加载UI5资源需要最多时间的想法.有没有办法可以更快地加载UI5资源?还是在后台呢?建议或代码示例在这里真的很有帮助.谢谢.
sapui5 ×1