Advertisement
Xplosive_

ScriptLoader.js

Mar 29th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ScriptsLoad() {
  2. function createDiv(text) {
  3.   var div = document.createElement("script");
  4.   div.src = (text);
  5.   return div;
  6. }
  7. var divs = [
  8.   createDiv("https://xplosivex.github.io/Burkoloy/Resources/Scripts/Dropdown.js"),
  9.   createDiv("https://xplosivex.github.io/Burkoloy/Resources/Scripts/ChapterSelect.js"),
  10.   createDiv("https://xplosivex.github.io/Burkoloy/Resources/Scripts/Dynamic.js"),
  11.   createDiv("https://xplosivex.github.io/Burkoloy/Resources/Scripts/TextSizer.js"),
  12.   createDiv("https://xplosivex.github.io/Burkoloy/Resources/Scripts/AntiCopy.js")
  13. ];
  14.  
  15. var docFrag = document.createDocumentFragment();
  16. for(var i = 0; i < divs.length; i++) {
  17.   docFrag.appendChild(divs[i]);
  18. }
  19.  
  20. document.body.appendChild(docFrag);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement