Created
July 1, 2021 08:50
-
-
Save sorie/9aa645f5ec1202c794f7b2588240347e to your computer and use it in GitHub Desktop.
async vs differ & usestrict사용이유
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
head안에 async를 넣으면 html parcing과 병렬로 실행된다. | |
head안에 differ를 넣으면 html parcing을 끝내고 실행된다. | |
usestrict 사용 | |
typescript를 사용할때는 필요없지만 | |
javascript는 많이 유연한 언어로 ecmascript5를 사용하겠다는 이야기 | |
예를 들어 선언되지도 않은 변수를 불러와도 문제가 없었지만 usestrict를 사용하면 에러가 발생한다.더욱 엄격해지는것. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment