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:
+8
-1
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user