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