0

defer in script

how is better time to use defer in script tag? and which one is better? script tag in head or body? this is example: <script src="..." defer >

22nd May 2020, 12:30 PM
Hamed Keshavarz M
Hamed Keshavarz M - avatar
1 Odpowiedź
0
For the best perfomance, you can put <script></script> tag before the </body> tag. If you do this isn't necessary to use defer or async attribute
23rd May 2020, 3:01 PM
jdav07
jdav07 - avatar