Chapter 228: preloadImage()
Core Idea
_This function is part of the @remotion/preload package.
Key Concepts
- Usage
- How it works
- Handle redirects
- See also
Code Examples
const unpreload = preloadImage(
"https://images.unsplash.com/photo-1561336313-0bd5e0b27ec8?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80"
);
// If you want to un-preload the image later
unpreload();
- What it demonstrates: Usage pattern for preloadImage() from the official docs.
Key Takeaways
- Understand usage when working with preloadImage().
- Understand how it works when working with preloadImage().
- Understand handle redirects when working with preloadImage().
- Understand see also when working with preloadImage().
Connects To
- Animatedimage: related page in the Assets & Media section.
- Delaying: related page in the Assets & Media section.
- Exporting: related page in the Assets & Media section.