I’ve been experiencing the case where my page within Electron reloads itself. This seems to occur each time a failure to load an item into the page. This can be an image that is requested locally but not present but also on XHR requests. The XHR requests are the real issue as missing images can just be fixed. Often those XHR requests are showing up as being aborted/cancelled almost immediately. The result of this is that the page just keeps looping. By adding an beforeunload handler I can block the repeated reloads, even though they are being attempted. By throttling the XHR requests I can reduce the number that get aborted/cancelled. The same code when run through Chrome as a conventional website does not experience this issue.
Has anyone had a similar experience or know why XHR requests are likely to get cancelled as I’m not calling cancel in my code?