From 65c1e02d8be24c49c5fd0f68ffcecbec4fcd3481 Mon Sep 17 00:00:00 2001 From: Xmader Date: Mon, 30 Nov 2020 15:26:01 -0500 Subject: [PATCH] fix: the loadstart event is not fired on elements in Chrome --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 2ec7a24..bdad860 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -83,7 +83,7 @@ export default [ format: "iife", sourcemap: false, banner: getBannerText, - intro: "const d =document.createElement('img');d.style.display='none';d.src='data:';d.once=false;d.setAttribute('onloadstart','if(this.once)return;this.once=true;this.remove();(' + function () {", + intro: "const d =document.createElement('img');d.style.display='none';d.src='data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';d.once=false;d.setAttribute('onload','if(this.once)return;this.once=true;this.remove();(' + function () {", outro: "}.toString() + ')()');document.body.prepend(d)" }, plugins,