embeds: new embed option 'loading="eager"' to support eager loading entire WACZ file, instead of on-demand loading

deps: update to wabac 2.13.9 to support eager loading, update electron to 21.3.1
package: remove assets from package
bump to 1.7.4
This commit is contained in:
Ilya Kreymer
2022-11-24 17:28:53 -08:00
parent 26b54cb7bf
commit bc5f8b07eb
11 changed files with 58 additions and 37 deletions
+4
View File
@@ -396,6 +396,10 @@ class ReplayWebApp extends LitElement
this.loadInfo.hideOffscreen = true;
}
if (this.pageParams.get("loading") === "eager") {
this.loadInfo.loadEager = true;
}
if (IS_APP && this.sourceUrl.startsWith("file://")) {
// eslint-disable-next-line no-undef
const url = new URL(__APP_FILE_SERVE_PREFIX__);
+8 -1
View File
@@ -42,6 +42,7 @@ class Embed extends LitElement
// deprecated;
this.noSandbox = null;
this.logo = rwpLogo;
this.loading = "";
}
static setDefaultReplayFile(replayfile) {
@@ -84,7 +85,9 @@ class Embed extends LitElement
errorMessage: { type: String },
requireSubdomainIframe: {type: Boolean}
requireSubdomainIframe: {type: Boolean},
loading: { type: String },
};
}
@@ -240,6 +243,10 @@ class Embed extends LitElement
params.hideOffscreen = "1";
}
if (this.loading === "eager") {
params.loading = "eager";
}
this.paramString = new URLSearchParams(params).toString();
this.hashString = new URLSearchParams({
+1
View File
@@ -182,6 +182,7 @@ You can select a file to upload from the main page by clicking the 'Choose File.
if (this.loadInfo) {
source.newFullImport = this.loadInfo.newFullImport;
source.loadEager = this.loadInfo.loadEager;
source.noCache = this.loadInfo.noCache;
if (this.loadInfo.extraConfig) {