Optimizations: language detection and HTML parsing.