This course has been updated! We now recommend you take the JavaScript Performance course.

Check out a free preview of the full Website Performance course:
The "JSON, Ajax, & Web Sockets" Lesson is part of the full, Website Performance course featured in this preview video. Here's what you'd learn in this lesson:

While JSON can be faster than other data formats like XML, remember it’s easy to add bloat to your data and get lazy with how it’s structured. Laziness can lead to latency and a slower web application. Ajax requests have been used for years and tend to be the de facto means for asynchronous communication. Web sockets, however can reduce the amount of data sent and open the door for two-way communication.

Get Unlimited Access Now