Skip to content

improve-shortcut-help - Optimize feature - #8797

Merged
fregante merged 10 commits into
refined-github:mainfrom
SunsetTechuila:memo-shortc
Jan 3, 2026
Merged

fregante merged 10 commits into
refined-github:mainfrom
SunsetTechuila:memo-shortc

Conversation

@SunsetTechuila

@SunsetTechuila SunsetTechuila commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

Optimizes the feature by:

  • unloading it if no shortcuts are available on the current page
  • memoizing the resulting shortcuts element, which doesn't change until the feature is re-run

A follow-up to #8775

Test URLs

Screenshot

@SunsetTechuila

SunsetTechuila commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor Author

Maybe we should memoize entire contents of this dialog since GitHub doesn't cache the shortcut list. Having to look at the loading spinner every time I open the dialog is killing me. What do you think?

@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

Maybe we should memoize entire contents of this dialog since GitHub doesn't cache the shortcut list.

Implemented

@SunsetTechuila SunsetTechuila changed the title improve-shortcut-help - Optimize improve-shortcut-help - Speed up dialog display Nov 27, 2025
@fregante

Copy link
Copy Markdown
Member

If it works, no need to spend time on it

@fregante fregante closed this Dec 15, 2025
@SunsetTechuila

SunsetTechuila commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor Author

2a3521e is a small change. Are you not going to accept it either?

@fregante

Copy link
Copy Markdown
Member

Your last comment said something wasn't working and was asking me for help. I don't have time to optimize things right now

@SunsetTechuila

SunsetTechuila commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor Author

If you reopen this PR, I'll revert it back to 2a3521e, which is ready to be reviewed and merged

@fregante fregante reopened this Dec 16, 2025
@SunsetTechuila SunsetTechuila changed the title improve-shortcut-help - Speed up dialog display improve-shortcut-help - Optimize feature Dec 16, 2025
@fregante
fregante merged commit fe6420a into refined-github:main Jan 3, 2026
@SunsetTechuila
SunsetTechuila deleted the memo-shortc branch January 3, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants