Arduino Webserver SD-card and jquery rebuild for WifiEsp8266 doesnt work

Hello everyone.

I cannot get this webserver to work. I have tried to rewrite the code so that it is possible to use a WifiEsp2866 ESP01 instead of a Ethernet module. But the only thing that happens is a blank webpage in chrome. I get the fault code [WifiEsp] TIMEOUT all the time. I can not see what is missing. Please help if you can and feel for it. I am using an Arduino Mega and SD-module with FAT16 formatted card in it. I have tried ReadWrite (Arduinos) for testing the SD-card and it works fine.

The Code is attached and also the files for the SD-card.

The Code.txt (10.4 KB)

Webserver with jquery SDfiles.zip (1 KB)