Ensure that a resource is loaded while registering.