Skip to content

How to use CDN links? #284

Answered by botmaster
Bobakanoosh asked this question in Q&A

You must be logged in to vote

Hello
Try this in histoire.setup.js

const head = document.getElementsByTagName("head")[0];
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://kit.fontawesome.com/xxxxxxxx.js";
script.crossOrigin = "anonymous";
head.appendChild(script);

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@Bobakanoosh

Answer selected by Bobakanoosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants