[wp-trac] [WordPress Trac] #33627: In-Context Comment Moderation

WordPress Trac noreply at wordpress.org
Thu Oct 1 14:27:26 UTC 2015


#33627: In-Context Comment Moderation
-------------------------------------+-----------------------------
 Reporter:  chriscct7                |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Comments                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch ux-feedback  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by StephenCronin):

 Replying to [comment:6 quicoto]:
 > Replying to [comment:5 Ipstenu]:
 > > The problem with Stephen's plugin is that it 'double loads' the
 content, which means for anyone with wordy commenters, you could make the
 comments page very slow :/ (I have similar code I've used for a while, but
 it has the exact same issue)
 > >
 > > Maybe a link that pops up on click?
 >
 > Not sure if it's this what you mean but can't just that content be
 loaded via Ajax after clicking "See parent comment content"?
 >
 > That way it wouldn't add extra weight to the page, the extra content
 would be served on demand.

 Loading them via Ajax would work. Though of course it would be slightly
 slower to load each parent comment via Ajax than if it were already on the
 page. I can see that for some sites loading it via Ajax would be better
 (if heavy comments), while for others loading it on the page would be
 better (if clicking to see every parent).

 Typically there are only 20 comments shown on the comment moderation
 screen (although this can be changed) and only the direct parent comment
 is loaded when the Show Parent link is clicked (in my plugin at least). In
 most cases it would be loading 40 comments rather than 20 (assuming all
 comments had a parent).

 That may be too heavy for some sites with long comments or with the
 default number of comments increased, but most can probably handle it.

 But core would need to cater for the lowest common denominator, so Ajax is
 probably safer. It's worth noting that Chris's suggestion when creating
 this ticket was to bring them in via Ajax.

 If we could fetch all the parent comments in one HTTP request, we could
 'lazy load' them after the initial page load. Best of both worlds?
 Wouldn't be so keen on that if it took 20 HTTP requests though.

 What do you think?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33627#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list