I am looking for a way within SAPUI5/OpenUI5 to determine if Component-preload.js was loaded or if the original controllers and views were loaded.
So far...
- I tried to exploit the namespace of my project by accessing the global JS objects my.namespace.controller, my.namespace.Component, etc. and trying to find differences when
Component-preload.jswas loaded vs. not loaded. - I tried to use $.sap.getAllDeclaredModules() and see differences when loaded vs. not loaded.
- I tried to capture the onload event of the
Component-preload.jsfrom within my SAPUI5 code but I found no reliable way to attach my event handler before the loading happens. - I tried to compile a dummy controller into my
Component-preload.jsthat is not really used in the project. But I did not find a way to create any difference between the state whenComponent-preload.jswas loaded vs. not loaded.
I am clearly running out of ideas.