code: function preloadJavascript(data, onload, onerror) {
           var script = document.createElement("script");
           script.src = data.src;
           script.type = "text/javascript";
  
           if (typeof api.crossOrigin === "string") {
             script.crossOrigin = api.crossOrigin;
           }
  
           script.defer = true;
  
           script.onload = function () {
             // callback
             onload();
           };
  
           script.onerror = function () {
             // callback
             onerror(data.name);
           };
  
           document.getElementsByTagName("body")[0].appendChild(script);
         }
docs: preload Binary files
  @ignore