Put HTTP downloading on a background thread
This patch moves the HTTP downloading logic to a background thread in order to speed up downloading and reduce frame jittering while downloading. To do this, CURLGetFile
will be invoked by a thread and the download logic will be looped until the file download is complete.