MEDIA QUERY ENGINE SYSTEM AND METHOD
A method, computer program product, and computer system for receiving, at a first computing device from a second computing device, an HTTP request, including one or more request parameters, for a CSS file, wherein the CSS file requested includes at least one media query, and wherein the at least one media query includes at least one of a media-type and feature. One or more contextual properties associated with the second computing device are identified at the first computing device from the one or more request parameters. At least a portion of media query extensions associated with the at least one media query is executed at the first computing device based upon, at least in part, the one or more contextual properties, wherein at least the portion of the media query extensions is executed at the first computing device before a response to the HTTP request is sent to the second computing device. The response to the HTTP request is sent to the second computing device.
1 . A computer-implemented method comprising:
receiving, at a first computing device from a second computing device, an HTTP request for a CSS file, including one or more request parameters, wherein the CSS file requested includes at least one media query, and wherein the at least one media query includes at least one of a media-type and feature;
identifying, from the one or more request parameters, at the first computing device, one or more contextual properties associated with the second computing device;
executing at least a portion of media query extensions associated with the at least one media query at the first computing device based upon, at least in part, the one or more contextual properties, wherein at least the portion of the media query extensions is executed at the first computing device before a response to the HTTP request is sent to the second computing device; and
sending the response to the HTTP request to the second computing device.
2 . The computer-implemented method of claim 1 wherein the one or more contextual properties include one or more user-agent properties associated with the second computing device.
3 . The computer-implemented method of claim 1 wherein the one or more contextual properties include one or more connectivity properties associated with the second computing device.
4 . The computer-implemented method of claim 1 wherein the one or more contextual properties include location information associated with the second computing device.
5 . The computer-implemented method of claim 1 wherein the one or more contextual properties include run-time properties associated with the second computing device.
6 . The computer-implemented method of claim 1 further comprising removing non-applicable information from the response to the HTTP request sent to the second computing device, wherein the non-applicable information is removed from a cascading style sheet, and wherein the non-applicable information is identified from the one or more request parameters.
7 . The computer-implemented method of claim 1 wherein the one or more request parameters includes an HTTP request parameter.
8 . A computer program product residing on a computer readable storage medium having a plurality of instructions stored thereon which, when executed by a processor, cause the processor to perform operations comprising:
receiving, at a first computing device from a second computing device, an HTTP request for a CSS file, including one or more request parameters, wherein the CSS file requested includes at least one media query, and wherein the at least one media query includes at least one of a media-type and feature;
identifying, from the one or more request parameters, at the first computing device, one or more contextual properties associated with the second computing device;
executing at least a portion of media query extensions associated with the at least one media query at the first computing device based upon, at least in part, the one or more contextual properties, wherein at least the portion of the media query extensions is executed at the first computing device before a response to the HTTP request is sent to the second computing device; and
sending the response to the HTTP request to the second computing device.
9 . The computer program product of claim 8 wherein the one or more contextual properties include one or more user-agent properties associated with the second computing device.
10 . The computer program product of claim 8 wherein the one or more contextual properties include one or more connectivity properties associated with the second computing device.
11 . The computer program product of claim 8 wherein the one or more contextual properties include location information associated with the second computing device.
12 . The computer program product of claim 8 wherein the one or more contextual properties include run-time properties associated with the second computing device.
13 . The computer program product of claim 8 further comprising removing non-applicable information from the response to the HTTP request sent to the second computing device, wherein the non-applicable information is removed from a cascading style sheet, and wherein the non-applicable information is identified from the one or more request parameters.
14 . The computer program product of claim 8 wherein the one or more request parameters includes an HTTP request parameter.
15 . A computing system including a processor and a memory configured to perform operations comprising:
receiving, at a first computing device from a second computing device, an HTTP request for a CSS file, including one or more request parameters, wherein the CSS file requested includes at least one media query, and wherein the at least one media query includes at least one of a media-type and feature;
identifying, from the one or more request parameters, at the first computing device, one or more contextual properties associated with the second computing device;
executing at least a portion of media query extensions associated with the at least one media query at the first computing device based upon, at least in part, the one or more contextual properties, wherein at least the portion of the media query extensions is executed at the first computing device before a response to the HTTP request is sent to the second computing device; and
sending the response to the HTTP request to the second computing device.
16 . The computing system of claim 15 wherein the one or more contextual properties include one or more user-agent properties associated with the second computing device.
17 . The computing system of claim 15 wherein the one or more contextual properties include one or more connectivity properties associated with the second computing device.
18 . The computing system of claim 15 wherein the one or more contextual properties include location information associated with the second computing device.
19 . The computing system of claim 15 wherein the one or more contextual properties include run-time properties associated with the second computing device.
20 . The computing system of claim 15 further comprising removing non-applicable information from the response to the HTTP request sent to the second computing device, wherein the non-applicable information is removed from a cascading style sheet, and wherein the non-applicable information is identified from the one or more request parameters.
21 . The computing system of claim 15 wherein the one or more request parameters includes an HTTP request parameter.