CN112099873B - Application program home page loading method, device, equipment and storage medium - Google Patents

Application program home page loading method, device, equipment and storage medium Download PDF

Info

Publication number
CN112099873B
CN112099873B CN202010965100.3A CN202010965100A CN112099873B CN 112099873 B CN112099873 B CN 112099873B CN 202010965100 A CN202010965100 A CN 202010965100A CN 112099873 B CN112099873 B CN 112099873B
Authority
CN
China
Prior art keywords
page picture
picture
home page
resolution
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010965100.3A
Other languages
Chinese (zh)
Other versions
CN112099873A (en
Inventor
许英俊
曾衍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202010965100.3A priority Critical patent/CN112099873B/en
Publication of CN112099873A publication Critical patent/CN112099873A/en
Application granted granted Critical
Publication of CN112099873B publication Critical patent/CN112099873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses an application program home page loading method, device, equipment and storage medium, and belongs to the technical field of Internet. The method comprises the following steps: receiving a first page picture downloading request aiming at a target application program, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of the client and resolution of the display screen of the client; if the resolution is smaller than a preset resolution threshold, compressing the standard front page picture of the target application program according to a preset compression ratio, cutting the compressed standard front page picture according to the size of the front page picture, and acquiring the target front page picture based on cutting; and sending the target home page picture to the client, wherein the target home page picture is used for being displayed by the client after being switched to the home page by the screen opening interface. According to the technical scheme provided by the embodiment of the application program home page loading method and device, the loading speed of the application program home page can be guaranteed under the condition that the network environment is poor.

Description

Application program home page loading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for loading an application program home page.
Background
In practical applications, the home page of the application program often includes a home page picture, for example, the home page of the live application program often includes preview pictures of a plurality of different live rooms.
In the related art, the server may store a top page picture of the application program, and when the top page of the application program is displayed, the client may request the top page picture of the top page of the application program from the server, and the server may send the top page picture of the application program stored in the server to the client for the client to display.
However, in many cases, the network environment in which the clients and servers are located may be poor, e.g., in some countries where the network infrastructure is underdeveloped, the network environment in which the clients and servers are located is generally poor. In this case, if the application program includes more top page pictures, the loading speed of the top page of the application program is slower. At present, how to ensure the loading speed of the home page of an application program under the condition of poor network environment is a problem to be solved.
Disclosure of Invention
Based on the above, the embodiment of the application provides a method, a device, equipment and a storage medium for loading an application program home page, which can ensure the loading speed of the application program home page under the condition of poor network environment.
In a first aspect, there is provided an application front page loading method, the method comprising:
receiving a first page picture downloading request for a target application program, wherein the first page picture downloading request is sent by a client when the client displays an opening interface of the target application program, and comprises a first page picture size matched with a display screen of the client and resolution of the display screen of the client; if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, cutting the compressed standard top page picture according to the size of the top page picture, and acquiring a target top page picture based on cutting; and sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed after the client is switched to the home page of the target application program by the open screen interface of the target application program.
In one embodiment, before receiving the first page picture downloading request for the target application program sent by the client, the method further includes:
Receiving a first page download address acquisition request aiming at the target application program, wherein the first page download address acquisition request is sent by the client when the open screen interface is displayed; and sending a home page picture downloading address to the client based on the home page downloading address acquisition request, wherein the home page picture downloading address is used for the client to send the home page picture downloading request based on the home page picture downloading address.
In one embodiment, the first page picture downloading request further includes the first page picture downloading address; if the resolution is smaller than the preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, cutting the compressed standard top page picture according to the size of the top page picture, and before obtaining the target top page picture based on cutting, the method further comprises:
inquiring whether a first page picture corresponding to the first page picture size and the resolution is stored in a picture server corresponding to the first page picture downloading address; and if the first page picture corresponding to the first page picture size and the resolution is not stored in the picture server, acquiring the standard first page picture from the picture server.
In one embodiment, the method further comprises:
and if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
In one embodiment, if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, clipping the compressed standard top page picture according to the size of the top page picture, and obtaining the target top page picture based on clipping, wherein the method further comprises:
and storing the target home page picture, the resolution and the home page picture size to the picture server correspondingly.
In one embodiment, before receiving the first page picture downloading request for the target application program sent by the client, the method further includes:
receiving a home page picture revisiting request aiming at the target application program and sent by a testing client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution; acquiring the standard home page picture from the picture server corresponding to the home page picture downloading address; processing the standard home page picture according to the size of the home page picture and the pre-visit resolution ratio to obtain a home page picture; and correspondingly storing the pre-visit home page picture, the pre-visit home page picture size and the pre-visit resolution in the picture server.
In a second aspect, there is provided an application front page loading method, the method comprising:
when a screen opening interface of a target application program is displayed, a first page picture downloading request aiming at the target application program is sent to a server, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of a client and resolution of the display screen of the client; receiving and storing a target home page picture sent by the server based on the home page picture downloading request; displaying the target home page picture after switching to the home page of the target application program from the open screen interface of the target application program; and under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
In one embodiment, before sending the first page picture download request for the target application to the server, the method further includes:
when the open screen interface is displayed, a first page downloading address acquisition request aiming at the target application program is sent to the server; receiving a home page picture downloading address returned by the server based on the home page downloading address acquisition request;
Correspondingly, the sending the first page picture downloading request for the target application program to the server includes:
splicing the home page picture downloading address, the home page picture size and the resolution ratio to generate a home page picture downloading request; and sending the generated home page picture downloading request to the server.
In one embodiment, the first page picture downloading address is a domain name address, and the first page picture downloading address, the first page picture size and the resolution are spliced to generate the first page picture downloading request, which includes:
inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between a domain name address and an IP address; acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result; and performing splicing processing on the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
In a third aspect, there is provided an application front page loading device, including:
the first receiving module is used for receiving a first page picture downloading request which is sent by the client and aims at the target application program, wherein the first page picture downloading request is sent by the client when the client displays an opening interface of the target application program, and comprises a first page picture size which is matched with a display screen of the client and the resolution of the display screen of the client;
The first acquisition module is used for compressing the standard home page picture of the target application program according to a preset compression ratio under the condition that the resolution is smaller than a preset resolution threshold, cutting the compressed standard home page picture according to the size of the home page picture, and acquiring the target home page picture based on cutting;
and the sending module is used for sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed after being switched to the home page of the target application program by the open screen interface of the target application program.
In one embodiment, the first receiving module is further configured to receive a first page download address acquisition request for the target application program sent by the client, where the first page download address acquisition request is sent by the client when the open screen interface is displayed;
the sending module is further configured to send a home page picture download address to the client based on the home page download address acquisition request, where the home page picture download address is used for the client to send the home page picture download request based on the home page picture download address.
In one embodiment, the application front page loading device further includes:
the inquiry module is used for inquiring whether the first page picture corresponding to the first page picture size and the resolution is stored in the picture server corresponding to the first page picture downloading address;
and the second acquisition module is used for acquiring the standard home page picture in the picture server under the condition that the home page picture corresponding to the home page picture size and the resolution is not stored in the picture server.
In one embodiment, the first obtaining module is further configured to: and under the condition that the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
In one embodiment, the application front page loading device further includes:
and the first storage module is used for storing the target home page picture, the resolution and the home page picture size to the picture server correspondingly.
In one embodiment, the application front page loading device further includes:
The second receiving module is used for receiving a home page picture revisiting request aiming at the target application program, which is sent by the test client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution;
the third acquisition module is used for acquiring the standard home page picture from the picture server corresponding to the home page picture downloading address;
the processing module is used for processing the standard home page picture according to the size of the pre-visit home page picture and the pre-visit resolution ratio to obtain the pre-visit home page picture;
and the second storage module is used for correspondingly storing the pre-visit home page picture, the pre-visit home page picture size and the pre-visit resolution in the picture server.
In a fourth aspect, there is provided an application front page loading apparatus, including:
the first sending module is used for sending a first page picture downloading request aiming at the target application program to the server when the screen opening interface of the target application program is displayed, wherein the first page picture downloading request comprises a first page picture size matched with the display screen of the client and the resolution of the display screen of the client;
The first receiving module is used for receiving and storing a target home page picture sent by the server based on the home page picture downloading request;
the display module is used for displaying the target home page picture after the screen opening interface of the target application program is switched to the home page of the target application program;
and under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
In one embodiment, the application front page loading device further includes:
the second sending module is used for sending a first page downloading address acquisition request aiming at the target application program to the server when the open screen interface is displayed;
the second receiving module is used for receiving the first page picture downloading address returned by the server based on the first page downloading address acquisition request;
correspondingly, the first sending module specifically includes:
the generation unit is used for performing splicing processing on the top page picture downloading address, the top page picture size and the resolution ratio to generate a top page picture downloading request;
And the sending unit is used for sending the generated home page picture downloading request to the server.
In one embodiment, the home page picture download address is a domain name address, and the generating unit is specifically configured to: inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between a domain name address and an IP address; acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result; and performing splicing processing on the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
In a fifth aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program which when executed by the processor implements the application front page loading method according to any of the first aspects above; alternatively, the computer program when executed by the processor implements an application front page loading method as described in any of the above second aspects.
In a sixth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements an application front page loading method as described in any of the first aspects above; alternatively, the computer program, when executed by a processor, implements an application front page loading method as described in any of the above second aspects.
The beneficial effects that technical scheme that this application embodiment provided include at least:
the method comprises the steps of receiving a first page picture downloading request for a target application program sent by a client side when a screen opening interface of the target application program is displayed, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of the client side and resolution of the display screen of the client side, compressing standard first page pictures of the target application program according to a preset compression ratio under the condition that the resolution is smaller than a preset resolution threshold, cutting the compressed standard first page pictures according to the first page picture size, acquiring target first page pictures based on cutting, and then sending the target first page pictures to the client side for storing the target first page pictures by the client side, and displaying the target first page pictures after the screen opening interface of the target application program is switched to the first page of the target application program. In this way, on one hand, the client requests to download the top page picture when displaying the opening interface, and stores the downloaded top page picture, thus, when the opening interface is switched to the top page, the client can directly display the top page picture which is already downloaded without downloading temporarily, so that the loading speed of the top page can be improved, on the other hand, the server can process the top page picture according to the preset compression ratio when receiving the top page picture downloading request sent by the client, and not directly sends the standard top page picture to the client, but processes the standard top page picture based on the resolution of the display screen of the client and the top page picture size matched with the display screen of the client, so as to obtain the target top page picture, and sends the target top page picture to the client, wherein, in consideration of the condition that the resolution of the display screen is lower, the user can not visually recognize the picture which is properly compressed, under the condition that the resolution of the display screen of the client is smaller than the threshold, the top page picture can be processed according to the preset compression ratio, and the target picture can be processed according to the preset compression ratio, the standard picture can be processed according to the standard size of the top page, so that the target picture can be processed according to the standard picture, the target picture size can be processed, the target picture can be obtained, the target picture can be processed, and the target picture can be processed according to the standard picture size of the top page is not be processed, and the target picture is not processed, and the loading speed of the home page can be improved by providing the target home page picture for the client for display.
Drawings
FIG. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application;
FIG. 2 is a flowchart of an application front page loading method according to an embodiment of the present application;
FIG. 3 is a flowchart of another application front page loading method according to an embodiment of the present application;
FIG. 4 is a flowchart of another application front page loading method according to an embodiment of the present application;
FIG. 5 is a flowchart of another application front page loading method according to an embodiment of the present application;
FIG. 6 is a flowchart of another application front page loading method according to an embodiment of the present application;
FIG. 7 is a flowchart of another application front page loading method according to an embodiment of the present application;
FIG. 8 is a block diagram of an application front page loading device according to an embodiment of the present application;
FIG. 9 is a block diagram of another application front page loading device according to an embodiment of the present application;
FIG. 10 is a block diagram of another application front page loading device according to an embodiment of the present application;
FIG. 11 is a block diagram of another application front page loading device according to an embodiment of the present application;
fig. 12 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In practical applications, the home page of the application program often includes a home page picture. For example, the home page of the electronic shopping application program includes a preview picture of a commodity, the home page of the video application program includes a preview picture of a recommended video, and the home page of the live broadcast application program includes a preview picture of a recommended live broadcast room, wherein the preview picture of the commodity, the preview picture of the recommended video, and the preview picture of the recommended live broadcast room are all home page pictures.
In the prior art, a fixed-size home page picture, that is, a standard home page picture, can be stored in a server, a client can request the home page picture from the server in the process of displaying an application home page, and the server can send the standard home page picture stored in the server to the client after receiving the request of the client so as to be displayed by the client.
However, in practical applications, the data size of the pictures is generally larger, so in the case of poor network environment, the time delay of transmitting the pictures is generally larger, and if the top page of the application program contains more top page pictures, the transmission time delay accumulated by the more top page pictures is considerable, which results in slower loading speed of the top page of the application program.
At present, how to ensure the loading speed of the home page of an application program under the condition of poor network environment is a problem to be solved.
In view of this, the embodiment of the application provides a method, a device and a storage medium for loading an application home page, which can ensure the loading speed of the application home page under the condition of poor network environment, and of course, the method for loading the application home page provided by the embodiment of the application not only can be applied to the condition of poor network environment, but also can be applied to the condition of better network environment, and under the condition of better network environment, the method for loading the application home page provided by the embodiment of the application home page can further improve the loading speed of the application home page.
In the application program front page loading method, a server can receive a front page picture downloading request for a target application program, which is sent by a client when a front page picture of the target application program is displayed, wherein the front page picture downloading request comprises a front page picture size which is matched with a display screen of the client and the resolution of the display screen of the client, under the condition that the resolution is smaller than a preset resolution threshold, the server can compress a standard front page picture of the target application program according to a preset compression ratio, cut the compressed standard front page picture according to the front page picture size, acquire the target front page picture based on cutting, and then send the target front page picture to the client for the client to store and display the target front page picture after the front page picture of the target application program is switched to the front page of the target application program by the front page picture of the target application program. In this way, on one hand, the client requests to download the top page picture when displaying the opening interface, and stores the downloaded top page picture, thus, when the opening interface is switched to the top page, the client can directly display the top page picture which is already downloaded without downloading temporarily, so that the loading speed of the top page can be improved, on the other hand, the server can process the top page picture according to the preset compression ratio when receiving the top page picture downloading request sent by the client, and not directly sends the standard top page picture to the client, but processes the standard top page picture based on the resolution of the display screen of the client and the top page picture size matched with the display screen of the client, so as to obtain the target top page picture, and sends the target top page picture to the client, wherein, in consideration of the condition that the resolution of the display screen is lower, the user can not visually recognize the picture which is properly compressed, under the condition that the resolution of the display screen of the client is smaller than the threshold, the top page picture can be processed according to the preset compression ratio, and the target picture can be processed according to the preset compression ratio, the standard picture can be processed according to the standard size of the top page, so that the target picture can be processed according to the standard picture, the target picture size can be processed, the target picture can be obtained, the target picture can be processed, and the target picture can be processed according to the standard picture size of the top page is not be processed, and the target picture is not processed, and the loading speed of the home page can be improved by providing the target home page picture for the client for display.
Next, an implementation environment related to the application program home page loading method provided in the embodiment of the present application will be briefly described.
As shown in fig. 1, the implementation environment may include a client 101, a management server 102, and a plurality of picture servers 103 (only one picture server is shown in fig. 1), where the client 101 establishes a communication connection with the management server 102, and the management server 102 establishes a communication connection with each picture server 103.
The client 101 may be a terminal device such as a smart phone, a tablet computer, a desktop computer, a wearable device, an MP3 player, an electronic book reader, and a vehicle-mounted device, which is not specifically limited in the embodiment of the present application.
The management server 102 may be one server or may be a server cluster composed of a plurality of servers. The plurality of picture servers 103 may be servers in a CDN server cluster, for example.
It should be noted that, in an alternative embodiment of the present application, the management server 102 and a certain picture server 103 may be the same server, which is not specifically limited in this application.
Referring to fig. 2, a flowchart of an application front page loading method according to an embodiment of the present application is shown, where the application front page loading method may be applied to the management server 102 in the implementation environment shown in fig. 1 (hereinafter, collectively referred to as a server in the embodiment). As shown in fig. 2, the application front page loading method may include the steps of:
Step 201, a server receives a first page picture downloading request for a target application program, which is sent by a client.
In the embodiment of the present application, in a process of displaying a screen opening interface of a target application, a client may obtain a resolution of a display screen of the client and a home page picture size adapted to a size of the display screen of the client, and then, the client may send a request for downloading the home page picture to a server, where the request for downloading the home page picture includes the resolution and the home page picture size obtained by the client.
Because the display time of the open screen interface is earlier than the display time of the home page, the client sends a home page picture downloading request to the server in the process of displaying the open screen interface, so that the client can acquire the home page picture before displaying the home page based on the home page picture downloading request, and therefore, when the home page is displayed, only the home page picture downloaded in advance is needed, and the home page picture is not needed to be downloaded temporarily, and adverse effects caused by the fact that the home page picture is delayed to the loading speed of the home page during transmission can be offset, and the loading speed of the home page can be improved.
Step 202, if the resolution is smaller than a preset resolution threshold, the server compresses the standard top page picture of the target application program according to a preset compression ratio, cuts the standard top page picture after the compression according to the size of the top page picture, and obtains the target top page picture based on the cutting.
In practical application, if the resolution of the display screen of the client is low, the user cannot distinguish the compressed picture and the uncompressed picture from naked eyes, and in consideration of this factor, after receiving the first page picture downloading request sent by the client, the server may extract the resolution of the display screen of the client from the first page picture downloading request, and compress the standard first page picture of the target application according to the preset compression ratio if the resolution is less than the preset resolution threshold, where the data size of the standard first page picture obtained after the compression is less than the data size of the standard first page picture that has not been compressed.
In addition, considering that the display sizes of the top page pictures in the display screens are possibly different when the top page is displayed on the display screens with different sizes, after receiving a top page picture downloading request sent by the client, the server can extract the top page picture size matched with the size of the display screen of the client from the top page picture downloading request, after performing compression processing, the server can cut the standard top page picture after the compression processing according to the top page picture size, and acquire the target top page picture based on the cutting processing. The server cuts the compressed standard home page picture according to the size of the home page picture matched with the size of the display screen of the client, so that the target home page picture obtained based on cutting can be normally displayed in the display screen of the client, and meanwhile, the data size of the target home page picture is further reduced compared with that of the standard home page picture after compression due to cutting.
The target home page picture can be normally displayed in the display screen of the client side on the one hand, and on the other hand, the data size is small, so that the processed target home page picture can reduce the transmission delay and further increase the loading speed of the home page on the premise of ensuring the normal display of the home page.
It should be noted that, in this embodiment of the present application, after the server extracts the top page picture size from the top page picture downloading request, it may determine whether the top page picture size is smaller than the size of the standard top page picture after compression processing, if so, the server may perform clipping processing on the standard top page picture after compression processing according to the top page picture size, and obtain the target top page picture based on clipping processing, and if not, the server may directly use the standard top page picture after compression processing as the target top page picture.
In an optional embodiment of the present application, if the resolution of the client display screen is greater than or equal to the preset resolution threshold, the server may not perform compression processing on the standard top page picture, so as to avoid the user from observing the blurring of the picture, but may directly perform clipping processing on the standard top page picture according to the top page picture size, and acquire the target top page picture based on clipping processing.
In the same way as described above, after the server extracts the top page picture size from the top page picture downloading request without performing compression processing, it may determine whether the top page picture size is smaller than the standard top page picture size, if so, the server may perform clipping processing on the standard top page picture according to the top page picture size, and obtain the target top page picture based on clipping processing, and if not, the server may directly use the standard top page picture as the target top page picture.
In an optional embodiment of the present application, the server may convert the cropped picture into a webp format, so as to obtain the target top page picture. The image in the webp format has smaller data size on the premise of ensuring definition, so that the cut image is converted into the webp format, the data size of the target front page image can be further reduced, the transmission delay of the target front page image is reduced, and the loading speed of the front page is further increased.
Step 203, the server sends the target home page picture to the client.
After receiving the target home page picture, the client can store the target home page picture and display the stored target home page picture after switching to the home page of the target application program from the open screen interface of the target application program.
Referring to fig. 3, in an alternative embodiment of the present application, before step 201, the server may further perform the following technical process, as shown in fig. 3, including the following steps:
step 301, the server receives a first page download address acquisition request for the target application program sent by the client.
In this embodiment of the present application, when the client displays the open screen interface of the target application, the client may send a first page download address acquisition request for the target application to the server, where the first page download address acquisition request may include an identifier of the target application.
Step 302, the server sends the home page picture download address to the client based on the home page download address acquisition request.
After receiving the first page downloading address obtaining request sent by the client, the server may obtain a first page picture downloading address corresponding to the first page of the target application program, where the first page picture downloading address may be, for example, http:// static.
As can be seen from the foregoing, the first page picture downloading request may further include a first page picture downloading address in addition to the resolution of the client display screen and the first page picture size adapted to the size of the client display screen, please refer to fig. 4, and before step 202, the server may further execute the following technical process, as shown in fig. 4, including the following steps:
step 401, the server queries whether a top page picture corresponding to the top page picture size and the resolution of the client display screen is stored in a picture server corresponding to the top page picture download address.
If the top page picture corresponding to the top page picture size and the resolution is stored in the picture server, the server is described that the standard top page picture has been processed according to the top page picture size and the resolution before, in this case, the server does not need to process the standard top page picture according to the top page picture size and the resolution again, but can directly take the top page picture corresponding to the top page picture size and the resolution stored in the target server as the target top page picture.
Otherwise, if the top page picture corresponding to the top page picture size and the resolution is not stored in the picture server, the server may execute the technical process of step 402.
Step 402, if the first page picture corresponding to the first page picture size and the resolution of the client display screen is not stored in the picture server, the server acquires a standard first page picture from the picture server.
After the standard top page picture is obtained, the server may process the standard top page picture based on the technical process described in step 202 to obtain the target top page picture.
In an alternative embodiment of the present application, after obtaining a target home page picture, the server may store the target home page picture, the resolution and the home page picture size in the picture server, so that when other clients with the same resolution and the same display screen size request the home page picture of the target application program, the server may directly obtain the target home page picture from the picture server and send the target home page picture to the other clients, without processing the standard home page picture again.
In an alternative embodiment of the present application, if the home page loading speed of the target application is important, the home page of the target application may be subjected to a pre-access process, and through the pre-access process, the server may process the standard home page picture of the target application in advance, and store the processing result in the picture server described above, so when the client requests to the server, the server does not need to process the standard home page picture temporarily, but directly obtains the processed home page picture from the picture server.
Next, the present embodiment will briefly explain the revisitation process.
The server receives a home page picture revisiting request aiming at the target application program and sent by a testing client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution, the server obtains the standard home page picture from a picture server corresponding to the home page picture downloading address, processes the standard home page picture according to the revisiting home page picture size and the revisiting resolution to obtain a revisiting home page picture, and correspondingly stores the revisiting home page picture, the revisiting home page picture size and the revisiting resolution in the picture server.
It should be noted that, the technical process of the server for obtaining the pre-access home page picture by processing the standard home page picture according to the pre-access home page picture size and the pre-access resolution is the same as the technical process of the server for obtaining the target home page picture in the step 202 described above, and the embodiments of the present application are not repeated here.
Referring to fig. 5, a flowchart of an application front page loading method according to an embodiment of the present application is shown, where the application front page loading method may be applied to the client 101 in the implementation environment shown in fig. 1. As shown in fig. 5, the application front page loading method may include the steps of:
Step 501, when a screen opening interface of a target application program is displayed, a client sends a top page picture downloading request aiming at the target application program to a server.
The first page picture downloading request comprises a first page picture size matched with the display screen size of the client and the resolution of the display screen of the client.
Step 502, the client receives and stores the target home page picture sent by the server based on the home page picture downloading request.
And under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
And under the condition that the resolution is greater than or equal to the preset resolution threshold, the target home page picture is obtained by cutting the standard home page picture according to the home page picture size and based on cutting.
In an alternative embodiment of the present application, the target top page picture is in webp format.
Step 503, the client displays the target home page picture after the open screen interface of the target application program is switched to the home page of the target application program.
Referring to fig. 6, a schematic diagram of a technical process of sending a top page picture downloading request for the target application program to a server according to an embodiment of the present application is shown, and as shown in fig. 6, the technical process includes the following steps:
and 601, when the open screen interface is displayed, the client sends a first page downloading address acquisition request aiming at the target application program to the server.
Step 602, the client receives a home page picture download address returned by the server based on the home page download address acquisition request.
And 603, the client performs splicing processing on the top page picture downloading address, the top page picture size and the resolution to generate the top page picture downloading request.
In an alternative embodiment of the present application, the client may query a domain name correspondence list stored in the local area based on the home picture download address, where the domain name correspondence list stores a plurality of correspondence relations between domain name addresses and IP addresses. And then, the client can acquire the IP address of the top page picture corresponding to the downloading address of the top page picture based on the query result. Then, the client can splice the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
In practical applications, in general, the client needs to send the home page picture download address to the domain name server, and the domain name server converts the home page picture download address into the home page picture IP address, however, in the case of poor network environment, the interaction time delay between the client and the domain name server may be long, and this long interaction time delay may also adversely affect the loading speed of the home page.
In order to improve the home page loading speed, the client may request the domain name server for the domain name corresponding list in advance and store the domain name corresponding list locally, so that the client does not need to interact with the domain name server in the process of converting the home page picture downloading address into the home page picture IP address, and thus, adverse effects on the home page loading speed caused by interaction with the domain name server can be reduced.
Step 604, the client sends the generated request for downloading the top page picture to the server.
Referring to fig. 7, a flowchart of an application front page loading method according to an embodiment of the present application is shown, where the application front page loading method may be applied to the implementation environment shown in fig. 1. As shown in fig. 7, the application front page loading method may include the steps of:
And 701, when a screen opening interface of a target application program is displayed, the client sends a first page downloading address acquisition request aiming at the target application program to the server.
Step 702, the server sends the home page picture download address to the client based on the home page download address acquisition request.
Step 703, the client queries a domain name correspondence list based on the home page picture download address.
The domain name correspondence list stores a plurality of correspondence relations between domain name addresses and IP addresses.
Step 704, the client obtains the IP address of the top page picture corresponding to the download address of the top page picture based on the query result.
Step 705, the client performs a splicing process on the home page picture IP address, the home page picture size adapted to the client display screen size, and the resolution of the client display screen, to generate a home page picture downloading request.
Step 706, the client sends the generated request for downloading the top page picture to the server.
Step 707, the server queries whether the first page picture corresponding to the first page picture size and the resolution is stored in the picture server corresponding to the first page picture download address.
Step 708, if the top page picture corresponding to the top page picture size and the resolution is not stored in the picture server, the server obtains a standard top page picture in the picture server.
Step 709, if the resolution is smaller than the preset resolution threshold, the server compresses the standard top page picture of the target application program according to a preset compression ratio, cuts the standard top page picture after the compression according to the size of the top page picture, and obtains the target top page picture based on the cutting.
And if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
Step 710, the server stores the target home page picture, the resolution and the home page picture size in the picture server.
Step 711, the server sends the target home page picture to the client.
Step 712, the client receives and stores the target home page picture.
Step 713, the client displays the target home page picture after switching from the open screen interface of the target application to the home page of the target application.
Referring to fig. 8, a block diagram of an application front page loading device 800 according to an embodiment of the present application is shown, where the application front page loading device 800 may be configured in the management server 102 shown in fig. 1. As shown in fig. 8, the application front page loading apparatus 800 may include: a first receiving module 801, a first obtaining module 802, and a sending module 803.
The first receiving module 801 is configured to receive a first page picture downloading request sent by a client for a target application, where the first page picture downloading request is sent by the client when a screen opening interface of the target application is displayed, and the first page picture downloading request includes a first page picture size adapted to a display screen of the client and a resolution of the display screen of the client.
The first obtaining module 802 is configured to compress a standard top page picture of the target application program according to a preset compression ratio when the resolution is smaller than a preset resolution threshold, clip the compressed standard top page picture according to the size of the top page picture, and obtain the target top page picture based on clipping.
The sending module 803 is configured to send the target home page picture to the client, where the target home page picture is used for the client to store, and is used for the client to display after the client is switched to the home page of the target application by the open screen interface of the target application.
In an optional embodiment of the present application, the first receiving module 801 is further configured to receive a first page download address acquisition request sent by the client for the target application, where the first page download address acquisition request is sent by the client when the open screen interface is displayed.
The sending module 803 is further configured to send a home page picture download address to the client based on the home page download address acquisition request, where the home page picture download address is used for the client to send the home page picture download request based on the home page picture download address.
Referring to fig. 9, in addition to providing the application home page loading device 800, another application home page loading device 900 is provided in the embodiment of the present application, where the application home page loading device 900 includes at least one of a query module 804, a second obtaining module 805, a first storage module 806, a second receiving module 807, a third obtaining module 808, a processing module 809, and a second storage module 810, in addition to the modules including the application home page loading device 800.
The query module 804 is configured to query, in a picture server corresponding to the top page picture download address, whether a top page picture corresponding to the top page picture size and the resolution is stored.
The second obtaining module 805 is configured to obtain the standard top page picture in the picture server if the top page picture corresponding to the top page picture size and the resolution is not stored in the picture server.
The first storage module 806 is configured to store the target home page picture, the resolution, and the home page picture size to the picture server.
The second receiving module 807 is configured to receive a home page picture revisit request for the target application sent by the test client, where the home page picture revisit request includes the home page picture download address, a revisit home page picture size, and a revisit resolution.
The third obtaining module 808 is configured to obtain the standard top page picture from the picture server corresponding to the top page picture download address.
The processing module 809 is configured to process the standard home page picture according to the size of the pre-visited home page picture and the pre-visited resolution, so as to obtain the pre-visited home page picture.
The second storage module 810 is configured to store the pre-access home page picture, the pre-access home page picture size, and the pre-access resolution in the picture server.
Correspondingly, in an alternative embodiment of the present application, the first obtaining module 802 is further configured to: and under the condition that the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
The application front page loading device provided by the embodiment of the application can realize the method embodiment, and the implementation principle and the technical effect are similar and are not repeated here.
The specific limitation of the application front page loading device can be referred to the limitation of the application front page loading method hereinabove, and will not be described herein. The modules in the application program front page loading device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may invoke and perform the operations of the above modules.
Referring to fig. 10, a block diagram of an application front page loading device 1000 according to an embodiment of the present application is shown, where the application front page loading device 1000 may be configured in the client 101 shown in fig. 1. As shown in fig. 10, the application front page loading apparatus 1000 may include: a first sending module 1001, a first receiving module 1002 and a display module 1003.
The first sending module 1001 is configured to send, to a server, a first page picture download request for a target application when displaying an open screen interface of the target application, where the first page picture download request includes a first page picture size adapted to a display screen of a client and a resolution of the display screen of the client.
The first receiving module 1002 is configured to receive and store a target home page picture sent by the server based on the home page picture downloading request.
The display module 1003 is configured to display the target home page picture after switching from the open screen interface of the target application to the home page of the target application.
And under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
Referring to fig. 11, in addition to providing the application front page loading device 1000, another application front page loading device 1100 is provided, where the application front page loading device 1100 includes at least one of a second sending module 1004 and a second receiving module 1005, in addition to the modules of the application front page loading device 1000.
The second sending module 1004 is configured to send, to the server, a first page download address obtaining request for the target application program when the open screen interface is displayed.
The second receiving module 1005 is configured to receive a top page picture download address returned by the server based on the top page download address acquisition request.
Correspondingly, in an optional embodiment of the present application, the first sending module 1001 specifically includes:
and the generation unit is used for performing splicing processing on the top page picture downloading address, the top page picture size and the resolution ratio to generate the top page picture downloading request.
And the sending unit is used for sending the generated home page picture downloading request to the server.
In an optional embodiment of the present application, the first page picture download address is a domain name address, and the generating unit is specifically configured to: inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between a domain name address and an IP address; acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result; and performing splicing processing on the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
The application front page loading device provided by the embodiment of the application can realize the method embodiment, and the implementation principle and the technical effect are similar and are not repeated here.
The specific limitation of the application front page loading device can be referred to the limitation of the application front page loading method hereinabove, and will not be described herein. The modules in the application program front page loading device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may invoke and perform the operations of the above modules.
Referring to fig. 12, a block diagram of an alternative computer device, which may be a server or a client, is shown in an embodiment of the present application, and may include a processor and a memory connected via a system bus, as shown in fig. 12. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The computer program, when executed by a processor, implements an application front page loading method.
It will be appreciated by those skilled in the art that the structure shown in fig. 12 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, a computer device is provided, which may be a server, the computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a first page picture downloading request for a target application program, wherein the first page picture downloading request is sent by a client when the client displays an opening interface of the target application program, and comprises a first page picture size matched with a display screen of the client and resolution of the display screen of the client; if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, cutting the compressed standard top page picture according to the size of the top page picture, and acquiring a target top page picture based on cutting; and sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed after the client is switched to the home page of the target application program by the open screen interface of the target application program.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of: receiving a first page download address acquisition request aiming at the target application program, wherein the first page download address acquisition request is sent by the client when the open screen interface is displayed; and sending a home page picture downloading address to the client based on the home page downloading address acquisition request, wherein the home page picture downloading address is used for the client to send the home page picture downloading request based on the home page picture downloading address.
In one embodiment of the present application, the first page picture downloading request further includes the first page picture downloading address; the processor when executing the computer program also implements the steps of: inquiring whether a first page picture corresponding to the first page picture size and the resolution is stored in a picture server corresponding to the first page picture downloading address; and if the first page picture corresponding to the first page picture size and the resolution is not stored in the picture server, acquiring the standard first page picture from the picture server.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of: and if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of: and storing the target home page picture, the resolution and the home page picture size to the picture server correspondingly.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of: receiving a home page picture revisiting request aiming at the target application program and sent by a testing client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution; acquiring the standard home page picture from the picture server corresponding to the home page picture downloading address; processing the standard home page picture according to the size of the home page picture and the pre-visit resolution ratio to obtain a home page picture; and correspondingly storing the pre-visit home page picture, the pre-visit home page picture size and the pre-visit resolution in the picture server.
The computer device provided in the embodiments of the present application has similar implementation principles and technical effects to those of the above method embodiments, and will not be described herein.
In one embodiment of the present application, a computer device is provided, which may be a client, the computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
When a screen opening interface of a target application program is displayed, a first page picture downloading request aiming at the target application program is sent to a server, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of a client and resolution of the display screen of the client; receiving and storing a target home page picture sent by the server based on the home page picture downloading request; displaying the target home page picture after switching to the home page of the target application program from the open screen interface of the target application program; and under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of: when the open screen interface is displayed, a first page downloading address acquisition request aiming at the target application program is sent to the server; receiving a home page picture downloading address returned by the server based on the home page downloading address acquisition request; splicing the home page picture downloading address, the home page picture size and the resolution ratio to generate a home page picture downloading request; and sending the generated home page picture downloading request to the server.
In one embodiment of the present application, the first page picture download address is a domain name address, and the processor when executing the computer program further implements the following steps: inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between a domain name address and an IP address; acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result; and performing splicing processing on the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
The computer device provided in the embodiments of the present application has similar implementation principles and technical effects to those of the above method embodiments, and will not be described herein.
In one embodiment of the present application, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a first page picture downloading request for a target application program, wherein the first page picture downloading request is sent by a client when the client displays an opening interface of the target application program, and comprises a first page picture size matched with a display screen of the client and resolution of the display screen of the client; if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, cutting the compressed standard top page picture according to the size of the top page picture, and acquiring a target top page picture based on cutting; and sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed after the client is switched to the home page of the target application program by the open screen interface of the target application program.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of: receiving a first page download address acquisition request aiming at the target application program, wherein the first page download address acquisition request is sent by the client when the open screen interface is displayed; and sending a home page picture downloading address to the client based on the home page downloading address acquisition request, wherein the home page picture downloading address is used for the client to send the home page picture downloading request based on the home page picture downloading address.
In one embodiment of the present application, the first page picture downloading request further includes the first page picture downloading address; the computer program when executed by the processor also performs the steps of: inquiring whether a first page picture corresponding to the first page picture size and the resolution is stored in a picture server corresponding to the first page picture downloading address; and if the first page picture corresponding to the first page picture size and the resolution is not stored in the picture server, acquiring the standard first page picture from the picture server.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of: and if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of: and storing the target home page picture, the resolution and the home page picture size to the picture server correspondingly.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of: receiving a home page picture revisiting request aiming at the target application program and sent by a testing client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution; acquiring the standard home page picture from the picture server corresponding to the home page picture downloading address; processing the standard home page picture according to the size of the home page picture and the pre-visit resolution ratio to obtain a home page picture; and correspondingly storing the pre-visit home page picture, the pre-visit home page picture size and the pre-visit resolution in the picture server.
The computer readable storage medium provided in this embodiment has similar principles and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment of the present application, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
When a screen opening interface of a target application program is displayed, a first page picture downloading request aiming at the target application program is sent to a server, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of a client and resolution of the display screen of the client; receiving and storing a target home page picture sent by the server based on the home page picture downloading request; displaying the target home page picture after switching to the home page of the target application program from the open screen interface of the target application program; and under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by the server compressing the standard home page picture of the target application program according to a preset compression ratio, clipping the compressed standard home page picture according to the size of the home page picture and based on clipping.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of: when the open screen interface is displayed, a first page downloading address acquisition request aiming at the target application program is sent to the server; receiving a home page picture downloading address returned by the server based on the home page downloading address acquisition request; splicing the home page picture downloading address, the home page picture size and the resolution ratio to generate a home page picture downloading request; and sending the generated home page picture downloading request to the server.
In one embodiment of the present application, the top page picture download address is a domain name address, and the computer program when executed by the processor further performs the steps of: inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between a domain name address and an IP address; acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result; and performing splicing processing on the top page picture IP address, the top page picture size and the resolution to generate the top page picture downloading request.
The computer readable storage medium provided in this embodiment has similar principles and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the claims. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (11)

1. An application front page loading method, characterized in that the method comprises the following steps:
receiving a first page picture downloading request for a target application program, wherein the first page picture downloading request is sent by a client when the client displays an opening interface of the target application program, and comprises a first page picture size matched with a display screen of the client, a resolution of the display screen of the client and a first page picture downloading address, and the first page picture downloading request is obtained by splicing the first page picture size, the resolution and the first page picture downloading address by the client; the target application program is a live broadcast application program;
Inquiring whether a first page picture corresponding to the first page picture size and the resolution is stored in a picture server corresponding to the first page picture downloading address;
if the first page picture corresponding to the first page picture size and the resolution is not stored in the picture server, acquiring a standard first page picture from the picture server;
if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, cutting the compressed standard top page picture according to the size of the top page picture, and acquiring a target top page picture based on cutting; the data size of the standard home page picture obtained after compression processing is smaller than that of the standard home page picture which is not subjected to compression processing;
if the resolution is greater than or equal to the preset resolution threshold, the standard top page picture is forbidden to be compressed, the standard top page picture is cut directly according to the size of the top page picture, and the target top page picture is obtained based on cutting;
if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture;
And sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed by the client after being switched to the home page of the target application program by the open screen interface of the target application program.
2. The method of claim 1, wherein prior to receiving the request for downloading the top page picture for the target application program sent by the client, the method further comprises:
receiving a first page download address acquisition request aiming at the target application program, which is sent by the client, wherein the first page download address acquisition request is sent by the client when the screen opening interface is displayed;
and sending a home page picture downloading address to the client based on the home page downloading address obtaining request, wherein the home page picture downloading address is used for the client to send the home page picture downloading request based on the home page picture downloading address.
3. The method according to claim 1, wherein if the resolution is smaller than a preset resolution threshold, compressing the standard top page picture of the target application program according to a preset compression ratio, clipping the compressed standard top page picture according to the top page picture size, and obtaining the target top page picture based on clipping, the method further comprises:
And storing the target home page picture, the resolution and the home page picture size to the picture server correspondingly.
4. The method of claim 1, wherein prior to receiving the request for downloading the top page picture for the target application program sent by the client, the method further comprises:
receiving a home page picture revisiting request aiming at the target application program and sent by a testing client, wherein the home page picture revisiting request comprises a home page picture downloading address, a revisiting home page picture size and a revisiting resolution;
acquiring the standard home page picture from the picture server corresponding to the home page picture downloading address;
processing the standard home page picture according to the size of the pre-visit home page picture and the pre-visit resolution ratio to obtain a pre-visit home page picture;
and correspondingly storing the pre-visit home page picture, the pre-visit home page picture size and the pre-visit resolution in the picture server.
5. An application front page loading method, characterized in that the method comprises the following steps:
when a screen opening interface of a target application program is displayed, a first page picture downloading request aiming at the target application program is sent to a server, wherein the first page picture downloading request comprises a first page picture size matched with a display screen of a client, resolution of the display screen of the client and a first page picture downloading address, and the first page picture downloading request is obtained by splicing the first page picture size, the resolution and the first page picture downloading address by the client; the target application program is a live broadcast application program;
Receiving and storing a target home page picture sent by the server based on the home page picture downloading request;
displaying the target home page picture after switching to the home page of the target application program from the open screen interface of the target application program;
the standard home page picture is that the server inquires whether a home page picture corresponding to the home page picture size and the resolution is stored in a picture server corresponding to the home page picture downloading address, and if the home page picture corresponding to the home page picture size and the resolution is not stored in the picture server, the standard home page picture is acquired in the picture server;
under the condition that the resolution is smaller than a preset resolution threshold, the target home page picture is obtained by compressing a standard home page picture of the target application program according to a preset compression ratio by the server, cutting the standard home page picture after the compression according to the size of the home page picture, and the data size of the standard home page picture obtained after the compression is smaller than that of the standard home page picture without the compression based on the cutting; under the condition that the resolution is larger than or equal to the preset resolution threshold, the target home page picture is obtained by prohibiting compression processing of the standard home page picture by the server, directly cutting the standard home page picture according to the size of the home page picture and based on cutting processing; or if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, the target first page picture uses the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture by the server.
6. The method of claim 5, wherein prior to sending the top page picture download request for the target application to the server, the method further comprises:
when the open screen interface is displayed, a first page downloading address acquisition request aiming at the target application program is sent to the server;
receiving a home page picture downloading address returned by the server based on the home page downloading address acquisition request;
correspondingly, the sending, to a server, a request for downloading the top page picture for the target application program includes:
performing splicing processing on the top page picture downloading address, the top page picture size and the resolution ratio to generate a top page picture downloading request;
and sending the generated top page picture downloading request to the server.
7. The method of claim 6, wherein the top page picture download address is a domain name address, wherein the concatenating the top page picture download address, the top page picture size, and the resolution generates the top page picture download request, comprising:
inquiring a domain name corresponding list based on the home page picture downloading address, wherein the domain name corresponding list stores a plurality of corresponding relations between domain name addresses and IP addresses;
Acquiring a home page picture IP address corresponding to the home page picture downloading address based on the query result;
and performing splicing processing on the top page picture IP address, the top page picture size and the resolution ratio to generate the top page picture downloading request.
8. An application front page loading device, the device comprising:
the first receiving module is used for receiving a first page picture downloading request aiming at a target application program, wherein the first page picture downloading request is sent by a client when the client displays an opening interface of the target application program, and comprises a first page picture size matched with a display screen of the client, resolution of the display screen of the client and a first page picture downloading address, and the first page picture downloading request is obtained by splicing the first page picture size, the resolution and the first page picture downloading address by the client; the target application program is a live broadcast application program;
the inquiry module is used for inquiring whether the first page picture corresponding to the first page picture size and the resolution is stored in the picture server corresponding to the first page picture downloading address;
The second acquisition module is used for acquiring a standard home page picture from the picture server if the home page picture corresponding to the home page picture size and the resolution is not stored in the picture server;
the first acquisition module is used for compressing the standard top page picture of the target application program according to a preset compression ratio under the condition that the resolution is smaller than a preset resolution threshold, cutting the compressed standard top page picture according to the size of the top page picture, acquiring the target top page picture based on cutting, and obtaining a standard top page picture with the data volume smaller than that of the standard top page picture which is not compressed; under the condition that the resolution is larger than or equal to the preset resolution threshold, prohibiting compression processing of the standard top page picture, directly cutting the standard top page picture according to the size of the top page picture, and acquiring the target top page picture based on cutting processing;
the first acquisition module is further configured to: if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, taking the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture;
And the sending module is used for sending the target home page picture to the client, wherein the target home page picture is used for being stored by the client and is used for being displayed after being switched to the home page of the target application program by the screen opening interface of the target application program by the client.
9. An application front page loading device, the device comprising:
the device comprises a sending module, a server and a target application program, wherein the sending module is used for sending a first page picture downloading request aiming at the target application program to the server when the screen opening interface of the target application program is displayed, the first page picture downloading request comprises a first page picture size matched with a display screen of a client, a resolution of the display screen of the client and a first page picture downloading address, and the first page picture downloading request is obtained by splicing the first page picture size, the resolution and the first page picture downloading address by the client; the target application program is a live broadcast application program;
the receiving module is used for receiving and storing a target home page picture sent by the server based on the home page picture downloading request;
the display module is used for displaying the target home page picture after the screen opening interface of the target application program is switched to the home page of the target application program;
The standard home page picture is that the server inquires whether a home page picture corresponding to the home page picture size and the resolution is stored in a picture server corresponding to the home page picture downloading address, and if the home page picture corresponding to the home page picture size and the resolution is not stored in the picture server, the standard home page picture is acquired in the picture server;
the target home page picture is obtained by compressing a standard home page picture of the target application program according to a preset compression ratio by the server, clipping the standard home page picture after the compression according to the size of the home page picture, obtaining a standard home page picture with the data volume smaller than that of the standard home page picture without the compression based on clipping, and prohibiting the compression of the standard home page picture by the server under the condition that the resolution is larger than or equal to the preset resolution threshold, clipping the standard home page picture directly according to the size of the home page picture, and obtaining the standard home page picture based on clipping; or if the first page picture corresponding to the first page picture size and the resolution is stored in the picture server, the target first page picture uses the first page picture corresponding to the first page picture size and the resolution stored in the picture server as the target first page picture by the server.
10. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the application front page loading method of any of claims 1 to 7.
11. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the application front page loading method according to any of claims 1 to 7.
CN202010965100.3A 2020-09-15 2020-09-15 Application program home page loading method, device, equipment and storage medium Active CN112099873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010965100.3A CN112099873B (en) 2020-09-15 2020-09-15 Application program home page loading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010965100.3A CN112099873B (en) 2020-09-15 2020-09-15 Application program home page loading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112099873A CN112099873A (en) 2020-12-18
CN112099873B true CN112099873B (en) 2023-06-02

Family

ID=73751074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010965100.3A Active CN112099873B (en) 2020-09-15 2020-09-15 Application program home page loading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112099873B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010258B (en) * 2021-03-30 2022-09-16 北京三快在线科技有限公司 Picture issuing method, device, equipment and storage medium
CN113450361B (en) * 2021-05-14 2022-08-19 山东英信计算机技术有限公司 Crawler image processing method and device, computer equipment and storage medium
CN113592872A (en) * 2021-08-16 2021-11-02 北京字节跳动网络技术有限公司 Picture display method and device and computer storage medium
CN113676756A (en) * 2021-08-23 2021-11-19 北京字跳网络技术有限公司 Picture request method, device, equipment, storage medium and program product
CN114489915B (en) * 2022-02-17 2024-09-17 平安国际智慧城市科技股份有限公司 Mobile equipment-based open screen picture display method, device, equipment and medium
CN115640477B (en) * 2022-08-26 2024-05-21 百度在线网络技术(北京)有限公司 Content recommendation method, device, equipment, medium and product of application program home page

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6281874B1 (en) * 1998-08-27 2001-08-28 International Business Machines Corporation Method and system for downloading graphic images on the internet
CN105959502A (en) * 2016-04-27 2016-09-21 北京小米移动软件有限公司 Network picture compression method and device
CN108322789A (en) * 2018-01-18 2018-07-24 北京奇艺世纪科技有限公司 A kind of network image display method, device and mobile terminal
CN111026988A (en) * 2019-11-15 2020-04-17 浙江数链科技有限公司 Page loading method, device and system and computer equipment

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030174243A1 (en) * 2002-03-13 2003-09-18 Arbeiter James Henry Network streaming system for providing a user with data defining imagecontent at a resolution that may be determined by the user
JP5495879B2 (en) * 2009-04-30 2014-05-21 キヤノン株式会社 Image processing system
US8996986B2 (en) * 2010-01-11 2015-03-31 Ensighten, Inc. Enhanced delivery of content and program instructions
US11232250B2 (en) * 2013-05-15 2022-01-25 Microsoft Technology Licensing, Llc Enhanced links in curation and collaboration applications
CN103458397B (en) * 2013-08-26 2017-12-15 华为技术有限公司 Advertisement processing method and device
CN106681745A (en) * 2015-11-09 2017-05-17 五八同城信息技术有限公司 Picture loading method and terminal
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN106599023A (en) * 2016-11-01 2017-04-26 乐视控股(北京)有限公司 Picture display optimization method and apparatus
US10528361B2 (en) * 2017-11-08 2020-01-07 Citrix Systems, Inc. Intercepted loading of web applications
CN110020325B (en) * 2018-08-17 2023-04-11 深圳壹账通智能科技有限公司 Page loading method, device, equipment and readable storage medium
CN111381749A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Image display and processing method, device, equipment and storage medium
CN109918592A (en) * 2019-01-17 2019-06-21 平安城市建设科技(深圳)有限公司 Loading method, device, terminal and the computer readable storage medium of picture
CN110413347B (en) * 2019-07-31 2023-08-18 Oppo广东移动通信有限公司 Advertisement processing method and device in application program, storage medium and terminal
CN111198996A (en) * 2019-12-20 2020-05-26 上海淇玥信息技术有限公司 Page display method and device and electronic equipment
CN111562895B (en) * 2020-03-25 2023-09-22 抖音视界有限公司 Multimedia information display method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6281874B1 (en) * 1998-08-27 2001-08-28 International Business Machines Corporation Method and system for downloading graphic images on the internet
CN105959502A (en) * 2016-04-27 2016-09-21 北京小米移动软件有限公司 Network picture compression method and device
CN108322789A (en) * 2018-01-18 2018-07-24 北京奇艺世纪科技有限公司 A kind of network image display method, device and mobile terminal
CN111026988A (en) * 2019-11-15 2020-04-17 浙江数链科技有限公司 Page loading method, device and system and computer equipment

Also Published As

Publication number Publication date
CN112099873A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN112099873B (en) Application program home page loading method, device, equipment and storage medium
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CA2591782C (en) System and method for enhancing network browsing speed by setting a proxy server on a handheld device
US20100268694A1 (en) System and method for sharing web applications
CA2591777C (en) System and method for enhancing network browsing speed by setting a proxy server on a handheld device
CN111385316B (en) Resource refreshing method, access method and device
US11159637B2 (en) Content delivery network transitional caching
CN109040786B (en) Camera data transmission method, device and system and storage medium
CN112437329B (en) Method, device and equipment for playing video and readable storage medium
CN103390012A (en) Display picture generating method and device based on access
CN104616263A (en) Image processing method and device
CN112559463A (en) Method and device for processing compressed file
CN110730356A (en) Real-time refreshing method, system and device for live video and storage medium
CN113395487A (en) Video data storage management method and device, computer equipment and storage medium
US9282331B2 (en) Image processing method and electronic device
CN109710783B (en) Picture loading method and device, storage medium and server
EP2136304A1 (en) Method of generating a document from a web server located in a portable electronic device
CN103561068A (en) Method and device for improving speed of web page browsing
KR102024642B1 (en) Live Steaming Server device and operating method thereof
CN108021475B (en) Data recovery method and device
CN112615973B (en) Picture display method, device, server and computer readable storage medium
CN101764829A (en) Network resource acquisition method for browser and browser
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN112288936A (en) Feature synchronization method, device and system, electronic equipment and storage medium
CN106156298A (en) The method and device of the page is moved in a kind of website that generates

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant