# US 9,519,629 B1 · Style consolidation and optimization with strong ownership

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,519,629 B1
- Document ID: US9519629B1
- Status: Granted
- Kind: B1
- Application number: 13/567,713
- Filed: 2012-08-06
- Granted: 2016-12-13
- Earliest claimed: 2012-08-06
- Assignees: Amazon Technologies, Inc.
- Applicants: Brian J. Tajuddin
- Inventors: Brian J. Tajuddin
- Web page: https://patentgrep.com/patent/US9519629B1

## CPC

- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are described for optimizing and consolidating style files for formatted pages of data such as web pages. Styles may be consolidated through the identification of common rules shared by multiple styles, and the common rules may be incorporated into a common style that has the style mappings and/or namespace of the source styles. Consolidation may enable minimal style information to be sent in response to a page request, the style information corresponding to a requesting browser type and/or version. Embodiments may also provide for global constants in style rules, with global constant resolution performed dynamically at runtime. Embodiments may also support file splitting for optimal browser performance, with the style file splitting performed dynamically at runtime.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving an indication of a plurality of styles associated with one or more pages, individual styles of the plurality of styles including a style name and one or more rules, and individual styles of the plurality of styles defined in a cascading style sheet (CSS) file;
analyzing the plurality of styles to identify at least one common rule shared by at least some of the plurality of styles;
combining the at least one common rule shared by at least some of the plurality of styles to define a common style that includes the at least one common rule, the common style associated with a browser type;
associating the common style that includes the at least one common rule and is associated with the browser type with an owner of the common style that is at least one of an individual, an entity, or an organization responsible for the common style; and
dynamically providing the common style that includes the at least one common rule and is associated with the browser type in response to a request for at least one of the one or more pages, the request being received from a browser of the browser type.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one common rule includes at least one global value to be used throughout the one or more pages.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one global value includes a global reference to at least one of an image, a font, or a color.

### Claim 4 (depends on 1)

The method of claim 1, wherein individual rules of the one or more rules includes a name and a value associated with the name.

### Claim 5 (depends on 1)

The method of claim 1, wherein dynamically providing the common style includes dynamically resolving the reference.

### Claim 6 (depends on 1)

The method of claim 1, wherein the common style is defined in a class of the cascading style sheet file.

### Claim 7 (depends on 1)

The method of claim 1, wherein the common style is associated with a style mapping that is particular to at least one of the browser type, a geographical location, a device type, a language, an application, an application type, or a web site.

### Claim 8 (depends on 1)

The method of claim 1, wherein dynamically providing the common style in response to the request includes splitting the common style into a number of files based on the browser type.

### Claim 9 (depends on 1)

The method of claim 1, wherein analyzing the plurality of styles comprises parsing a text of one or more cascading style sheet files to identify at least partial matches in the style name and one or more rules.

### Claim 10

A system comprising:
one or more memories;
one or more hardware processors in communication with the one or more memories; and
an optimization component stored in the one or more memories and executed by the at least one processor to:
analyze a plurality of styles associated with one or more pages, to identify at least one common rule shared by at least some of the plurality of styles, the plurality of styles defined in a cascading style sheet file and including one or more rules;
combine the at least one common rule shared by at least some of the plurality of styles to define a common style that includes the at least one common rule;
associate the common style that includes the at least one common rule with an owner of the common style that is at least one of an individual, an entity, or an organization responsible for the common style; and
dynamically provide the common style that includes the at least one common rule in response to a request for at least one of the one or more pages.

### Claim 11 (depends on 10)

The system of claim 10, wherein the common style is included in a namespace that is associated with an owner, the owner being at least one of an individual, an entity, or an organization that is at least partly responsible for the namespace.

### Claim 12 (depends on 10)

The system of claim 10, wherein the common style is defined as a class in a cascading style sheet (CSS).

### Claim 13 (depends on 10)

The system of claim 10, wherein the common style is associated with a style mapping that is particular to at least one of a browser type, a geographical location, a device type, a language, an application, an application type, or a web site.

### Claim 14 (depends on 10)

The system of claim 10, wherein:
the common style is associated with a style mapping that is particular to a browser type;
the request is received from a browser of the browser type; and
dynamically providing the common style includes splitting the common style into a number of files based on the browser type.

### Claim 15 (depends on 10)

The system of claim 10, wherein the at least one common rule includes at least one global value to be used throughout the one or more pages, the at least one global value being a reference to at least one of an image, a font, or a color.

### Claim 16 (depends on 15)

The system of claim 15, wherein dynamically providing the common style includes dynamically resolving the reference.

### Claim 17

One or more computer-readable storage media storing instructions that, when executed, instruct at least one processor to perform actions comprising:
analyzing a plurality of styles associated with one or more pages, to identify at least one common rule shared by at least some of the plurality of styles, the plurality of styles including one or more rules and defined in a cascading style sheet file;
combining the at least one common rule shared by at least some of the plurality of styles to define a common style that includes the at least one common rule, the common style associated with a browser type;
associate the common style that includes the at least one common rule with an owner of the common style that is at least one of an individual, an entity, or an organization responsible for the common style; and
dynamically providing the common style that includes the at least one common rule and is associated with the browser type in response to a request for at least one of the one or more pages, the request being received from a browser of the browser type.

### Claim 18 (depends on 17)

The one or more computer-readable storage media of claim 17, wherein dynamically providing the common style in response to the request includes splitting the common style into a number of files based on the browser type.

### Claim 19 (depends on 17)

The one or more computer-readable storage media of claim 17, wherein the common style is included in a namespace that is associated with an owner, the owner being at least one of an individual, an entity, or an organization that is at least partly responsible for the namespace.

### Claim 20 (depends on 17)

The one or more computer-readable storage media of claim 17, wherein the at least one common rule includes at least one global value to be used throughout the one or more pages, the at least one global value being a reference to at least one of an image, a font, or a color, and wherein dynamically providing the common style includes dynamically resolving the reference.
