Hello @jamesosborne,
Thank you for your message.
I can not fully understand why
But, inserting the code directly into head.php only results in a delay of a few tens of milliseconds, not such as several SECs.
For now, it’s clear that the plugin is causing the delay. However, the specific factors contributing to this still need further investigation.