Move loading out of UI thread