티스토리 뷰
function someMethodIThinkMightBeSlow() {
const startTime = performance.now();
// Do the normal stuff for this function
const duration = performance.now() - startTime;
console.log(`someMethodIThinkMightBeSlow took ${duration}ms`);
}
참고 url
stackoverflow.com/questions/41218507/violation-long-running-javascript-task-took-xx-ms
'Javascript' 카테고리의 다른 글
| Optional Chaining 연산자 (0) | 2021.10.28 |
|---|---|
| javascript - random color code (0) | 2020.09.22 |
| [Javascript] 페이지 진입 시, url hash 따라 스크롤 이동 (0) | 2020.07.14 |
| [번역] Javascript의 Class (0) | 2020.06.24 |
| [Jquery] 텍스트 여러 줄 말 줄임 처리 스크립트 (0) | 2020.04.01 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- json server
- computed
- polyfill
- V-Model
- 동적slot
- vue cli 4
- Vue.js
- vue3
- sass-loader
- axios
- 토이프로젝트
- 탭컴포넌트
- vueRouter
- jest
- VUE
- 프론트엔드
- webpack
- node-sass
- SASS
- scss
- restful api server
- 리팩토링
- fetch
- 중첩라우트
- nodes.js
- semantic
- 러닝자바스크립트
- Babel
- 퍼블리셔
- WAI-ARIA
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함
