This is absolutely informed by my desire to bring up information sources from as many places as I can without having extra UI "cruft" and the fact that I have a "ultrawide" monitor which is my daily use.
First thing I'll do to improve this is to have the URL that was used to "last load the page" saved as a var, and to use that to save to the crash/shutdown file.
This property will only get updated upon a successful load.
Now when I load without internet, I can avoid losing URLs.
Next would be to save the title and pre-supply it to the window title before the data even loads for easier navigation in the window manager.
So I generally have like a dozen windows open at a time and this means that on initial load all the loading traffic is noisy and causes me to take way too much CPU time when I load.
One other thing, if I lose network connectivity when I do the initial load, the "onload" will not fire and I will lose the URL in the logic which saves the URLs upon browser close (and periodically for crash recovery)