src/sap.ui.support/src/sap/ui/support/supportRules/util/Utils.js
function () {
				var that = this;

				var oInternalRulesPromise = new Promise(function (resolve) {

					if (that.bCanLoadInternalRules !== null) {
						resolve(that.bCanLoadInternalRules);

						return;
					}


					jQuery.ajax({
						type: "HEAD",
						url: sInternalPingFilePath,
						success: function () {
							that.bCanLoadInternalRules = true;
							resolve(that.bCanLoadInternalRules);
						},
						error: function() {
							that.bCanLoadInternalRules = false;
							resolve(that.bCanLoadInternalRules);
						}
					});
				});

				return oInternalRulesPromise;
			}
function () {
				var that = this;

				var oInternalRulesPromise = new Promise(function (resolve) {

					if (that.bCanLoadInternalRules !== null) {
						resolve(that.bCanLoadInternalRules);

						return;
					}


					jQuery.ajax({
						type: "HEAD",
						url: sInternalPingFilePath,
						success: function () {
							that.bCanLoadInternalRules = true;
							resolve(that.bCanLoadInternalRules);
						},
						error: function() {
							that.bCanLoadInternalRules = false;
							resolve(that.bCanLoadInternalRules);
						}
					});
				});

				return oInternalRulesPromise;
			}
function ( ) { var that = this ; var oInternalRulesPromise = new Promise ( function ( resolve ) { if ( that . bCanLoadInternalRules !== null ) { resolve ( that . bCanLoadInternalRules ) ; return ; } jQuery . ajax ( { type : "HEAD" , url : sInternalPingFilePath , success : function ( ) { that . bCanLoadInternalRules = true ; resolve ( that . bCanLoadInternalRules ) ; } , error : function ( ) { that . bCanLoadInternalRules = false ; resolve ( that . bCanLoadInternalRules ) ; } } ) ; } ) ; return oInternalRulesPromise ; }
Checks if there are internal rules files that has to be loaded
@returns {Promise} The returned promise resolves with an argument showing
whether internal rules can be loaded or not
Checks if there are internal rules files that has to be loaded