Skip to content

Cache provider favicons instead of re-fetching on every palette keystroke #3

@ajot

Description

@ajot

The command palette rebuilds all <img> tags on every keystroke, each pointing to google.com/s2/favicons?domain=.... The browser caches these so it's not making network requests each time, but it's still creating N new DOM elements per keystroke.

Options:

  • Pre-fetch and cache favicon URLs at startup into a Map
  • Debounce the palette re-render (also helps general performance)
  • Use CSS background images instead of <img> tags so the DOM churn is lower

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions