Show TOC

Variant for Bootstrapping from Content Delivery NetworkLocate this document in the navigation structure

SAPUI5 can either be loaded locally with a relative path from a Web server or externally from a Content Delivery Network (CDN).

Specific Version

Check the available versions with respective maintenance status at https://sapui5.hana.ondemand.com/versionoverview.html and https://openui5.hana.ondemand.com/versionoverview.html.

You can refer to a specific version by using a versioned URL as in the example below:

SAPUI5

OpenUI5

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="https://sapui5.hana.ondemand.com/1.32.7/resources/sap-ui-core.js"
    data-sap-ui-theme="sap_bluecrystal"
    data-sap-ui-libs="sap.m"></script>

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="https://openui5.hana.ondemand.com/1.32.7/resources/sap-ui-core.js"
    data-sap-ui-theme="sap_bluecrystal"
    data-sap-ui-libs="sap.m"></script>

The first segment of the URL after the host name is used to specify a concrete version.

Latest Released Version

The latest released version of our libraries can be found at https://openui5.hana.ondemand.com/resources/sap-ui-core.js (OpenUI5) and https://sapui5.hana.ondemand.com/resources/sap-ui-core.js (SAPUI5).

Caution

The latest released version is constantly being upgraded. Therefore, this might have an impact on the stability of your application. Use this version for testing purposes only.

If you want to use the latest released version, you can use the following bootstrap scripts:

SAPUI5

OpenUI5

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
    data-sap-ui-theme="sap_bluecrystal"
    data-sap-ui-libs="sap.m"></script>
<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
    data-sap-ui-theme="sap_bluecrystal"
    data-sap-ui-libs="sap.m"></script>
Cache Control

The cache control is different for dynamic and static resources. If you refer to the latest stable version (dynamic), you have a maximum age of one week, if you refer to a specific (static) version, you have a maximum age of 10 years. In both cases cross-origin resource sharing (CORS) headers are set, so that you will be able to consume resources from the central location without any proxy in between.