ตกลง Javascript ควรใส่ไว้ที่ไหน ?
หลายๆ คน คงสับสน ว่า Javascript ควรใส่ไว้ตรงไหนกันแน่ ระหว่างข้างใน <head> กับก่อนปิด </body> ก่อนอื่นต้องบอกว่า ประเด็นนี้ยังคงเป็นที่ถกเถียงกันอย่างมาก เพราะแต่ละที่ก็มีข้อดีข้อเสีย แตกต่างกันไป ซึ่งผมสรุปมาให้อ่านง่ายๆ ดังนี้ครับ