SAP UI5的Component-preload.js是啥时候加载的
Created by Wang, Jerry, last modified on Oct 17, 2015
Component-preload.js is a way to optimize the number of round trips the app has to load the view/controllers. Here, all the views/controller’s line of code are minified/concatenated into a single file component-preload.js so that all are loaded in a single shot! Whenever a request to load any of your view/controller is triggered, the code gets parsed from the component-preload.js instead of a XHR request. If the component-preload.js is not available in the app, then a request to the appropriate view/controller is loaded through XHR request for every view/controller.
If a file/module is not found within Component-preload.js, then it will be loaded directly.
As Vladimir said, the reason the files were loaded individually because framework could not find them in component-preload.
Problem might with prefixes/namespace, naming etc within the component-preload file.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析
- SAP UI5自学教程一:button.js的加载逻辑
- SAP UI5 sap-ui-core.js的加载逻辑
- SAP UI5 library-dbg.js - local location
- SAP UI5 js file will be executed immediately after downloaded successfully
- SAP UI5框架 component.js的加载原理
- SAP UI5 CRM Reuse Fiori应用 note.js代码审查结果
- how to resolve 404 not found error for sap-ui-core.js after project is cloned to
- 今年是SAP进入中国25周年,我从2007年毕业进入SAP成都研究院,也马上就待满14年了。
- 什么是SAP UI5的Component-preload.js
- SAP CRM里产品主数据的文本模型设计
- SAP Spartacus user role页面的checkbox设计明细介绍
- SAP Cloud for Customer动态控制任意UI元素的显示或隐藏
- 一个基于SAP Hybris Commerce和微信的社交电商原型介绍
- SAP CRM WebClient UI Date time format in BSP UI
- 如何为部署到 SAP BTP 平台上的 Node.js 应用提供Authorization 和 Trust 管理 - 权限管控
- UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误