{"action":"created","issue":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1802","labels_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1802/labels{/name}","comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1802/comments","events_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1802/events","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1802","id":62161547,"number":1802,"title":"Running a synchronous http transaction in the main javascript thread is deprecated","user":{"login":"JeffPyeBrook","id":3098792,"avatar_url":"https://avatars.githubusercontent.com/u/3098792?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffPyeBrook","html_url":"https://github.com/JeffPyeBrook","followers_url":"https://api.github.com/users/JeffPyeBrook/followers","following_url":"https://api.github.com/users/JeffPyeBrook/following{/other_user}","gists_url":"https://api.github.com/users/JeffPyeBrook/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffPyeBrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffPyeBrook/subscriptions","organizations_url":"https://api.github.com/users/JeffPyeBrook/orgs","repos_url":"https://api.github.com/users/JeffPyeBrook/repos","events_url":"https://api.github.com/users/JeffPyeBrook/events{/privacy}","received_events_url":"https://api.github.com/users/JeffPyeBrook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-16T17:49:30Z","updated_at":"2015-04-02T16:08:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1802","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1802","diff_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1802.diff","patch_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1802.patch"},"body":"Running a synchronous http transaction in the main javascript thread is now deprecated in Chrome IE and based on somewhat reliable internet conversations Firefox.\r\n\r\nEven though we run our very light weight transaction off of a timeout trigger, it is being detected as part of the main thread.\r\n\r\nSo we need to make an adjustment to stop things like add to cart, update shipping and checkout from breaking.\r\n\r\nChange the checkVisitorId() function to use an asynchronous ajax transaction rather than a synchronous transaction, that's easy. But that still leaves the fringe possibility where if a user makes a first visit to a WP-eCommerce site, the site is using some type of cache ( that means server cache like WP-SuperCache or W3-Total-Cache or a CDN like Akamai or Cloudflare ), and the first page is a page that uses ajax the customer cookie may not be set properly.\r\n"},"comment":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/comments/88960849","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1802#issuecomment-88960849","issue_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1802","id":88960849,"user":{"login":"JustinSainton","id":1168754,"avatar_url":"https://avatars.githubusercontent.com/u/1168754?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinSainton","html_url":"https://github.com/JustinSainton","followers_url":"https://api.github.com/users/JustinSainton/followers","following_url":"https://api.github.com/users/JustinSainton/following{/other_user}","gists_url":"https://api.github.com/users/JustinSainton/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinSainton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinSainton/subscriptions","organizations_url":"https://api.github.com/users/JustinSainton/orgs","repos_url":"https://api.github.com/users/JustinSainton/repos","events_url":"https://api.github.com/users/JustinSainton/events{/privacy}","received_events_url":"https://api.github.com/users/JustinSainton/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T16:08:38Z","updated_at":"2015-04-02T16:08:38Z","body":"@JeffPyeBrook Yep, was referencing globals in the context of jshint."}}