mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-22 21:38:11 -05:00
Previously, the server would check the user's previous visits when rendering a comment page and add comment-period-N classes to comments depending on where they fell in relation to those visits. The client side would then add or remove a new-comment class to every comment with the appropriate (or older) comment-period class on first load or when the previous visit selection changed. This removes that server-side addition of comment-period-N classes and replaces it with ScrollUpdater-based updating of comments based on their actual timestamps. The goal is to reduce some server-side ugliness and extraneous memcached lookups.