3 ms·
Are you sure that parsing HTML is the step that is the biggest issue for your phone, and not e.g. rendering or JS execution? (It's certainly possible, parsing H
by detaro 11y ago
Are you sure that parsing HTML is the step that is the biggest issue for your phone, and not e.g. rendering or JS execution? (It's certainly possible, parsing HTML with bad parsers or pathological content can take surprisingly long, but it's generally the last thing I'd expect as a reason for a browser to be slow)
- jokoon 11y agoI linked a computerphile video explaining how HTML ended up as a loose defined language, meaning browsers will often struggle to render something. I think it's part of the whole thing, HTML is too permissive, and it also will make rendering slower. If HTML was better defined from the ground up, rendering would also be faster. The sites I visited were not really JS intensive. JS is also a problem for webpages. Anyway I hate HTML/CSS/JS in general for all those reasons. Parsing text is already painful, why do it each time you visit a webpage?