New resource loading function signature