In every UI5 application we declare usage on libraries like sap.ui.commons via “data-sap-ui-libs”.
Have you ever thought about how does the logic work? Since we only declare the NAME of libraries here, how, when, and where are these libraries loaded from repository when your UI5 application is launched?
Approach1: use XHR breakpoint ( as usual )
Enable XHR Breakpoint, and type your application url in Chrome and press enter key. The breakpoint will be triggered for loading ui core library. Click callstack “jQuery.sap.preloadModules”.
Approach2: A far more efficient way
If you have known that sap-ui-core.js uses the same code to fetch your application js code and sap UI standard library, you could find the place of this call in a more efficient way.
Deliberately generates a syntax error in your application view and launch the application.