title: Performance difference between synchronous and AJAX calls
body: <p>I have a normal HTTP request (no Ajax) and I return a response from server side. This takes around 350ms. The same response when returned through an Ajax call takes only 50 ms.</p>
  
  <p>I checked also the processing or the time taken to prepare the response on the server side. This time is the same for both the requests. (For example, in both cases MyServlet handles the request and returns the response. I gave sysout in the doPost method and the time spent inside the Servlet is the same).</p>