Skip to content

Instantly share code, notes, and snippets.

@addisonschultz
Created August 14, 2019 10:30
Show Gist options
  • Save addisonschultz/a93db645458de52c07e768575b530c98 to your computer and use it in GitHub Desktop.
Save addisonschultz/a93db645458de52c07e768575b530c98 to your computer and use it in GitHub Desktop.
Add this file into a Framer X project to load a script to the top of your project
function Loader() {
if (document.getElementById("customScript")) {
console.log("Script is already loaded!");
return;
}
const script = document.createElement("script");
script.src = "path/to/sript.js";
script.id = "customScript";
document.head.appendChild(script);
}
Loader();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment