my chrome extension popup opens after a few seconds, it's slow compared to other extensions my chrome extension popup opens after a few seconds, it's slow compared to other extensions google-chrome google-chrome

my chrome extension popup opens after a few seconds, it's slow compared to other extensions


What worked for was to add an empty background page.This is not explained in the Google Documentation (or at least I did not find it), so it was more of a fluke, but seems to work.

The idea is that the plugin is loaded once when you come to the page (so before you even click), as opposed to being reloaded over and over again on each click.

In the manifest add something like:

{  //...  "background": {    "page": "bg.html"  }  //...}