Feature/network-detection

Added additional event handler for dealing with the onload event not firing for some browsers