support resource preloading