Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMuaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 PointsAjax and asynchronous programming
When do we use ajax and when do we use asynchronous programming ?
1 Answer
Clayton Perszyk
Treehouse Moderator 48,850 PointsAJAX is an asynchronous way to call a server to request data.
Alex Hort-Francis
17,074 PointsAlex Hort-Francis
17,074 PointsWhen you need to populate content on your webpage from a separate server to the one hosting your own files, using HTTP.
Any time a web application needs data to work that is accessed through an HTTP connection (non-locally) there is a need to process the code asynchronously, to avoid an unreliable (slow or failed) internet connection blocking the program from working.