title: Calendar / Ajax Issue | I am looking for an explanation
body: <p>I have been working on an application that uses a different calendar plugin. The plugin is named CLNDR url: <a href="http://kylestetz.github.io/CLNDR/" rel="nofollow noreferrer">http://kylestetz.github.io/CLNDR/</a></p>
  
  <p>Now I have created a dynamic solution calling to PHP /api/agenda/getAllEvents and jQuery keeps filling my console with the following error:</p>
  
  <p><em>Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check <a href="https://xhr.spec.whatwg.org/" rel="nofollow noreferrer">https://xhr.spec.whatwg.org/</a>.</em></p>
  
  <pre><code>$.ajax({
          url:'/api/agenda/getAllEvents',
          dataType:'JSON',
          async:false,
          success:function(obj){
              return eventArray = obj;
          }
      });
  </code></pre>
  
  <p>I don't get this error when i remove the async:false segment from the code only my eventArray that I return stays null / empty as object. When async is added I get the result but with the error message above.</p>
  
  <p>What did I miss at this stage?</p>