Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for preloading images, electronic equipment and storage medium

A technology of preloading and pictures, applied in the computer field, can solve the problems of resource waste, pictures not being used by users, and taking a long time, so as to avoid the effect of resource waste

Inactive Publication Date: 2018-09-14
沈文策
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventor found in the process of implementing the present invention that there are at least the following problems in the prior art: when the terminal preloads all the pictures in the page, there may be a problem that the size of the pictures is too large and it takes a long time, which may cause The current visible area of ​​the page is blank; and, some pictures on the page may not be used by users, preloading all pictures on the page will cause a waste of resources

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 device for preloading images, electronic equipment and storage medium
  • Method and device for preloading images, electronic equipment and storage medium
  • Method and device for preloading images, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0044] The execution subject of this embodiment of the present invention may be a terminal. The method for preloading pictures provided by the embodiment of the present invention is firstly introduced below.

[0045] A method for preloading pictures provided by an embodiment of the present invention, such as figure 1 As shown, the method may include the following steps:

[0046] S110: Determine whether the current page is in an idle state; if it is in an idle state, perform S120; if it is in a non-idle state, then end.

[0047] In the embodiment of the present invention, the terminal can determine whether the current page is in an idle state by detecting whether each picture in the visible area of ​​the current page has been downloaded and displayed. If the pictures in the visible area of ​​the curren...

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 device for preloading images, electronic equipment and a storage medium, and belongs to the field of computers. The method comprises the steps of judging whether acurrent page is in the idle state or not, if the current page is in the idle state, judging whether the size of an image which is not downloaded in the current page is larger than a preset threshold value or not, if the size of the image which is not downloaded in the current page is large than the preset threshold value, downloading the image, and storing the image into a cache. By adopting the method, the images are preloaded when the page is in the idle state, in other words, the image is preloaded when the image in a visual region in the current page is downloaded and displayed, and therefore the phenomenon that blank display in the visual region in the current page is caused when excessive images are downloaded at the same time can be avoided; in addition, considering that the largerimages need longer downloading time than smaller images, the size of the preloaded images are set as the images with the size larger than the preset threshold value, and resource waste caused by preloading all the images is avoided.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method, device, electronic equipment and storage medium for preloading pictures. Background technique [0002] With the development of network technology, users can obtain information on the network through terminals. For example, a user may obtain information on the network through a browser in a terminal, and in this case, the information is usually displayed in the form of a page. [0003] When the page contains many pictures, the terminal generally needs to preload all the pictures on the page, that is, first download all the pictures and store them in the cache, and then obtain the pictures from the cache and display the pictures on the page. [0004] However, the inventor found in the process of implementing the present invention that there are at least the following problems in the prior art: when the terminal preloads all the pictures in the page, there may be a prob...

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
IPC IPC(8): G06F17/30G06F9/445
CPCG06F9/44521
Inventor 沈文策
Owner 沈文策