With over 100 components at my disposal, not all of them will be needed on a single page.
For instance, a user might select a list of component IDs (components_ids - [7, 50, 22]
).
When the page is visited, I will only load the components with IDs that match 7, 50, or 22 from the components_ids
list.
I have realized that all components can be loaded on the page and used dynamically using :is
, but loading all 100+ components consumes unnecessary memory resources.
Is there a way for me to load only the components that are selected by the user?
Any suggestions would be greatly appreciated!