5. An apparatus comprising: a processor; a parser for parsing a web page, wherein the web page contains at least one reference to a style sheet, wherein the style sheet includes style rules to be applied to a web page during parsing; a style selector for, for each referenced style sheet: determining if the referenced style sheet is contained in the first local cache; only if the referenced style sheet is contained in the first local cache, determining if the ruleset is stored in the first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and means for applying the ruleset(s) to the web page to derive a layout for displaying the web page.
5. An apparatus comprising: a processor; a parser for parsing a web page, wherein the web page contains at least one reference to a style sheet, wherein the style sheet includes style rules to be applied to a web page during parsing; a style selector for, for each referenced style sheet: determining if the referenced style sheet is contained in the first local cache; only if the referenced style sheet is contained in the first local cache, determining if the ruleset is stored in the first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and means for applying the ruleset(s) to the web page to derive a layout for displaying the web page. 7. The apparatus of claim 5 , further comprising means for storing the parsed ruleset in the first local cache only if the parsed ruleset is larger than a predetermined threshold.