code: function() {
  
        var filesArray = _files[_currentSegment].slice();
  
        $.each(filesArray, function(i, file) {
  
          log('preloading files');
  
          log('file to preload:' + file.source);
          switch (file.type) {
            case 'IMAGE':
              loadImage(file);
              break;
            case 'VIDEO':
            case 'AUDIO':
              loadMedia(file);
              break;
            case 'SCRIPT':
              loadScript(file);
              break;
            case 'TEXT':
            case 'CSS':
              loadText(file, /CSS/g.test(file.type));
              break;
            default:
              return false;
          }
  
        });
  
      }
docs: /*
  
  @description start loading all the files