Skip to content

Instantly share code, notes, and snippets.

View sunnyrajkotiya's full-sized avatar

sunny rajkotiya sunnyrajkotiya

View GitHub Profile
@sunnyrajkotiya
sunnyrajkotiya / perf.js
Last active August 29, 2015 14:25 — forked from tkadlec/perf.js
Super simple example of adding perf timing to the page display during dev work
(function () {
var perfBar = function(budget) {
window.onload = function() {
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
var timing = window.performance.timing,
now = new Date().getTime(),
output, loadTime;