code: function loadResources (styleArray) {
    const publicPath = '/public';
    var results = {};
    for (let source of styleArray) {
      if (source.resources) {
        for (let category in source.resources) {
          if (source.resources.hasOwnProperty(category)) {
            if (!results.hasOwnProperty(category)) {
              results[category] = {};
            }
            for (let item in source.resources[category]) {
              results[category][item] = source.resources[category][item];
              results[category][item].dataPromise = new Promise(resolve => {
                getJSON(publicPath + results[category][item].src)
                  .then(data => {
                    resolve(data);
                  });
              });
            }
          }
        }
      }
    }
    return results;
  }
docs: Loads JSON assets (fonts, 3D objects) with XHR and creates dataPromise properties with the asset promise in the returned object.