Reduce duplicate lines that report percentage progress




I see a lot of duplicate lines that comes in the form of:
Loading… 1%
Loading… 2%
Loading… 3%
Loading… 4%
Loading… 5%

Which sometimes affects reading if the output file is too long.

Was wondering if there can be an option to enable reduction of such entries.

Some heuristics I can think of: if the previous line is different from the current line only by a number, and if the number is incrementing, remove previous line.