From c217f6cde1ba9e4e009b6feba11c90db25e14a9f Mon Sep 17 00:00:00 2001 From: hensm Date: Sat, 16 Apr 2022 03:53:41 +0100 Subject: [PATCH] Load framework API script earlier to speed up cast init --- ext/src/cast/index.ts | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/ext/src/cast/index.ts b/ext/src/cast/index.ts index 33a87b3..42f20c7 100644 --- a/ext/src/cast/index.ts +++ b/ext/src/cast/index.ts @@ -17,7 +17,7 @@ if (!_window.chrome) { _window.chrome.cast = cast; let bridgeInfo: any; -let isFramework = false; +let frameworkScriptPromise: Promise; /** * If loaded within a page via a