Use a delegate class instead of relying on private preloading APIs.