Let's say my front-end makes a ton of AJAX calls to the ruby backend for JSON objects.
This is open ended, but from your experiences, which is the better option? I'm concerned with 1. performance, and 2. style
Option 1: Make one AJAX request to backend that returns a lengthy JSON string
Option 2: Break down the request into several AJAX requests that each returns a shorter JSON string.
Or an Option 3? I'll take into consideration other alternatives.
Thanks!