any idea why I'm getting FIFO full immediately after starting an AP as per my post:
I noticed that too just now - I think it's the big splurge of data the ESP8266 sends out right after it's reset. Most likely it's because of the way data is stored in the UART buffer. UART data is normally packed densely, but if there's a framing/parity error it is also stored in the FIFO, but it takes the space of 4 (sometimes 8) characters - so it doesn't take much of the ESP8266's 76800 baud boot transmission to fill the FIFO up :(
It'll enable proper hardware flow control for the Espruino WiFi and it should start working. It now reliably loads all pages for me even with your indexVERYBAD.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I noticed that too just now - I think it's the big splurge of data the ESP8266 sends out right after it's reset. Most likely it's because of the way data is stored in the UART buffer. UART data is normally packed densely, but if there's a framing/parity error it is also stored in the FIFO, but it takes the space of 4 (sometimes 8) characters - so it doesn't take much of the ESP8266's 76800 baud boot transmission to fill the FIFO up :(
There should now be a WiFi build in http://www.espruino.com/binaries/travis/5fd503c0b6ae7a24f044e23fa3f7a8690ce7fed7
If you then try that and then this slight modification of your code (note I'm not using an AP in my case):
It'll enable proper hardware flow control for the Espruino WiFi and it should start working. It now reliably loads all pages for me even with your indexVERYBAD.