Optimization for rendering web pages
In one embodiment, there is provided a method for rendering a web page. The method comprises parsing a Hypertext Markup Language (HTML) document for a web page to generate a Document Object Model (DOM) tree. The method further comprises rendering elements in the DOM tree in a higher-to-lower sequence based on their z-index attributes from a style sheet corresponding to the HTML document. The method further comprises skipping rendering for an element with a lower z-index attribute than an element with a higher z-index attribute if the element with the lower z-index attribute is below the element with the higher z-index attribute and would not be seen by a user viewing the web page.
International Business Machines Corporation
G G G G G G G
G06F G06F G06F G06F G06F G06F G06F
inventional inventional inventional inventional inventional inventional inventional
Xiang
Zhou