Chrome violation : [Violation] Handler took 83ms of runtime

后端 未结 3 1669
-上瘾入骨i
-上瘾入骨i 2020-12-24 04:38

I\'m trying to implement the Facebook\'s logout functionality in my project. Login works just fine. But I\'m facing the getting the following message in JavaScript console w

3条回答
  •  暖寄归人
    2020-12-24 05:08

    "Chrome violations" don't represent errors in either Chrome or your own web app. They are instead warnings to help you improve your app. In this case, Long running JavaScript and took 83ms of runtime are alerting you there's probably an opportunity to speed up your script.

    ("Violation" is not the best terminology; it's used here to imply the script "violates" a pre-defined guideline, but "warning" or similar would be clearer. These messages first appeared in Chrome in early 2017 and should ideally have a "More info" prompt to elaborate on the meaning and give suggested actions to the developer. Hopefully those will be added in the future.)

提交回复
热议问题