Some Bits: Nelson's log

Live reloading HTTP servers

Pressing reload in a browser while developing a web page is for chumps! A very popular trick is to serve the site under development with a special server and put a little Javascript in the page to get a reload signal when it should reload. Saves a lot of time, I love live previews.

five-server is the most mature tool for this I could find. It’s written in Node but you can run it as a standalone server unconnected to the code you’re developing. This is a fork of an older live-server that was abandoned. There’s a VS.Code version too that has some integration that looks useful if you’re editing HTML files.

LiveReload is a Python server to do the same thing. It has a Python API so you can integrate it with your own Python code to help while developing a webapp. I hit a confusing problem because of less-than-robust error handling related to my malformed HTML input (the script injection failed) but it seems to work well.

There must be a zillion other tools that do the same thing.