Can I prefetch data to prevent layout shift when expanding content?

I have a component that is rendered when a collapsible component is expanded. The data in that component loads and flashes the content for a quick second before it loads. If I can't preload data, can I preload the component?
Was this page helpful?