Safari Web Extension second launch time slow

Hello,

I hope somebody knows how to solve this issue. So I built a Safari Web extension using this tutorial: https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari

Basically took other browser build and converted it. Everything works fine except for the application launch start. The first time launch performance is the same like in any other browser but the second launch time always takes more than 1.5sec. At first I though maybe the code inside my extension takes that long to execute but the same performance is with Hello World app.

So what have I noticed compared to other browsers is that when you close popup on other browsers the process gets terminated instantly but on safari it gets terminated only on second launch and then it takes more time compared to first launch.

Is it Safari default behavior or there is a way to fix this issue?
Having the same exact problem, but I'm experiencing ~ 5.0 second lag. Same result with the Hello World example as well.

Any news about this bug?

Safari Web Extension second launch time slow
 
 
Q