4 ms·
> Browsers could implement the same line breaking algorithm as used in TeX, but have decided not to for performance reasons. This is an odd reason — TeX was dev
by dghf 12y ago
> Browsers could implement the same line breaking algorithm as used in TeX, but have decided not to for performance reasons. This is an odd reason — TeX was developed and runs on computers much less powerful than those commonly used in mobile phones.
Yes, but not at a speed that many would find acceptable for formatting a web page, even on a modern computer.
Nor need it be: you only have to generate your (La)TeX document while creating or editing it; a couple of seconds for a short document is thus tolerable. Whereas a web page has to be formatted by every visitor on every visit -- maybe several times if they resize their browser. It needs to be more or less instant.
- jacobolus 12y agoThere’s clearly a trade-off here. Personally I would love to have a page that I’ll spend 30 minutes reading take 1 second longer to render in return for dramatically better paragraph composition.
- dghf 12y agoFair point. It sounds like the ideal would be a browser setting: fast-and-dirty justification for the impatient vs TeX-style line-breaking for aesthetes.