Example gif: https://i.imgur.com/3rh9tz5.gif<p>Reddit recently introduced counters on all posts that update "in real time" the upvote and comment counter for any given post.<p>The fact that there are multiple posts on a single page with millions of active users at any given moment, results in tens millions of requests being sent back and fourth "just" to show a cool looking counter component.<p>This simple looking counter must have some level of complexity behind it, which made me curious about how it works.<p>I've been trying to reverse engineer it with Fiddler for the last 30 minutes with no success, so I figured that I should ask here.<p>How does it work from a technical point of view?
This comment on Reddit says it's fake, and it just arbitrarily starts the counter lower than the current score and slowly counts up to the current score to fake activity.<p>Includes source.<p><a href="https://www.reddit.com/r/assholedesign/comments/jqazmu/reddits_fake_upvote_counter_makes_it_look_like/gbtq4db/" rel="nofollow">https://www.reddit.com/r/assholedesign/comments/jqazmu/reddi...</a><p><pre><code> initialDisplayCount: o - s,
countToUpperBound: o,
initialDelay: k,
subsequentRecurringDelay: _,
incrementDelta: m,</code></pre>