on ‎2016 Jan 04 9:00 AM
Hi,
I am currently trying to improve the performance of my app by loading a Component-preload file. I am following a similar method as in this post
When I started working on my app, I removed the "cannot load Component-preload file" error by inserting the data-sap-ui-preload="" line in my index.html file. The problem that I am facing now is that I cannot get back to the state where it complains about not finding the preload file. I removed the data-sap-ui-preload="" line from my index file, yet the GET request for the preload file is still missing. While inspecting my network tab in chrome, I can see that it does load library-preload files, but the component-preload GET request is nowhere to be found.
Is there something else that I forgot about to enable the loading of a component-preload file? Just to clarify, Generating a Component-preload file is not my current problem, the problem is I want my app to complain about the missing preload file again. I know this seems weird, but once it complains, I can give it my preload file and take it from there.
I am running SAPUI5 v1.28
Regards
Albert Volschenk
Request clarification before answering.
HI,
I've found my problem. In my index.html file where I created my app's shell, There was a stray line of code which included the Component file. I guess it altered the way in which the component file loads the preload files.
Lessons learnt:
jQuery.sap.require("myNamespace.Component"); Should NOT be in your index.html file
Thanks for everyone that tried to help
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.