This is great and it makes me wonder why the algorithm isn’t standard for browsers as a built-in feature (also for word processors).
Sure, it takes a bit longer, but LaTeX pretty much instantly produces a PDF nowadays even for long documents. 30 years ago, I scheduled a coffee break for that.