I have to check if user have a poor internet connection. Any idea of library or function to implement it?