fix for cross-browser unload breaking loading procedure for non-logged in users