Resource acquisition method and device
An acquisition method and an acquisition device technology, applied in the field of resource acquisition methods and devices, can solve problems such as untimely acquisition of resources, and achieve the effect of solving the problem of untimely acquisition of resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Embodiment 1 provides a method for resource acquisition, which is used to solve the problem that resources may not be acquired in time by adopting the resource acquisition method in the prior art.
[0024] For the convenience of description, the method provided by the embodiment of the present invention will be introduced below by taking the execution subject of the method as a mobile phone browser as an example.
[0025] The implementation process of this method is as follows figure 1 As shown, it mainly includes the following steps:
[0026] Step 11, obtaining the main document of the web page;
[0027] The webpage master document refers to a document used to describe various resources required for rendering a webpage. A web master document can be composed of document parts. Different document parts are used to describe different resources that need to be obtained, such as main resources or sub-resources. For the convenience of description, in the embodiment of th...
Embodiment 2
[0048] In order to specifically illustrate the actual application process of the method provided in Embodiment 1, Embodiment 2 uses the mobile phone browser to acquire news webpages as an example to introduce a resource acquisition method for accelerating the display speed of webpages.
[0049] The implementation process of this method is as follows figure 2 As shown, it mainly includes the following steps:
[0050] Step 21, the browser of the mobile phone receives an instruction to obtain the news web page.
[0051] In step 22, the mobile phone browser acquires the main document of the news web page in response to the acquiring instruction.
[0052] The news web page master document refers to a document used to describe various resources required for rendering a news web page. A news web master document can be composed of document sections. The document part includes a news main resource document part and a news sub-resource document part. The part of the news main resou...
Embodiment 3
[0073] Embodiment 3 provides a device for acquiring resources, which can quickly display news webpages.
[0074] The specific structural diagram of the device is shown in image 3 As shown, it includes the following functional units:
[0075] A webpage master document acquiring unit 31, configured to acquire the webpage master document;
[0076] The resource acquisition unit 32 is configured to analyze the main webpage document according to the rule that the acquisition operation of the sub-resources does not cause the parsing of the main webpage document to be suspended, and acquire resources according to the analysis result.
[0077] The resource acquisition unit 32 is configured to parse the main webpage document, and when parsing to the document part contained in the main webpage document and used to describe the sub-resources to be obtained, without suspending parsing the main webpage document, Get the subresource.
[0078] The resource acquisition unit 32 is used to a...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com