{"action":"created","issue":{"url":"https://api.github.com/repos/ccd0/4chan-x/issues/767","repository_url":"https://api.github.com/repos/ccd0/4chan-x","labels_url":"https://api.github.com/repos/ccd0/4chan-x/issues/767/labels{/name}","comments_url":"https://api.github.com/repos/ccd0/4chan-x/issues/767/comments","events_url":"https://api.github.com/repos/ccd0/4chan-x/issues/767/events","html_url":"https://github.com/ccd0/4chan-x/issues/767","id":132566386,"number":767,"title":"Support for rolling threads","user":{"login":"mahkoh","id":1882250,"avatar_url":"https://avatars.githubusercontent.com/u/1882250?v=3","gravatar_id":"","url":"https://api.github.com/users/mahkoh","html_url":"https://github.com/mahkoh","followers_url":"https://api.github.com/users/mahkoh/followers","following_url":"https://api.github.com/users/mahkoh/following{/other_user}","gists_url":"https://api.github.com/users/mahkoh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahkoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahkoh/subscriptions","organizations_url":"https://api.github.com/users/mahkoh/orgs","repos_url":"https://api.github.com/users/mahkoh/repos","events_url":"https://api.github.com/users/mahkoh/events{/privacy}","received_events_url":"https://api.github.com/users/mahkoh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ccd0/4chan-x/labels/annoyance","name":"annoyance","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-09T23:22:32Z","updated_at":"2016-03-16T11:30:13Z","closed_at":null,"body":"For some time 4chan has had rolling threads that are used during events such as mod/admin Q&As and currently debate/primary stickies on /pol/.\r\n\r\nRolling threads work as follows: Once the thread reaches a set number of posts (usually 1000), for every new post that is made, the currently oldest post is deleted, thus keeping the number of posts at 1000. This does however not mean that the deleted posts are removed from the DOM, they are simply marked deleted.\r\n\r\nSince the threads continuously grow, this causes noticeable slowdown after some time. The normal solution is to refresh the thread, however, since the thread still contains 1000 posts, 4chan-x takes several seconds to apply its DOM modifications after a refresh.\r\n\r\nI do not know if the 4chan API allows one to distinguish rolling from normal threads. Depending on this, I see two ways to improve this problem:\r\n\r\n1. Add an option to automatically remove deleted posts from the DOM in rolling threads.\r\n2. Add a button to remove all deleted posts from the current thread."},"comment":{"url":"https://api.github.com/repos/ccd0/4chan-x/issues/comments/197275329","html_url":"https://github.com/ccd0/4chan-x/issues/767#issuecomment-197275329","issue_url":"https://api.github.com/repos/ccd0/4chan-x/issues/767","id":197275329,"user":{"login":"ccd0","id":5894749,"avatar_url":"https://avatars.githubusercontent.com/u/5894749?v=3","gravatar_id":"","url":"https://api.github.com/users/ccd0","html_url":"https://github.com/ccd0","followers_url":"https://api.github.com/users/ccd0/followers","following_url":"https://api.github.com/users/ccd0/following{/other_user}","gists_url":"https://api.github.com/users/ccd0/gists{/gist_id}","starred_url":"https://api.github.com/users/ccd0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccd0/subscriptions","organizations_url":"https://api.github.com/users/ccd0/orgs","repos_url":"https://api.github.com/users/ccd0/repos","events_url":"https://api.github.com/users/ccd0/events{/privacy}","received_events_url":"https://api.github.com/users/ccd0/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T11:30:13Z","updated_at":"2016-03-16T11:30:13Z","body":"I added a pruning tool to the newest beta (v1.11.28.1). Made the limit user-configurable since some people may want to set it even lower than 1000. It's not specific to rolling stickies, either; you can use it in any thread.\r\n\r\n![Reply pruning](https://cloud.githubusercontent.com/assets/5894749/13810620/0496f910-eb2e-11e5-8cb9-9029cafb545c.png)\r\n\r\nNote: If you're using `Quote Threading`, you'll need to turn that off to use it, since it's not compatible yet."}}