title: Ajax chat page freezes browser window
body: <p>I have website. I coded chat page with jQuery AJAX. there are 3 ajax call. </p>
  
  <ol>
  <li>AJAX request for send new chat text, </li>
  <li>AJAX request for detect user is typing </li>
  <li>AJAX request for detect new messages.</li>
  </ol>
  
  <p>I use JSON to send and receive low data for chat. I used the best technology for chat with AJAX, but the web page freezes when I type a message into the input box or scroll up and down in the history of chat. I can't understand why the page is freezing.  </p>
  
  <p>First I was fetching all chat history. I changed it so it only fetches new messages if there are any, but this did not solve my problem.</p>
  
  <p>Second, I tried setting <code>async=true</code> or <em>false</em> - this does not solve my problem. It must work correctly without freezing but it freezes.</p>
  
  <p>Screenshots are below. </p>
  
  <p><img src="https://i.stack.imgur.com/hluSV.png" alt="firebug ajax calls">
  <img src="https://i.stack.imgur.com/xpJMH.png" alt="chat window"></p>