Whale oil was also used as a raw material in chemical industry for a lot of things where it was replaced by mineral oil too, e.g. in the production of tensides for washing powder, and not at least was also used for the production of margarine, as fat was rare in the early 20th century.
Fun fact in case anyone didn’t already know but the diesel engine was originally powered by whale oil but it’s such a resilient engine that it was later fueled by what was once considered a waste byproduct of gasoline refinement.
There was a railway built to my town which had a big industry supplying ice to the large cities in the south. There was a long conveyor belt built into the lake leading to a large building stuffed with saw dust that kept ice well into the summer. It created a lot of winter work for the locals that dried up after refrigeration was invented. The railway lost its usefulness and also got torn up. And now the bay doesn’t even freeze anymore.