Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.
This repository was archived by the owner on May 20, 2020. It is now read-only.

Performance improvement for content script when loading hundreds of snippets  #296

@GaurangTandon

Description

@GaurangTandon

Content script should query the background page every time user presses a hotkey (while also cancelling the event).

If the hotkey is valid, insert the snippet as before. If the hotkey is invalid, use chrome.debugger to dispatch the hotkey event using the key and code properties as usual. (link)

This will avoid the problem of every tab getting a list of hundreds of snippets and loading it in the tab.

So, the whole thing is almost done in branch performance-improvement. Now, we first need to upgrade the hotkey storage in #140 for v3.6.2 upgrade, and then push this upgrade out in v3.6.3. Reason being chrome debugger doesn't support keyCode but rather only key and code.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions