From 33d73387793674d955d8ec244ca099ba5a9ef97e Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 25 May 2017 09:59:18 -0700 Subject: [PATCH] Fix Firefox issue with performance marks (#3315) --- app/javascript/mastodon/performance.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/javascript/mastodon/performance.js b/app/javascript/mastodon/performance.js index 64fd47bb3c..4e89c21964 100644 --- a/app/javascript/mastodon/performance.js +++ b/app/javascript/mastodon/performance.js @@ -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(); }