[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

HTML versus XML rendering of webpage

  • From: Jesper Tverskov <jesper.tverskov@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Tue, 9 Aug 2011 15:01:19 +0200

HTML versus XML rendering of webpage
HTML versus XML rendering of webpage

I'm trying to test what it true and false about XML and HTML rendering
of webpages. The conventional wisdom is, that XML rendering is
marginally faster because the parser is smaller but that XML rendering
can give problems in the real world because it is not done
incrementally.

I have made a huge webpage, polyglot XHTML5, to test it. 100.000 lines
and 8-9 MB.

XML
http://www.xmlplease.com/xml/xhtmlhtml/

HTML
http://www.xmlplease.com/xml/xhtmlhtml/xhtmlhtml.html

The surprising result, at least to me, is, that all browsers, IE9,
Firefox, Opera, Crome and Safari use incremental rendering also for
XML. They all show the XML webpage almost instantly but it takes
20-40s to load everything. You can start scrolling right away.

Another less surprising fact: XML rendering for this type of document
is marginally faster than HTML rendering. For this monstrous document
the speed difference even matters in some of the browsers!

Questions. Have I overlooked something? Have the browsers fooled me?
What is the truth about XML and incremental rendering? What is the
difference in speed of XML and HTML rendering? Can anyone confirm my
test results?

I use exactly the same file for XML and HTML rendering. In the first
case a script tests if "application/xhtml+xml" is supported, and adds
"application/xhtml+xml" to the header. In the last case I just load
the webpage without using the script.

I do use "application/xhtml+xml". When I introduce a well-formedness
error in the last line, all browsers render the webpage except that
after 20-40s they show the XML error message instead!

Cheers
Jesper Tverskov
http://www.xmlplease.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.