Inexplicit 'task' in Chrome Perfomance DevTools

后端 未结 1 767
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 20:50

Chrome exhibits huge lags when viewing a given web page of mine. I\'m using the DevTools Performance tab to try and find the culprit which I assume to be somewhere in m

相关标签:
1条回答
  • 2021-02-06 21:42

    You can use JavaScript's performance observer to know the bottleneck of perf issues in your web app.

    Precise code -

    const observer = new PerformanceObserver((list) => {
        console.log('Long Task detected!                                                                     
    0 讨论(0)
提交回复
热议问题