Component for preloading assets