run network detection algorithm as soon as the application loads rather than waiting 5 seconds for it to run for the first time