Skip to content

Commit

Permalink
OpenUI5 Documentation Update 06.04.2024
Browse files Browse the repository at this point in the history
  • Loading branch information
openui5bot committed Apr 6, 2024
1 parent f99d153 commit 093cce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/Performance_Speed_Up_Your_App_408b40e.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you want to make additional libraries known in your app, without directly loa
"libs": {
"sap.ui.core": {},
"sap.m": {},
"sap.ui.layout": {
"my.heavy.charting": {
"lazy": true
}
},
Expand All @@ -63,13 +63,14 @@ If you want to make additional libraries known in your app, without directly loa

If a library preload contains reuse components and this preload is configured to be loaded lazily \(via `"lazy": true` in the dependencies of the `manifest.json`\), the library isn't available upon creation of the related component.

In this case, you need to use `sap/ui/core/Lib.load("my.library")` before creating the component \(e.g with `Component.create({ name: "my.component" })` or component usage `myComponent.createComponent("myUsage")`\).
In the above case you need to use `sap/ui/core/Lib.load({name: "my.heavy.charting"})` before creating the component \(e.g with `Component.create({ name: "my.component" })` or component usage `myComponent.createComponent("myUsage")`\).

An indicator that a component is inside a library is the existence of an entry `sap.app/embeddedBy` in its `manifest.json` file.

**Additional Information:**

- [Descriptor for Applications, Components, and Libraries \(manifest.json\)](Descriptor_for_Applications_Components_and_Libraries_manifest_json_be0cf40.md)
- `API Reference:` [`sap/ui/core/Lib.load()`](https://sdk.openui5.org/api/sap.ui.core.Lib%23methods/sap.ui.core.Lib.load)

***

Expand Down

0 comments on commit 093cce9

Please sign in to comment.