Centralize window loaded callback for auto and manual print modes
Also ensures proper client->server connection before load for slower windows machines