Capítulo 228 de 988

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

  1. Understand usage when working with preloadImage().
  2. Understand how it works when working with preloadImage().
  3. Understand handle redirects when working with preloadImage().
  4. 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.