function preloadEverything()

in site/js/projects.js [1606:1625]


function preloadEverything(callback) {
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
    if (!String.prototype.startsWith) {
        String.prototype.startsWith = function (searchString, position) {
            position = position || 0;
            return this.substr(position, searchString.length) === searchString;
        };
    }
    GetAsyncJSONArray([
        ["json/foundation/committees.json", "committees", setCommittees],
        ["json/foundation/groups.json", "groups", function(json) { unixgroups = json; }],
        ["json/foundation/people_name.json", "people", function(json) { people = json; }],
        ["json/foundation/podlings.json", "podlings", function(json) { podlings = json; weaveInProjects(json,'incubator-')}], // do this first
        ["json/foundation/projects.json", "projects", weaveInProjects], // so can replace with DOAP data where it exists
        ["json/foundation/committees-retired.json", "retired committees", weaveInRetiredCommittees],
        ["json/foundation/podlings-history.json", "podlings history", function(json) { podlingsHistory = json; }],
        ["json/foundation/repositories.json", "repositories", function(json) { repositories = json; }]
        ],
        callback);
}