Skip to content

Instantly share code, notes, and snippets.

@yefremov
Last active April 8, 2017 07:04
Show Gist options
  • Select an option

  • Save yefremov/bb1fbeefcd24252e1b93f512b5876fed to your computer and use it in GitHub Desktop.

Select an option

Save yefremov/bb1fbeefcd24252e1b93f512b5876fed to your computer and use it in GitHub Desktop.

Revisions

  1. yefremov renamed this gist Apr 8, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions timing.js → report.js
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,12 @@

    function timing() {
    function report() {
    try {
    return {
    chrome: 'chrome' in window && chrome.loadTimes(),
    userAgent: 'navigator' in window && navigator.userAgent,
    timing: 'performance' in window && performance.timing,
    navigation: 'performance' in window && performance.navigation,
    chrome: 'chrome' in window && chrome.loadTimes(),
    serviceWorker: 'serviceWorker' in navigator,
    };
    } catch (e) {};
    }
  2. yefremov created this gist Apr 8, 2017.
    10 changes: 10 additions & 0 deletions timing.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@

    function timing() {
    try {
    return {
    chrome: 'chrome' in window && chrome.loadTimes(),
    timing: 'performance' in window && performance.timing,
    navigation: 'performance' in window && performance.navigation,
    };
    } catch (e) {};
    }