진스
1. async & defer 본문
728x90
script async 와 defer의 차이점
- head 태그 안에 삽입

- body 태그 안에 삽입

- head + async

- head + defer

결론은 head + defer 방식이 가장 안전하고 효율적!!
728x90
'JavaScript' 카테고리의 다른 글
| 6. Object (객체) (0) | 2021.04.09 |
|---|---|
| 5. Class 객체지향언어 (0) | 2021.04.09 |
| 4. Function (0) | 2021.04.09 |
| 3. 연산 / 반복문 (0) | 2021.04.09 |
| 2. 데이터 타입 (0) | 2021.04.09 |
Comments