79627510

Date: 2025-05-18 13:59:30
Score: 0.5
Natty:
Report link

I was also surprised there is no way to prevent bringing it to front and loosing focus.

My workaround is to have "reusable pages" (1 if your program is simple, or X if you have a X as concurrency). You wait for a created page instance to be marked as available (with a mutex or so) to reuse it.

_Make sure to clear all listeners if you added some, or the storage if you don't want it to be shared. It's a bit more at risk... but for now that's the only viable solution when `headless: true` does not fit the use case._

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Thomas Ramé