Skip to content

V1.0.6

Latest
Compare
Choose a tag to compare
@DeclanE47 DeclanE47 released this 05 Nov 15:29
· 1 commit to main since this release
d5764c1

v1.0.6 - Performance Optimization Release

What's Changed

Key Improvements

  • Consolidated Event Listeners:

    • Combined redundant event listeners (onInstalled and onStartup) to streamline initialization and reduce overhead.
  • Optimized Badge Update Logic:

    • Replaced setInterval with chrome.alarms API for periodic checks, minimizing CPU usage.
    • Refined setTimeout usage in updateBadgeText to ensure smooth countdown updates without excessive resource consumption.
  • Debounced Storage Operations:

    • Added a debounce function to limit chrome.storage updates, reducing the frequency of writes and improving efficiency during rapid changes.
  • Lazy-Loaded Dark Mode Toggle:

    • Loaded dark mode toggle functionality only when accessed, enhancing load performance by deferring initialization until needed.
  • Improved Selector Usage in clickRefreshButton:

    • Reordered selectors in clickRefreshButton based on usage frequency, optimizing DOM queries for faster button detection in complex UIs.
  • Minified and Simplified CSS:

    • Reduced CSS size in popup.html, decreasing load time and improving rendering speed.
  • Reduced Logging in Production:

    • Limited console logging in production code paths, decreasing the resource impact of log generation during high-frequency operations.

These changes provide a faster, more resource-efficient experience, especially in scenarios with frequent refresh intervals.

Full Changelog: v1.0.5...v1.0.6