Found the reason in ESPEasy.ino (line 564ff): hardwareInit() is run after the wifi stuff is done.
I use several sonoffs buried in lamps, they are powered through the original (wall)switches. This way the lamps can be used in the normal way. Just the delay between flipping the switch and the lamp coming on is irritating (especially if the wifi connection fails three times until AP mode is firered) and I think it would greatly improve the WifeAcceptanceFactor

Is there anything speaking against moving hardwareInit() a few lines up?