Created
August 14, 2019 10:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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