App Freezes when using window.location.href


I have this game that I’ve broke down into several html files that represent different scenes such as main menu, intro, gameplay,cutscenes etc.

However if when I navigate using javascript methods such as window.location.href or replace() the app freezes. Sometimes it will load the file after a long wait, sometimes not at all.

Any suggestions?

Electron works like a charm otherwise, extremely straight forward to use and excellent html5 renderer.