fhg
This commit is contained in:
@@ -745,7 +745,8 @@ class CommentSystem {
|
||||
// Render skeleton (Result: Layout visible immediately)
|
||||
// Skip when preserveScroll=true (tab re-focus refresh): the user already sees comments,
|
||||
// so wiping the DOM causes the browser to lose the #c anchor element and auto-scroll to top.
|
||||
if (!scrollToId && !preserveScroll) {
|
||||
// Only render skeleton for logged-in users to avoid flashing "Login to comment" before comments/permissions load.
|
||||
if (!scrollToId && !preserveScroll && this.user) {
|
||||
this.render([], this.user, initialIsSubscribed);
|
||||
this.restoreState(state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user