{"action":"created","issue":{"url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/6","repository_url":"https://api.github.com/repos/DaAwesomeP/tab-counter","labels_url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/6/comments","events_url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/6/events","html_url":"https://github.com/DaAwesomeP/tab-counter/issues/6","id":250719680,"number":6,"title":"If a count is already known and a new tab is opened, do not display \"wait\" for 1 second","user":{"login":"Smile4ever","id":544411,"avatar_url":"https://avatars3.githubusercontent.com/u/544411?v=4","gravatar_id":"","url":"https://api.github.com/users/Smile4ever","html_url":"https://github.com/Smile4ever","followers_url":"https://api.github.com/users/Smile4ever/followers","following_url":"https://api.github.com/users/Smile4ever/following{/other_user}","gists_url":"https://api.github.com/users/Smile4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/Smile4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smile4ever/subscriptions","organizations_url":"https://api.github.com/users/Smile4ever/orgs","repos_url":"https://api.github.com/users/Smile4ever/repos","events_url":"https://api.github.com/users/Smile4ever/events{/privacy}","received_events_url":"https://api.github.com/users/Smile4ever/received_events","type":"User","site_admin":false},"labels":[{"id":558210078,"url":"https://api.github.com/repos/DaAwesomeP/tab-counter/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-16T18:34:27Z","updated_at":"2017-08-17T00:00:27Z","closed_at":"2017-08-16T18:53:38Z","body":"Displaying \"wait\" instead of the current count (or current count + 1) doesn't make a lot of sense when I just opened a new tab.\r\n\r\nOr is there a specific reason for this?\r\n\r\nKind regards,\r\nGeoffrey"},"comment":{"url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/comments/322931763","html_url":"https://github.com/DaAwesomeP/tab-counter/issues/6#issuecomment-322931763","issue_url":"https://api.github.com/repos/DaAwesomeP/tab-counter/issues/6","id":322931763,"user":{"login":"dev-rke","id":6354774,"avatar_url":"https://avatars0.githubusercontent.com/u/6354774?v=4","gravatar_id":"","url":"https://api.github.com/users/dev-rke","html_url":"https://github.com/dev-rke","followers_url":"https://api.github.com/users/dev-rke/followers","following_url":"https://api.github.com/users/dev-rke/following{/other_user}","gists_url":"https://api.github.com/users/dev-rke/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-rke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-rke/subscriptions","organizations_url":"https://api.github.com/users/dev-rke/orgs","repos_url":"https://api.github.com/users/dev-rke/repos","events_url":"https://api.github.com/users/dev-rke/events{/privacy}","received_events_url":"https://api.github.com/users/dev-rke/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T00:00:27Z","updated_at":"2017-08-17T00:00:27Z","body":"> I would still need a way to handle an influx of tabs vs one new tab. Handling the event so many times causes lag even with a debounce on the function.\r\n\r\nHm, what about this idea:\r\nCurrently the debounce triggers only after 250ms.\r\nYou could also render the update when the first event occurs. \r\nAlso keep the debounce, but let it also render initially a single time.\r\n\r\nTake a look into the debounce function (https://lodash.com/docs/4.17.4#debounce):\r\n```\r\n{\r\n  leading: true,\r\n  trailing: true,\r\n}\r\n```\r\nMaybe this might solve the issue."}}
{"actor":{"display_login":"dev-rke"}}