#Dynamic JS loading of components from CMS

2 messages · Page 1 of 1 (latest)

tawny fiber
#

Hey everyone, started building a datocms - astro landing page some components added to the page will require JS ie product sliders and can be in any order, however I dont want to bring every components client side in if not needed, has anyone had any experience with dynamically adding the client:load if the component needs it.

iron heron
#

Hi! It's not possible yet to dynamically set client directives but there's a workaround discussed here #1019236196444024902 message