# Loading legacy CTAs within a shadow DOM

**URL:** <https://community.hubspot.com/t/loading-legacy-ctas-within-a-shadow-dom/109004>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [June 10, 2024, 7:23am UTC](https://community.hubspot.com/t/loading-legacy-ctas-within-a-shadow-dom/109004 "2024-06-10T07:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dp-mkolo](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@dp-mkolo](https://community.hubspot.com/u/dp-mkolo)\
**Post date:** [June 10, 2024, 7:23am UTC](https://community.hubspot.com/t/loading-legacy-ctas-within-a-shadow-dom/109004/1 "2024-06-10T07:23:58Z")

</div>

Hello! My team is developing a new application, that is loaded within the shadow DOM (open mode), we’ve noticed that it isn’t possible to load legacy CTAs through `

`window.hbspt.cta.load(PORTAL_ID, TOUCHPOINT_ID, {`

`useNewLoader: 'true',region: 'na1',``})`

`. Since the shadow DOM’s mode is open, it is possible to modify its content from the outside, I assume that the HubSpot’s script, responsible for loading the CTA in the specified placement id, is looking for this placement id in the context of the document, and not shadowRoot as it should be when modifying shadow DOM’s content.  
Is it possible to tweak the CTA loader to load those CTAs properly in the context of the shadow DOM?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 13, 2024, 9:24pm UTC](https://community.hubspot.com/t/loading-legacy-ctas-within-a-shadow-dom/109004/2 "2024-06-13T21:24:25Z")

</div>

Hey, @dp-mkolo 👋 I didn’t find any matching dev documentation supporting this being possible. We’ll leave this thread open in case one of our community members has come across a solution or workaround.

Best,

Jaycee
