Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Matthew Francis
Matthew Francis
6,967 Points

<script> at the bottom or use defer in script?

Nowadays, is it best practice to put script tags at the top with defer, or should you stil put it at the bottom? Also is there any scenario where async in script would be a good idea?

1 Answer

Chris Shaw
Chris Shaw
26,650 Points

Hi Matthew Francis,

I recommend you have a read through the articles below as they all have great coverage on this topic and go in-depth to explain each concept and how to implement them.

Hope that helps!