Style consolidation and optimization with strong ownership
First 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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
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. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
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. - View Dependent Claims (18, 19, 20)
-
Specification