Local Overrides Sample: Manipulate UI3 loading failure handling - bp2008/ui3 GitHub Wiki

Since UI3-256, a failure of any of the initial loading steps will cause UI3 to show an error message and reload after 3000 milliseconds. This script will change the reload timer to 0 milliseconds and disable the error toast message.

To learn more about ui3-local-overrides, see: Local Overrides Scripts and Styles

ui3-local-overrides.js

BI_CustomEvent.AddListener("UI_Loading_Failed", function (arg)
{
	console.log("UI_Loading_Failed event raised.  Inspect in developer console to see event arguments:", arg);
	arg.reloadTimeoutMs = 0;
	arg.showErrorToast = false;
});