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

Inactive Publication Date: 2015-08-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides a page loading method and device, to at least solve the technical problem of slow loading speed of page elements in the visible area or set display area in the existing page loading scheme

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for loading pages
  • Method and apparatus for loading pages
  • Method and apparatus for loading pages

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and apparatus for loading pages. The method comprises acquiring a page file corresponding to a page to be displayed, loading a first page element and a second page element according to the page file, and outputting the loaded page to be displayed. The page file is used for indicating page elements to be loaded in the page to be displayed. The priority of the first page element is higher than that of the second page element, the first page element represents a page element to be loaded in a visual area or a setting display area, and the second page element represents a page element to be loaded out of the visual area or the setting display area. By adopting the method and apparatus for loading the pages, the technical issue that the loading speed of page element in a visual area or a setting display area in the present page loading scheme is low is solved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a page loading method and device. Background technique [0002] In the prior art, page loading can usually be completed by loading page elements in the page to be displayed, for example, the page frame of the page to be displayed can be obtained first, and then the page elements are loaded in the page frame to complete the page loading . [0003] Among them, as a feasible solution, the loading of page elements in the page to be displayed can be completed one by one, wherein, if there are N page elements to be loaded, the N page elements to be loaded will be loaded according to the preset The logic of the design is loaded into the page to be displayed one by one. This method can also be regarded as a single-threaded processing method. [0004] As another feasible solution, the above-mentioned N page elements can also be loaded simultaneously in a multi-threaded manner, wherein a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 马振强周蔚涂强
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products