I done (another) extension and this time I got it a problem.
The extension is very simple https://github.com/Mte90/Gulpease, the prupose is to show an index of the text quality based on the Gulpease algorithm in the content menu of a textarea.
Actually that value is shown only at the second time that the right menu is showed.
I think that is because the code that I exceute to let communicate the content script with the background happen before the show of the menu, so on the second is showed because was updated before.
I want to use the contextmenu label to show an info on right click in that way I can avoid to inject stuff in the pages that can create design issue but seems that run that code before the opening is like impossible.
Someone has suggestions?