Browse Source

Fix Firefox issue with performance marks (#3315)

master
Nolan Lawson 7 years ago
committed by Eugen Rochko
parent
commit
33d7338779
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      app/javascript/mastodon/performance.js

+ 5
- 0
app/javascript/mastodon/performance.js View File

@ -7,6 +7,11 @@
let marky;
if (process.env.NODE_ENV === 'development') {
if (typeof performance !== 'undefined' && performance.setResourceTimingBufferSize) {
// Increase Firefox's performance entry limit; otherwise it's capped to 150.
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1331135
performance.setResourceTimingBufferSize(Infinity);
}
marky = require('marky');
require('react-addons-perf').start();
}

Loading…
Cancel
Save