So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By pablopablo
#80139
McChubby007 wrote:I certainly agree on the amount of learning needed. I spent the best part of 2 months in 2017 going from knowing nothing to being able to get html/javascript with ajax working, it really is a nightmare if it's not your day job. Still I guess that's true of C/C++ and everything else too if you're not expert at it.

On the subject of tips & tricks:
1. To speed up throughput of serving files I always gzip them when placing on spiffs. Not only saving space it very much speeds up the transfer given they are mostly text, well unless you have images of course!
2. Common/basic html/css/etc that I use a lot and that doesn't change I convert the gzip to a hex dump (linux xxd command) and then create a byte array stored in code - this is then served instead of a file when getting the request. This means you don't need to copy these files to spiffs for every new board, and I use it mainly for the spiffs file browser related things.


Thanks McChubby...I'm looking forwad to learning!
1. Yeah, I've been gzipping everything 9except image)
2. This is very interesting...will check it out :)