Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
13 years, 2 months ago
Take a look at
this question on SO.
The comment portion for the accepted answer shows 5 of them on load and displayed a hyperlink with text "show 2 more comments".
Upon clicking, two more showed up. One at the 4th location and one at the end. Is this the behaviour by design because I can't grasp the logic.
239k 59 59 gold badges 588 588 silver badges 1211 1211 bronze badges
Jan 23, 2010 at 0:05
3,404 16 16 silver badges 19 19 bronze badges
Your annotated picture shows that you are expecting the second hidden comment to show at the bottom - this is not the case. In this example one of the hidden comments was in the middle.
Jan 23, 2010 at 0:23
186 3 3 bronze badges
Yes (it's not a bug), by default the comments that are chosen to be shown are the ones with the highest number of votes.
Personally I'd prefer the "show N more comments" link to show up at the
top of the list, as (especially on meta where 15 comments are shown rather than 5), the link might be below the edge of my screen and I'd rather just read all the comments once in order, rather than read some of them twice once I've finally gotten to the link.
Jan 23, 2010 at 0:39
31.3k 5 5 gold badges 52 52 silver badges 110 110 bronze badges
Before expansion, I see 5 comments, after expansion, I see 7. Thus "2 more" is correct. This was done in Firefox 3.6.
I see no error expanding the comments in IE8.
Jan 23, 2010 at 0:17
Jeff Atwood Jeff Atwood
308k 106 106 gold badges 874 874 silver badges 1235 1235 bronze badges
log in to answer this question.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only