function hide() {
	const loaderDiv = tag.get("#__loader");
	const mask = tag.get("#__loader-mask");

	if (loaderDiv) {
		$currentDialog = loaderDiv;
		loaderDiv.remove();
	}
	if (mask) {
		$currentMask = mask;
		mask.remove();
	}
}
Hides the loading dialog box temporarily and can be restored using show method