Updated loadResources to deferPlugins.