title: More efficient ajax & php interaction
body: <p>I'm trying to find more efficient ways to build my site.
  I'm currently using an ajax $.post in a setInterval() function to reload the content.</p>
  
  <p>Something like this:</p>
  
  <pre><code> $(document).ready(function() {
     $("#data").load("data.php");
  
     var refreshId = setInterval(function() {
        $("#data").load('data.php');
     }, 1000);
  
   });
  </code></pre>
  
  <p>But this is too heavy with a lot of users online.
  I would like something like this: <a href="https://yobit.net/en/dice/" rel="nofollow noreferrer">https://yobit.net/en/dice/</a></p>
  
  <p>I have no idea how it is made, and what language they used for it.
  I would be glad if someone help me discover what is this or point me to an language or method to do something like it.</p>
  
  <p>Sorry for my bad english, not first language.</p>
  
  <p>Thank you :)</p>