Did you read the article? That's what the KaTeX project specifically claims to address.

The previous comment was about using KaTeX for pre-rendered equations.