Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
MarkMed817yBoth pages have same content, even semantic.xhtml has four more paragraph. Both files are very light, just look at Size column.
I had to prove that HTML5+XHTML is faster than non-semantic HTML -
@MarkMed I don't think anybody on this planet will care about 3ms difference for a document. If you scale it up by, say, 10 or 100, and the difference persists, and is consistent, on all major browsers and platforms, then you have a case.
-
MarkMed817y@AndSoWeCode the difference is half time taked. semantic.xhtml took 2ms and nonsemantic.html took twice the semantic.xhtml time. If both documents were more heavy, semantic.xhtml would load in 500ms and nonsemantic.html would load in 1000ms.
-
@MarkMed when it comes to 2-5 milliseconds, don't trust the readings. They don't scale well. It could be that you're right, and there is a 100% overhead. It could also be that this is a fluke (are the results consistent?), or that it has just a slightly longer warm-up phase that doesn't scale at all with document size (is the difference x and 2x, or is it x and x+y where y is constant? Or is it something else entirely?)
Bottom line:
If N is document size, and T0(N0) = 2 * T1(N0) (times for different methods depending on the same document size), it takes a TON of assumptions to conclude that the same is true for T0(N) = 2 * T1(N) for any N value. -
I remember when XHTML was the future. Remember many a day using XHTML strict and getting things to validate. Didn't even know you could use it with HTML5.
Related Rants
Now u can see the difference.
I had to prove why HTML5+XHTML structure is better than non-semantic HTML structure.
Here is the difference.
rant
semantic markup
html
xhtml
html5
web development