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
+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({