Add check to ensure assets are only loaded once