title: Asynchronous calls issues in Drupal using inline entity?
body: <p>I am getting the following error:</p>
  
  <blockquote>
    <p>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="http://xhr.spec.whatwg.org/" rel="nofollow">http://xhr.spec.whatwg.org/</a>.</p>
  </blockquote>
  
  <p>I have a content type called "resource" and on it you can create "inline entity nodes" which is basically just new nodes linked to this node. My problem is that when I add a new node and then try to upload a file, it reloads the page and gives this error.</p>
  
  <p>This does not happen on the normal upload. There it would also reload the page, but it would keep the image intact. I think the same happens with Inline entities except that inline entities dont save the state when an error like this happens.</p>
  
  <p>That is why I think I need to find a way to STOP the error from being throw in the first place. I've narrowed it down to jquery.js?v=1.5.2 line 7268 (it's similar for most of the other versions)</p>
  
  <pre><code>send: function( headers, complete ) {
  
      // Get a new xhr
      var xhr = s.xhr(),
                  handle,
                  i;
  
      // Open the socket
      // Passing null username, generates a login popup on Opera (#2865)
      if ( s.username ) {
          xhr.open( s.type, s.url, s.async, s.username, s.password );
      } else {
          xhr.open( s.type, s.url, s.async );
      }
  ....
  </code></pre>
  
  <p>This error doesn't happen on my local machine and I have ssl running on the web server where this error is happening. </p>
  
  <p>I have:</p>
  
  <ul>
  <li>Switched between different JQuery versions</li>
  <li>Considered that it might be in the file upload module, but that's part of core now. </li>
  <li>Considered upgrading the inline entity module, but it is definitely the latest version and I tried dev, but still no changes</li>
  <li>I upgraded to Drupal 7.37 (latest to date), still broken</li>
  <li>I ran updates, still nothing</li>
  </ul>
  
  <p>So the question is, why is this error being thrown in Drupal and how can I fix it? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I actually went into the Jquery file and changed:</p>
  
  <pre><code> xhr.open( s.type, s.url, s.async );
  </code></pre>
  
  <p>to:</p>
  
  <pre><code> xhr.open( s.type, s.url, true );
  </code></pre>
  
  <p>Now it no longer throws the error, but it still doesn't show the image... </p>