티스토리 뷰
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
- restful api server
- 토이프로젝트
- axios
- 퍼블리셔
- semantic
- vue cli 4
- vueRouter
- sass-loader
- V-Model
- 중첩라우트
- json server
- 탭컴포넌트
- polyfill
- WAI-ARIA
- scss
- nodes.js
- VUE
- Babel
- node-sass
- jest
- 리팩토링
- 동적slot
- SASS
- Vue.js
- computed
- webpack
- 프론트엔드
- 러닝자바스크립트
- vue3
- fetch
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
