Patent ID: 8145222

Claim:
A method for downloading data from a content source to a mobile communication device, the mobile communication device being configured for connecting to at least cellular data networks and wireless local area networks (WLANs), the method comprising: receiving a request to download an HTML (HyperText Markup Language) document; determining whether the HTML document includes any embedded objects; if the HTML document includes an embedded object: determining whether the size of the embedded object is greater than or equal to a predetermined threshold; selecting a communication medium for downloading the embedded object in accordance with whether the size of the embedded object is greater than or equal to the predetermined threshold; and downloading the embedded object to the mobile communication device using the selected communication medium, wherein the determining whether the size of the embedded object is greater than or equal to the predetermined threshold comprises: determining by a proxy server for accessing the HTML document from the content source the size of the embedded object; generating by the proxy server a modified HTML document including data length attribute in an object tag, the data length attribute providing the size of the embedded object in the HTML document; transmitting the modified HTML document to the mobile communication device; receiving the modified HTML document on the mobile communication device; and determining on the mobile communication device if the data length attribute is greater than or equal to the predetermined threshold.