Looking to improve my website's readability, I want to implement client-side hyphenation using JavaScript for longer texts. Although CSS3 hyphenation is preferred, it's not always available.
So far, I've been using Hyphenator.js, which, while effective, is quite bulky (my optimized English build alone is 106 KB) and slow. The size and speed issues have me considering abandoning hyphenation altogether, as it's more of a luxury feature.
Recently, I stumbled upon what appears to be a more efficient solution: Hypher. The compact size of Hypher in comparison to Hyphenator.js has me intrigued. I'm curious if anyone can shed light on this.
Does Hypher perform just as well as Hyphenator.js? Is there a reason to stick with one over the other? The Hypher readme contains a link to Hyphenator.js towards the end, but it doesn't clarify the connection between the two projects.
Could anyone share their thoughts on the most effective way to implement client-side hyphenation?