[wp-trac] [WordPress Trac] #33349: Synchronous XMLHttpRequest on the main thread is deprecated

WordPress Trac noreply at wordpress.org
Mon Oct 26 11:38:23 UTC 2015


#33349: Synchronous XMLHttpRequest on the main thread is deprecated
----------------------------+------------------------------
 Reporter:  atomicjack      |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.3
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript
----------------------------+------------------------------

Comment (by atomicjack):

 Replying to [comment:4 swissspidy]:
 > It's only a warning, not an error, and I get it too when I'm on the "Add
 New Post" screen and refresh the page.
 >
 > The reason is the request to admin-ajax.php to remove the post lock, see
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/js/post.js?rev=35395#L401.
 >
 > Introduced in [26995]
 >
 > Edit: The easy fix would be to remove `async: false`, but perhaps that
 would lead to the post lock not being removed. Needs testing.

 Is there a reason it can't be done with async?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33349#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list