Skip to Content
Nov 16, 2020 at 02:03 PM

What is best practice to provide UI5 library (sap-ui-core.js) in UI5 app index.html on Cloud Foundry

445 Views Last edit Jun 24, 2021 at 04:09 PM 4 rev

Hi everyone,

I have a (beginner) question.
What is the best practice to provide the UI5 library in the "index.html" (sap-ui-bootstrap) for a productive UI5 app hosted in HTML5 Application Repository on Cloud Foundry (html5-apps-repo)?

- Performance?
- Security?

What if you use the SAP Cloud Platform subscription „Lunchpad“?

1. Full URL path in index.html to CDN ("")?

2. Providing it locally in a "resource" folder for performance reasons would lead to a big app size.

3. Using "destination service" and define a route with destination where URL to CDN is defined in destination details?
For example like this:



Destination Configuration (Destination Service Instance):

Is there a good blog to read about this question?
If version 3. is the best way to do, how should the route be defined? With which parameters?

Thanks in advance,