Skip to main content

Allow component variants to be lazy loaded


Cody_Sorgenfrey

Right now a component with lots of variants is fully loaded into page memory making large components fill memory fast. It’d be awesome if there were a checkbox in the component settings that allowed variants to be lazy loaded.

Switching options on a component would then take more time, but at the benefit of only having layers in use loaded in memory.

9 replies

Celine_
Figmate
  • Community Support
  • 3532 replies
  • December 5, 2023

Hey there! Thanks for the feedback and sharing your idea. We’ll pass it along to our team for consideration and gauge the overall interest in the community 🙂


cupps
  • 7 replies
  • December 13, 2023

Also experience this as a big memory issue as well. This could make a huge difference in our library performance! 😍


Jeremy_Knudsen

Yes! Anything to improve memory management in Figma would be extremely welcomed by our design systems team!


Spencer_Hurd

This would be great, rad suggestion Cody!


Dan_Duarte

This would be a tremendous improvement! P0 for sure 🙂


PollyYang

Running out of memory is such a pain for many of my projects. This would be a huge improvement!


AlicePackard

Oh my goodness. I am so on board with this. Imagine being able to set this for individual properties??

For example, my “State” props go entirely unused in mockups—they exist purely for realistic prototype experiences and for devs to grab styling values. I’m sure there’s loads of other variant props like that: necessary, but they go unused. Whereas other properties I might want to keep fast access to. Something like a boolean for “logged in” or “logged out.”

This is a tremendous idea Cody, thank you for posting!


Jeremy_Knudsen

Coming back to this. Was hoping to see an update or reply from Figma 🙂


Cody_Sorgenfrey

I know! I’ve tried contacting a few people inside Figma as well. I guess they just don’t prioritize performance.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings