commit | 6f557e319ad8f9031c8096ef4f832f8c1ac1a11b | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Wed Sep 09 16:11:01 2020 +0200 |
committer | Akron <nils@diewald-online.de> | Thu Sep 10 14:55:22 2020 +0200 |
tree | 4d03c12b224b3bbe95879d809bedb02a535ebfe9 | |
parent | 6b42c60623eecd8175b4e411cf17249d55faad87 [diff] [blame] |
Add lazy loading option to widgets Change-Id: I24e5020dde42a02adea2276253b7b04207b7a4a2
diff --git a/dev/js/src/plugin/widget.js b/dev/js/src/plugin/widget.js index 403954c..068ced4 100644 --- a/dev/js/src/plugin/widget.js +++ b/dev/js/src/plugin/widget.js
@@ -35,6 +35,7 @@ return this._load; let obj = this.load(); + obj.setAttribute('loading', 'lazy'); // Per default there should at least be a button // for settings, if the plugin requires settings.