i3: Electron apps and chromium freezing

I have recently had an annoying bug, affecting electron applications (and Chrome/Chromium itself) on an i3 Linux desktop. Sometimes they freeze up, and do not show any UI updates, or just show a black window at all. Nevertheless, they seem to work, but you do not see any UI…