YouTube Enhancer (Reveal Country Flag)

Reveal Country Flag.

< Feedback on YouTube Enhancer (Reveal Country Flag)

Review: Good - script works

§
Posted: 2025-04-30

After I installed this script, when I clicked on "Subscribe", it took 10 to 15 seconds for the entire video list to be fully displayed. After I disabled this script, everything became normal again, taking approximately 5 to 8 seconds.

exyezedAuthor
§
Posted: 2025-04-30

Hi, thanks for reporting this!

You're absolutely right — the original version of the script was causing performance issues, especially noticeable when loading the "Subscriptions" tab on YouTube. The slowdown happened because the script was monitoring the entire page and triggering repeated flag-fetching operations too frequently, which resulted in additional HTTP requests and DOM manipulation overhead.

This has now been fixed.
The script has been optimized with the following improvements:

  • Debounced DOM updates to reduce the frequency of flag injection.
  • Limited the observer scope to only monitor relevant parts of the page instead of the whole document.
  • Improved async handling to avoid redundant or parallel data fetching for the same elements.
  • Caching logic remains in place to reduce unnecessary API calls.

With these updates, page responsiveness should now remain smooth — including when navigating the Subscriptions tab.

Feel free to reinstall or update the script to the latest version (v1.7), and let me know if you run into any other issues!

§
Posted: 2025-04-30

I've installed the new version, and it's working perfectly now. Thank you for your script

Post reply

Sign in to post a reply.

长期地址
遇到问题?请前往 GitHub 提 Issues。