SimpleWiFiServer on Nano ESP32 works, but really SLOW

New Arduino Nano ESP32 connected to laptop running Windows 11.
The example sketch at Files/Examples/WiFi/SimpleWiFiServer works but takes 25 seconds to respond to commands such as http://192.168.1.16/H.
(Note: I have changed Pin 5 to LED_BUILTIN because the LED pin is 13)
I have tried adding WiFi.setSleep(false) to the sketch. It didn't help.
Why running so slow??

I found out that if I disconnect the Nano ESP32 from the PC and power it from another power source then it responds instantaneously to commands. I’d like to know why please

Hello @dabbo, I assume that when you tried on the PC, the IDE was running. Was the serial monitor window open? I'm curious if you can try some combinations with or without serial, IDE, etc and see if that makes any difference. Thanks!

Might be related to this issue in the upstream ESP32 core: