diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/performance.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/performance.js b/app/javascript/mastodon/performance.js index 4e89c2196..396c605e4 100644 --- a/app/javascript/mastodon/performance.js +++ b/app/javascript/mastodon/performance.js @@ -13,7 +13,9 @@ if (process.env.NODE_ENV === 'development') { performance.setResourceTimingBufferSize(Infinity); } marky = require('marky'); - require('react-addons-perf').start(); + // allows us to easily do e.g. ReactPerf.printWasted() while debugging + window.ReactPerf = require('react-addons-perf'); + window.ReactPerf.start(); } export function start(name) { |