Component-preload loaded but the other files as well
I have completed a development of Fiori application and the last step was to generate the Component-preload file.
I used the Gruntjs plugin grunt-openui5 to generate the file. After that I uploaded the file into my application project as we can see below.
After running the application in the Launchpad I noticed the Component-preload is loaded properly but the files (views, controllers, utils, i18) are also being loaded.
Although the Componet-preload is loaded it is not being used because the application is still pointing out to the single files if I try to debug.
I also tried to add the parameter data-sap-ui-preload="sync" in the index.html file but still didn't kick in.
looking forward to hearing from you.
Krishna Kishor Kammaje replied
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.