Does SAPUI5 load the libraries each time I call jQuery.sap.require(\"someLibrary\")
?
For instance if I am calling the above statement in multiple modules in my
In case someone still considers to use jQuery.sap.require
, be aware that it sends only sjax requests which should be avoided.
The use of
jQuery.sap.require
is synchronous and considered as "bad practice" because syncXHR is deprecated by the Web Hypertext Application Technology Working Group. (Source: Modules and Dependencies)
Instead, the current best practice is to use sap.ui.define or .require for asynchronous module loading: