]> cat aescling's git repositories - mastodon.git/commitdiff
Fix Firefox issue with performance marks (#3315)
authorNolan Lawson <nolan@nolanlawson.com>
Thu, 25 May 2017 16:59:18 +0000 (09:59 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 25 May 2017 16:59:18 +0000 (18:59 +0200)
app/javascript/mastodon/performance.js

index 64fd47bb3c39bd9124e0292a5308dc1d566a915f..4e89c219641ad0a6fc2ac26b9061a76f9b8635ac 100644 (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();
 }