pablopablo wrote:rudy wrote:Code to have the browser not send additional requests, until the current ones are in, is what I planned to do to compensate for this.
Would you be able to advise me on how I can go about this? As in should I be trying to code this in hte .ino sketch or the htm?
I have not done this yet. I had done some playing around with the ESP8266 as a general web server. Html code, some css for styling. And while it worked it had a bunch of hiccups because of the number of files I was trying to access.
Browsers take a generic page and fire off as many requests as possible. And the ESP can't handle that. After I did some digging I found that there are ways to make web pages smarter. Not to load images below the ones that are currently in the viewable screen area. This is pretty important when a web page is loading with a limited bandwidth connection.
For example, viewing a page with a cell phone. There is no good reason to load pictures at the bottom of a page until the top ones have been loaded. And the person viewing it might not want to go further, after they have seen what was on the top of the page, and decided that it wasn't what they were interested in.
Do a search for Lazy Loaders. That is a term for code that delays loading information because it may really not be needed.
I put on hold doing fancy web page stuff as it looked like it was going to take a lot of time to learn what I needed to know, html, css, javascript. I decided to get hardware in place before I worry about the presentation.
EDIT:
With normal web development html, css, javascript, are all separate files, for a lot of good reasons. But with the limited connection capability of the ESP8266 it makes more sense to integrate everything into one file, if there are other requests that need to be made. Like for images.
If you know that there will be reliable internet, then having non changing files served from other servers. But in my case I want it all on the ESP as I want it to work even without internet.