Worker for loading resources on background thread