Custom Code
How To: Add external scripts or style libraries in Embeddables
Two ways to add external scripts or style libraries toyour Embeddable
There are two recommended methods to include external JavaScript packages in your Embeddable:
-
Direct HTML Inclusion (Recommended): Add the script tag directly to the HTML of the page where you’re embedding your Embeddable, alongside the Embeddables embed code.
-
JavaScript Action Method: Load the package programmatically through an Action that triggers when the Embeddable loads.
If you choose #2, here’s sample code for inserting a <link>
tag: