How to natively lazy-load images and videos
Learn how Framer handles lazy loading by default and how to optimize edge cases for better performance.
FAQ
How does Framer handle lazy loading for images by default?
Framer automatically lazy loads most images below the fold, requiring no action on your part.
Are there any exceptions to Framer's automatic image lazy loading?
Yes, images inside components and images in the CMS formatted text field are exceptions. These cases are being addressed in a future update, but until then, you can use a code component or override to enable lazy loading for these scenarios.
What is the recommended way to lazy load videos in Framer?
We recommend using YouTube or Vimeo embeds rather than directly uploading videos to Framer. These integrations automatically lazy load, optimizing performance without extra effort. If you upload videos directly (not recommended), you can create a component with two variants (one showing a thumbnail, one showing the video) and add a scroll variant animation to display the video only when the component is in view.
Updated