[bugfix]Ignore resource config if no javascript is required