(function() {
  /**
   * Browsertime (http://www.browsertime.com)
   * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog
   * and other contributors
   * Released under the Apache 2.0 License
   */

// someway the get entries by type isn't working in IE using Selenium,
// will spend time fixing this later, now just return empty
  if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
    return [];
  }

  if (window.performance && window.performance.getEntriesByType) {
    var timings = window.performance.getEntriesByType('resource');
    // workaround for issue with Firefox where each resource timing entry contains a toJSON entry.
    return JSON.parse(JSON.stringify(timings));
  } else {
    return [];
  }
})();

@@ -13,723 +13,456 @@
 %7B%0A  
-/**%0A   * Browsertime (http://www.browsertime.com)%0A   * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog%0A   * and other contributors%0A   * Released under the Apache 2.0 License%0A   */%0A%0A// someway the get entries by type isn't working in IE using Selenium,%0A// will spend time fixing this later, now just return empty%0A  if (navigator.userAgent.indexOf('MSIE') !== -1 %7C%7C navigator.appVersion.indexOf('Trident/') %3E 0) %7B%0A    return %5B%5D;%0A  %7D%0A%0A  if (window.performance && window.performance.getEntriesByType) %7B%0A    var timings = window.performance.getEntriesByType('resource');%0A    // workaround for issue with Firefox where each resource timing entry contains a toJSON entry.%0A    return JSON.parse(JSON.stringify(timings))
+if (window.performance && window.performance.getEntriesByType) %7B%0A    var timings = window.performance.getEntriesByType('resource');%0A    var resources = %5B%5D;%0A    // we can do more cool stuff with resouce timing v2 in the%0A    // future%0A    timings.forEach(function(resource) %7B%0A        resources.push(%7B%0A          name: resource.name,%0A          startTime: resource.startTime,%0A          duration: resource.duration%0A        %7D);%0A    %7D);%0A%0A  return resources
 ;%0A  

use the same pattern as user timings