SAP UI5的Component-preload.js是啥时候加载的
author:一佰互联 2019-03-26   click:197

简介:# Created by Wang, Jerry, last modified on Oct 17, 2015Component-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 li ...

# Created by Wang, Jerry, last modified on Oct 17, 2015Component-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.

本文仅代表作者个人观点,不代表巅云官方发声,对观点有疑义请先联系作者本人进行修改,若内容非法请联系平台管理员,邮箱2522407257@qq.com。更多相关资讯,请到巅云www.yinxi.net学习互联网营销技术请到巅云建站www.yx10011.com。