{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2406","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2406/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2406/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2406/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/2406","id":60148118,"number":2406,"title":"Adding media to post should be done on background thread","user":{"login":"tonyr59h","id":4031052,"avatar_url":"https://avatars.githubusercontent.com/u/4031052?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyr59h","html_url":"https://github.com/tonyr59h","followers_url":"https://api.github.com/users/tonyr59h/followers","following_url":"https://api.github.com/users/tonyr59h/following{/other_user}","gists_url":"https://api.github.com/users/tonyr59h/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyr59h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyr59h/subscriptions","organizations_url":"https://api.github.com/users/tonyr59h/orgs","repos_url":"https://api.github.com/users/tonyr59h/repos","events_url":"https://api.github.com/users/tonyr59h/events{/privacy}","received_events_url":"https://api.github.com/users/tonyr59h/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/media","name":"media","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T19:38:08Z","updated_at":"2015-04-09T21:24:25Z","closed_at":null,"body":"From https://github.com/wordpress-mobile/WordPress-Android/pull/2317\r\n\r\nFor every media item selected by the user a WPImageSpan is added to the post. This work is done serially and on the main thread, if there are too many items selected the editor will hang until all the spans are generated. The bitmaps for the WPImageSpans should be generated on a background thread to reduce user impact.\r\n\r\n[See video](https://cloudup.com/cac8VzIrXnC)"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/91359927","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/2406#issuecomment-91359927","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2406","id":91359927,"user":{"login":"tonyr59h","id":4031052,"avatar_url":"https://avatars.githubusercontent.com/u/4031052?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyr59h","html_url":"https://github.com/tonyr59h","followers_url":"https://api.github.com/users/tonyr59h/followers","following_url":"https://api.github.com/users/tonyr59h/following{/other_user}","gists_url":"https://api.github.com/users/tonyr59h/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyr59h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyr59h/subscriptions","organizations_url":"https://api.github.com/users/tonyr59h/orgs","repos_url":"https://api.github.com/users/tonyr59h/repos","events_url":"https://api.github.com/users/tonyr59h/events{/privacy}","received_events_url":"https://api.github.com/users/tonyr59h/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T21:24:25Z","updated_at":"2015-04-09T21:24:25Z","body":"#2515 improved the situation but it will still be noticeable when the user selects more than ~15."}}