This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.chrome && window.chrome.loadTimes) { | |
let load = chrome.loadTimes(); | |
const getFP = function() { | |
let fp = (load.firstPaintTime - load.startLoadTime) * 1000; | |
return Math.round(fp); | |
}; | |
let fp = getFP(); | |
console.log(`first paint: ${fp} ms`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure you scroll down to get all data loaded | |
var text = 'First, Last, Email\n'; | |
angular.forEach($scope.filteredTesters, function(val) { | |
text += val.firstName.value + ','; | |
text += val.lastName.value + ','; | |
text += val.emailAddress.value + '\n'; | |
}); | |
var a = document.createElement("a"); | |
var file = new Blob([text], {type: 'text/csv'}); | |
a.href = URL.createObjectURL(file); |