mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix Firefox issue with performance marks (#3315)
This commit is contained in:
parent
cf4fe6cab8
commit
33d7338779
@ -7,6 +7,11 @@
|
|||||||
let marky;
|
let marky;
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
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');
|
marky = require('marky');
|
||||||
require('react-addons-perf').start();
|
require('react-addons-perf').start();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user