diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 39e8c54..07d130d 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -21,6 +21,7 @@ const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud'; // Setup flags const DEFAULT_FLAGS = { + PreloadRemotePlay: true, PreloadUi: false, EnableXcloudLogging: false, @@ -3775,6 +3776,10 @@ class RemotePlay { } } + static preload() { + RemotePlay.#initialize(); + } + static showDialog() { RemotePlay.#initialize(); RemotePlay.#dialog.show(); @@ -10243,6 +10248,9 @@ function injectSettingsButton($parent) { }, }); $headerFragment.appendChild($remotePlayBtn); + + // Preload Remote Play + BX_FLAGS.PreloadRemotePlay && RemotePlay.preload() }