[PR #103] [MERGED] Fix/page title memory leak #146

Closed
opened 2026-03-04 00:04:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/YouG-o/YouTube-No-Translation/pull/103
Author: @YouG-o
Created: 9/16/2025
Status: Merged
Merged: 9/16/2025
Merged by: @YouG-o

Base: mainHead: fix/PageTitleMemoryLeak


📝 Commits (5)

  • 7407677 (temporary)fix: add debounce to page title updates to reduce risk of memory leaks
  • e88b7dd feat: added a debounce to main title observer to prevent potential infinites DOM modifications & high CPU usage
  • 989d1f0 refactor: replace throttle with debounce for title refresh to prevent missing last mutations
  • 4f4232f refactor: replace observer throttles with debounced timers to ensure last mutations are processed
  • 8e185b5 Merge branch 'main' into fix/PageTitleMemoryLeak

📊 Changes

4 files changed (+297 additions, -210 deletions)

View changed files

📝 src/content/observers.ts (+63 -29)
📝 src/content/titles/browsingTitles.ts (+99 -88)
📝 src/content/titles/mainTitle.ts (+47 -18)
📝 src/content/titles/shortsTitles.ts (+88 -75)

📄 Description

Added a debounce to page title mutation observer


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/YouG-o/YouTube-No-Translation/pull/103 **Author:** [@YouG-o](https://github.com/YouG-o) **Created:** 9/16/2025 **Status:** ✅ Merged **Merged:** 9/16/2025 **Merged by:** [@YouG-o](https://github.com/YouG-o) **Base:** `main` ← **Head:** `fix/PageTitleMemoryLeak` --- ### 📝 Commits (5) - [`7407677`](https://github.com/YouG-o/YouTube-No-Translation/commit/740767722424092761b6d81bf57a7f7153429c2f) (temporary)fix: add debounce to page title updates to reduce risk of memory leaks - [`e88b7dd`](https://github.com/YouG-o/YouTube-No-Translation/commit/e88b7dda9d83d1bca05a9b02db42f478ce6e56b8) feat: added a debounce to main title observer to prevent potential infinites DOM modifications & high CPU usage - [`989d1f0`](https://github.com/YouG-o/YouTube-No-Translation/commit/989d1f0f409ff761596ab4f4130c31c8cde27984) refactor: replace throttle with debounce for title refresh to prevent missing last mutations - [`4f4232f`](https://github.com/YouG-o/YouTube-No-Translation/commit/4f4232f1713f90bd41ffaade502840f1b484bc77) refactor: replace observer throttles with debounced timers to ensure last mutations are processed - [`8e185b5`](https://github.com/YouG-o/YouTube-No-Translation/commit/8e185b5b9ff52bba7d744025b83f2b46f6d0f54e) Merge branch 'main' into fix/PageTitleMemoryLeak ### 📊 Changes **4 files changed** (+297 additions, -210 deletions) <details> <summary>View changed files</summary> 📝 `src/content/observers.ts` (+63 -29) 📝 `src/content/titles/browsingTitles.ts` (+99 -88) 📝 `src/content/titles/mainTitle.ts` (+47 -18) 📝 `src/content/titles/shortsTitles.ts` (+88 -75) </details> ### 📄 Description Added a debounce to page title mutation observer --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 00:04:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/YouTube-No-Translation#146
No description provided.