diff --git a/package.json b/package.json index 1c5f95b9..a73b7c6b 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,4 @@ "dependencies": { "@types/fs-extra": "^9.0.11" } -} - - +} diff --git a/www/js/app.js b/www/js/app.js index 71e43e21..18d85cff 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -3826,12 +3826,18 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett // Make sure the article area is displayed setTab(); checkToolbar(); - // setTimeout(function() { + var showArticle = function () { articleDocument.bgcolor = ""; articleDocument.hidden = false; articleWindow.document.body.hidden = false; - // }, 0); - + }; + if ('MSBlobBuilder' in window) { + // For legacy MS browsers, including UWP, delay causes blank screen on slow systems + showArticle(); + } else { + // For Chromium browsers a small delay greatly improves composition + setTimeout(showArticle, 80); + } }; // For articles loaded in the iframe, we need to set the articleWindow (but if the user is opening a new tab/window,