Updated code for checking the resource loading issues in isolation .