fnDomReady = function(res) {
					document.removeEventListener("DOMContentLoaded", fnDomReady);
					resolve();
				}
Convenience function for dom-ready.
Returns (Sync)Promise which resolves when DOM content has been loaded.

@param  {boolean} bSync Whether handler should be executed synchronously or not.
@return {Promise|sap.ui.base.SyncPromise} Returns Promise or SyncPromise resolving when DOM is ready.

@private
@ui5-restricted sap.ui.core