mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:49:59 +02:00
refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs
Add lazy loading for images in the ZenThemeMarketplaceChild.sys.mjs file to improve page load performance. The `addIntallButtons` method has been modified to select all action buttons and error messages, and remove any existing error messages. It also adds event listeners to the action buttons for installing themes. Additionally, a new `installTheme` method has been added to handle the installation of themes when a button is clicked.
This commit is contained in:
parent
272f8be26d
commit
1ff19edeb3
1 changed files with 0 additions and 1 deletions
|
@ -20,7 +20,6 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild {
|
|||
}
|
||||
|
||||
async addIntallButtons() {
|
||||
return;
|
||||
const actionButton = this.contentWindow.document.getElementById("install-theme");
|
||||
const errorMessage = this.contentWindow.document.getElementById("install-theme-error");
|
||||
if (actionButton) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue