When you are building large stuff, and the build takes a while, you print the current page, and remember the maximum. That way, you know where you are.
I modified that a little bit to show percentages; attached is both the CoffeeScript (which is what I prefer to write) and the JavaScript. It involves a lot of dancing with the quirks of the system.
If console.log didn’t put the new-line automatically, it would be a much better situation, with a real progress tracker, rather than a running print-out of the current completed percentage. I think this is as close as anybody can get to a working progress metre.
Prove me weak!
I modified that a little bit to show percentages; attached is both the CoffeeScript (which is what I prefer to write) and the JavaScript. It involves a lot of dancing with the quirks of the system.
If console.log didn’t put the new-line automatically, it would be a much better situation, with a real progress tracker, rather than a running print-out of the current completed percentage. I think this is as close as anybody can get to a working progress metre.
Prove me weak!