Show TOC

Dynamic Loading of LibrariesLocate this document in the navigation structure

SAPUI5 provides the sap.ui.getCore().loadLibary() method to load libraries at runtime in addition to the libraries declared in the runtime configuration.

After loading, you can use all controls from the library. For these additional libraries, the same restriction apply as for the declared libraries: Accessing the document object model (DOM) is only possible after the document.ready event of the HTML page. Also, rendering applies for these libraries in the same way as for the declared libraries.