I use MKR 1010 with firmware 1.2.4 / IDE 1.8.10
I want to use the WiFi modul only for debug and as display replacement.
I tested the board with the WiFiWebServer example.
Normaly the maximum cycle time is less then a msec.
But, if the module is sending the small message via WiFi, then, after the sending there is at least one cycle with about 80 msec.
The while loop in the example needs his time, but it is not the reason.
I modified the example with a for loop, then its a bit better.