SAP UI5的Component-preload.js是啥时候加载的

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/86484702

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.

clipboard1
clipboard2
clipboard3
clipboard4
clipboard5
clipboard6
要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/86484702
今日推荐