Ajax v. including data in the HTML
Always include them directly if you have the choice, it will give a considerable benefit to page load speed.
I'm using JavaScript with jQuery, talking to a Django back end. There are some UI needs that require Ajax, because we can't know what data to send until the user gives some input. However, there is other data that is known at template time. What are the pros and cons of including that data in the template directly, instead of using Ajax? It seems like the former might be simpler.