pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Instant QuickBar response on websites without permissions

Open fregante opened this issue 3 years ago • 0 comments

If the content script isn't yet injected, calling the QuickBar via global Chrome shortcut will first wait for the content script to be injected and then it will be able to show it. In MV3, it might also have to wait for the background worker to be loaded first, further delaying the response.

Solution

The sidebar received a similar "instant response" treatment in:

  • https://github.com/pixiebrix/pixiebrix-extension/pull/4099

Immediate feedback is important, but it's not practical to extract the QuickBar code the same way. Perhaps we can just:

  • display a "QuickBar loading" message/notification/overlay as an immediate feedback that the shortcut worked.

Note

I'm marking this a low priority. Feel free to close it.

Demo

Not severe: currently 1 full second on my i9 CPU

https://user-images.githubusercontent.com/1402241/186978063-44d5f7cc-e519-4e70-bfcc-d4b36a966610.mov

fregante avatar Aug 26 '22 19:08 fregante