You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user on reddit has mentioned that the display is sometimes blank when loading an article with a custom Zimit-based ZIM (Zimit2). I've also seen this, for example with the latest MDN Developers ZIM, where the secondary loading of the JavaScript panel in the iframe is wrongly detected by the app as the loading of a new article. The app blanks the page between article loads in order to avoid Flash of Unstyled Content (FOUC) or Flash of Incorrect Style (FOIS), and other strange display artefacts, when using Dark Reader. These complications are not currently the case for Kiwix JS, which doesn't use DarkReader yet.
I've worked on this issue a lot, and still haven't found signals that guarantee that a page should be unhidden. Sometimes we unhide too soon (this is generally not too much of a problem, some FOUC or FOIS), sometimes we unhide only to hide again a few seconds later and then unhide, and at other times we never unhide (this is rare but does happen).
We need a way to control hiding based on user gestures only, to ensure that we never hide once a page is unhidden just because an iframe called new content programmatically, or JS did a redirect, etc. The page should first be hidden only with a user gesture, should be unhidden on DOMContentLoaded, and never hidden again until there is another user gesture.
The text was updated successfully, but these errors were encountered:
A user on reddit has mentioned that the display is sometimes blank when loading an article with a custom Zimit-based ZIM (Zimit2). I've also seen this, for example with the latest MDN Developers ZIM, where the secondary loading of the JavaScript panel in the iframe is wrongly detected by the app as the loading of a new article. The app blanks the page between article loads in order to avoid Flash of Unstyled Content (FOUC) or Flash of Incorrect Style (FOIS), and other strange display artefacts, when using Dark Reader. These complications are not currently the case for Kiwix JS, which doesn't use DarkReader yet.
I've worked on this issue a lot, and still haven't found signals that guarantee that a page should be unhidden. Sometimes we unhide too soon (this is generally not too much of a problem, some FOUC or FOIS), sometimes we unhide only to hide again a few seconds later and then unhide, and at other times we never unhide (this is rare but does happen).
We need a way to control hiding based on user gestures only, to ensure that we never hide once a page is unhidden just because an iframe called new content programmatically, or JS did a redirect, etc. The page should first be hidden only with a user gesture, should be unhidden on
DOMContentLoaded
, and never hidden again until there is another user gesture.The text was updated successfully, but these errors were encountered: