Huge latency added between .js and extension/swift

We're seeing a delay of between 50mS to 150mS when just sending a short "ping-pong" message between 'inject.js -> extension code (swift) -> inject.js'

what might be wrong? are there any ways to get a more reasonable IPC communication channel between the javascript and swift side. I would like to achive <= 1mS delay roundtrip.

any tips? is native messaging vs postMessage preferred?

Huge latency added between .js and extension/swift
 
 
Q