Method and apparatus for loading pages
A technology for page loading and displaying pages, applied in the computer field, can solve problems such as slow loading speed, and achieve the effect of solving slow loading speed and shortening loading time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] According to an embodiment of the present invention, a page loading method is provided, such as figure 1 As shown, the method includes:
[0025] S102: Obtain a page file corresponding to the page to be displayed, wherein the page file is used to indicate page elements to be loaded in the page to be displayed;
[0026] S104: Load the first page element and the second page element in the page to be displayed according to the page file, and the priority of loading the first page element is higher than the priority of loading the second page element, wherein the first page element represents a visual The page element to be loaded in the area or the set display area, and the second page element represents the page element to be loaded outside the visible area or the set display area;
[0027] S106: Outputting the loaded page to be displayed.
[0028] It should be understood that one of the problems to be solved by the present invention is to provide a method to facilitate ...
Embodiment approach
[0050] However, this is not the only implementation mode of the present invention. For example, in some embodiments of the present invention, instead of allocating resources in advance, the same The same resource applied by the two during the time interval is preferentially assigned to the first loading task, thereby achieving the effect of improving resource utilization.
[0051] In addition, in order to further increase the loading speed of the pages to be displayed in the visible area or set the display area, the embodiment of the present invention also provides a feasible implementation manner, wherein step S302 may include:
[0052] S2: Determine whether the resources requested by the first loading task are occupied by the second loading task, and if so, determine that there is competition for the requested resources between the first loading task and the second loading task;
[0053] Wherein, step S304 may include:
[0054] S4: Reallocate the requested resources to the ...
Embodiment 2
[0100] According to an embodiment of the present invention, a page loading device for implementing the above page loading method is also provided, such as Figure 8 As shown, the device includes:
[0101] 1) The first acquiring unit 802 is configured to acquire a page file corresponding to the page to be displayed, wherein the page file is used to indicate the page element to be loaded in the page to be displayed;
[0102] 2) The loading unit 804 is configured to load the first page element and the second page element in the page to be displayed according to the page file, and the priority of loading the first page element is higher than that of loading the second page element, wherein, the first The first page element represents the page element to be loaded within the visible area or the set display area, and the second page element represents the page element to be loaded outside the visible area or the set display area;
[0103] 3) An output unit 806, configured to output...
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