1. A method for improving compression of a web document, wherein the web document comprises a plurality of elements each referencing at least one style attribute, comprising: collecting a plurality of style attributes referenced by the plurality of elements of the web document into a central style repository; replacing each reference by each of the plurality of elements to a particular at least one of the plurality of style attributes with a separate class attribute assigned in the central style repository to the particular at least one of the plurality of style attributes; compressing the plurality of style attributes in the central style repository into a minimized selection of class attributes each referencing at least one of the plurality of style attributes; and updating each of the plurality of elements of the web document to reference one or more of the minimized selection of class attributes, such that the web document is reorganized and compressed in length.