摘要 |
<p>Disclosed are a method and device for acquiring page resources. The method includes the following steps: a browser client sends to a webpage server a request for acquiring the underlying file of a page to obtain the underlying file of the page; the browser client parses the underlying file of the page, constructs a request for merging webpage resources according to the merge statement content of the parsed underlying file of the page, and sends the request for merging webpage resources to a proxy server; the proxy server parses the request for merging webpage resources, sends a request for acquiring webpage resources to a resource server storing webpage resources so as to acquire the contents of a plurality of webpage resources, and returns the plurality of acquired webpage resources to the browser client. The present invention uses the merge statement content to construct and merge webpage resources, which are merged into one request for sending, and the proxy server requests all contents in parallel and packs and compresses the same, then returns the same. As the flow and request times are reduced, the access speed of the page is increased.</p> |