Don't load unnecessary assets if the app is loaded in the background.