loadImage() timeout
in
Programming Questions
•
2 years ago
I am loading a lot of pictures from the web, and sometimes I hit URLs for pictures/sites that are very slow.
Is there any posibility to make some sort of set timeout for how long it should try to load, and then give up?
Or is there maybe some other function I can use, with a timeout, that can download the picture locally first, and then I can load it, if it manages to download?
1