search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove related section when loading more results

Related items (for the top result) were staying in the DOM when
"load more" was clicked, causing new results to appear below them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 4885accb 34422e3d

+4
+4
site/index.html
··· 749 749 // remove existing "load more" button and related section before appending 750 750 const existingLoadMore = resultsDiv.querySelector('.load-more'); 751 751 if (existingLoadMore) existingLoadMore.remove(); 752 + const existingRelated = resultsDiv.querySelector('.related-section'); 753 + if (existingRelated) existingRelated.remove(); 754 + const existingRelatedLoading = resultsDiv.querySelector('.related-loading'); 755 + if (existingRelatedLoading) existingRelatedLoading.remove(); 752 756 resultsDiv.insertAdjacentHTML('beforeend', html); 753 757 } else { 754 758 resultsDiv.innerHTML = html;