function loadParameters(sId, bGetAll) {
			var oUrl = getThemeBaseUrlForId(sId);

			// [Compatibility]: the legacy sync API must return a map of ALL parameter values.
			// With CSS wariables supported, we can only get this map by requesting the library-parameters.json.
			// The DOM API does not provide an enumeration of all variables.
			if (libSupportsCSSVariables(sId) && !bGetAll) {
				return;
			}

			// try to parse the inline-parameters for the given library
			// this may fail for a number of reasons, see below
			if (!parseParameters(sId)) {
				// derive parameter file URL from CSS file URL
				// $1: name of library (incl. variants)
				// $2: additional parameters, e.g. for sap-ui-merged, version/sap-ui-dist-version
				var sUrl = oUrl.styleSheetUrl.replace(/\/(?:css_variables|library)([^\/.]*)\.(?:css|less)($|[?#])/, function($0, $1, $2) {
					return "/library-parameters.json" + ($2 ? $2 : "");
				});

				if (syncCallBehavior === 2) {
					Log.error("[nosync] Loading library-parameters.json ignored", sUrl, "sap.ui.core.theming.Parameters");
					return;
				} else if (syncCallBehavior === 1) {
					Log.error("[nosync] Loading library-parameters.json with sync XHR", sUrl, "sap.ui.core.theming.Parameters");
				}

				// check if we need to send credentials
				var sThemeOrigin = new URI(oUrl.themeBaseUrl).origin();
				var bWithCredentials = mOriginsNeedingCredentials[sThemeOrigin];
				var aWithCredentials = [];

				// initially we don't have any information if the target origin needs credentials or not ...
				if (bWithCredentials === undefined) {
					// ... so we assume that for all cross-origins except the UI5 bootstrap we need credentials.
					// Setting the XHR's "withCredentials" flag does not do anything for same origin requests.
					if (sUrl.startsWith(sBootstrapOrigin)) {
						aWithCredentials = [false, true];
					} else {
						aWithCredentials = [true, false];
					}
				} else {
					aWithCredentials = [bWithCredentials];
				}

				// trigger a sync. loading of the parameters.json file
				loadParametersJSON(sUrl, oUrl.themeBaseUrl, aWithCredentials);
			}
		}
/**
		 * Load parameters for a library/theme combination as identified by the URL of the library.css
		 * @param {string} sId the library name for which parameters might be loaded
		 * @param {boolean} [bGetAll] whether the loadParameters call stems from a Parameters.get() call
		 */
Load parameters for a library/theme combination as identified by the URL of the library.css
@param {string} sId the library name for which parameters might be loaded
@param {boolean} [bGetAll] whether the loadParameters call stems from a Parameters.get() call
Load parameters for a library / theme combination as identified by the URL of the library . css @param { string } sId the library name for which parameters might be loaded @param { boolean } [ bGetAll ] whether the loadParameters call stems from a Parameters . get () call
function loadParameters(sId, bGetAll) {
			var oUrl = getThemeBaseUrlForId(sId);
			if (libSupportsCSSVariables(sId) && !bGetAll) {
				return;
			}
			if (!parseParameters(sId)) {
				var sUrl = oUrl.styleSheetUrl.replace(/\/(?:css_variables|library)([^\/.]*)\.(?:css|less)($|[?#])/, function($0, $1, $2) {
					return "/library-parameters.json" + ($2 ? $2 : "");
				});
				if (syncCallBehavior === 2) {
					Log.error("[nosync] Loading library-parameters.json ignored", sUrl, "sap.ui.core.theming.Parameters");
					return;
				} else if (syncCallBehavior === 1) {
					Log.error("[nosync] Loading library-parameters.json with sync XHR", sUrl, "sap.ui.core.theming.Parameters");
				}
				var sThemeOrigin = new URI(oUrl.themeBaseUrl).origin();
				var bWithCredentials = mOriginsNeedingCredentials[sThemeOrigin];
				var aWithCredentials = [];
				if (bWithCredentials === undefined) {
					if (sUrl.startsWith(sBootstrapOrigin)) {
						aWithCredentials = [false, true];
					} else {
						aWithCredentials = [true, false];
					}
				} else {
					aWithCredentials = [bWithCredentials];
				}
				loadParametersJSON(sUrl, oUrl.themeBaseUrl, aWithCredentials);
			}
		}
function loadParameters ( sId , bGetAll ) { var oUrl = getThemeBaseUrlForId ( sId ) ; if ( libSupportsCSSVariables ( sId ) && ! bGetAll ) { return ; } if ( ! parseParameters ( sId ) ) { var sUrl = oUrl . styleSheetUrl . replace ( / \/(?:css_variables|library)([^\/.]*)\.(?:css|less)($|[?#]) / , function ( $0 , $1 , $2 ) { return "/library-parameters.json" + ( $2 ? $2 : "" ) ; } ) ; if ( syncCallBehavior === 2 ) { Log . error ( "[nosync] Loading library-parameters.json ignored" , sUrl , "sap.ui.core.theming.Parameters" ) ; return ; } else if ( syncCallBehavior === 1 ) { Log . error ( "[nosync] Loading library-parameters.json with sync XHR" , sUrl , "sap.ui.core.theming.Parameters" ) ; } var sThemeOrigin = new URI ( oUrl . themeBaseUrl ) . origin ( ) ; var bWithCredentials = mOriginsNeedingCredentials [ sThemeOrigin ] ; var aWithCredentials = [ ] ; if ( bWithCredentials === undefined ) { if ( sUrl . startsWith ( sBootstrapOrigin ) ) { aWithCredentials = [ false , true ] ; } else { aWithCredentials = [ true , false ] ; } } else { aWithCredentials = [ bWithCredentials ] ; } loadParametersJSON ( sUrl , oUrl . themeBaseUrl , aWithCredentials ) ; } }
Load parameters for a library/theme combination as identified by the URL of the library.css
 @param {string} sId the library name for which parameters might be loaded
 @param {boolean} [bGetAll] whether the loadParameters call stems from a Parameters.get() call
Load parameters for a library / theme combination as identified by the URL of the library . css @param { string } sId the library name for which parameters might be loaded @param { boolean } [ bGetAll ] whether the loadParameters call stems from a Parameters . get () call
// [Compatibility]: the legacy sync API must return a map of ALL parameter values. // With CSS wariables supported, we can only get this map by requesting the library-parameters.json. // The DOM API does not provide an enumeration of all variables. // try to parse the inline-parameters for the given library // this may fail for a number of reasons, see below // derive parameter file URL from CSS file URL // $1: name of library (incl. variants) // $2: additional parameters, e.g. for sap-ui-merged, version/sap-ui-dist-version // check if we need to send credentials // initially we don't have any information if the target origin needs credentials or not ... // ... so we assume that for all cross-origins except the UI5 bootstrap we need credentials. // Setting the XHR's "withCredentials" flag does not do anything for same origin requests. // trigger a sync. loading of the parameters.json file