Page display method, device, electronic device and storage medium

By selectively compressing and pushing page images based on the page image generation time and the number of images displayed at pre-set intervals, the problem of low efficiency in pushing remote virtual servers is solved, achieving smooth display of client-side pages and improved user experience.

CN114297545BActive Publication Date: 2025-01-28EVERSEC BEIJING TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111639126.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-01-28
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In existing technologies, when a remote virtual server pushes page data to a client, network bandwidth limitations result in low push efficiency, causing the client's display to lag and affecting the user experience.

Method used

When a data acquisition request generated by a page scrolling operation is received, the image to be displayed is determined based on the generation time of the image to be selected on the page. After compression, the image is sent to the client to reduce the file size. The number of images pushed is controlled by a pre-set interval display number.

Benefits of technology

It improved page push speed, enhanced the smoothness of page browsing on the client side, and improved the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114297545B_ABST
    Figure CN114297545B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a page display method, device, electronic device and storage medium. The method comprises: upon receiving a page data acquisition request generated based on a page scrolling operation, determining at least one to-be-selected page image corresponding to the page data acquisition request; determining the to-be-selected image to be displayed on the client according to the generation time of at least one to-be-selected page image; after determining the to-be-displayed image, compressing the to-be-displayed image and sending it to the client, so as to display a target page including at least one to-be-displayed image on the client. The method solves the problem that the pages that the client wants to browse are pushed sequentially based on the method of pushing the updated client browsing area in the prior art, resulting in low push efficiency, client display freeze, and affecting the user experience, and improves the page push speed of the server while improving the smoothness of the client page browsing, thereby achieving the effect of improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer processing technology, and more particularly to a page display method, device, electronic device and storage medium. Background Art

[0002] With the development of the Internet industry, using a browser to access the Internet has become one of the most basic applications in computer network technology. At the same time, as the public pays more and more attention to network security, in order to protect computers from various malware that may be encountered, they usually choose to transfer browsing activities on the client to a remote virtual server, and then use the remote virtual server to access the external network, and access the Internet by receiving feedback data from the server.

[0003] At present, the method for a remote virtual server to send data to a client is usually based on pushing updates to the client's browsing area, pushing the pages that the client wants to browse in sequence. However, when a large number of images are generated when the page is scrolling, a large amount of data needs to be pushed to the client in a short period of time. Due to network bandwidth limitations, this often leads to low push efficiency, client display freezes, and affects user experience. Summary of the invention

[0004] The embodiments of the present invention provide a page display method, device, electronic device and storage medium to improve the page push speed of the server while improving the smoothness of client page browsing, thereby achieving the technical effect of improving user experience.

[0005] In a first aspect, an embodiment of the present invention provides a page display method, the method comprising:

[0006] When receiving a page data acquisition request generated based on a page scrolling operation, determining at least one to-be-selected page image corresponding to the page data acquisition request;

[0007] Determining an image to be displayed on the client according to the generation time of the at least one page image to be selected;

[0008] After the image to be displayed is determined, the image to be displayed is compressed and sent to the client, so that a target page including at least one image to be displayed is displayed on the client.

[0009] In a second aspect, an embodiment of the present invention further provides a page display device, the device comprising:

[0010] A to-be-selected page image determination module, configured to, upon receiving a page data acquisition request generated based on a page scrolling operation, determine at least one to-be-selected page image corresponding to the page data acquisition request;

[0011] A to-be-displayed image determination module, used to determine the to-be-displayed image to be displayed on the client according to the generation time of the at least one to-be-selected page image;

[0012] The module for sending images to be displayed is used to compress and process the images to be displayed and send them to the client after determining the images to be displayed, so as to display a target page including at least one image to be displayed on the client.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the device comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the page display method as described in any one of the embodiments of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the page display method as described in any one of the embodiments of the present invention is implemented.

[0018] The technical solution of the embodiment of the present invention determines at least one to-be-selected page image corresponding to the page data acquisition request when receiving a page data acquisition request generated based on a page scrolling operation, determines the to-be-selected image to be displayed on the client according to the generation time of at least one to-be-selected page image, and after determining the to-be-selected image, compresses the to-be-selected image and sends it to the client, so as to display the target page including at least one to-be-selected image on the client. This solves the problem in the prior art of pushing based on updating the client browsing area, pushing the pages that the client wants to browse in sequence, resulting in low push efficiency, client display freezes, and affecting user experience. This realizes the selective compression of the to-be-selected image based on the generation time of the to-be-selected page image, pushes some images with reduced file size to the client, improves the page push speed, and improves the smoothness of user page browsing on the client, thereby achieving the technical effect of improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flow chart of a page display method provided in Embodiment 1 of the present invention;

[0021] Figure 2 A schematic diagram of a page display method provided in Embodiment 2 of the present invention;

[0022] Figure 3 This is a structural block diagram of a page display device provided in Embodiment 3 of the present invention;

[0023] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0025] Embodiment 1

[0026] Figure 1 This is a flow chart of a page display method provided in the first embodiment of the present invention. This embodiment is applicable to the case of pushing pages. The method can be executed by the page display device in the embodiment of the present invention. The device can be implemented in software and / or hardware. Optionally, it can be implemented by an electronic device. The electronic device can be a mobile terminal, a PC or a server. The device can be configured in a computing device. The page display method provided in this embodiment specifically includes the following steps:

[0027] S110. When receiving a page data acquisition request generated based on a page scrolling operation, determine at least one to-be-selected page image corresponding to the page data acquisition request.

[0028] The page scrolling operation may include at least one of clicking, touching, and sliding.

[0029] It should be noted that when a user triggers a control corresponding to a page scroll bar on a client page using an input device, it is considered that a page scrolling operation is triggered. At this time, while the page is scrolling, a request for obtaining page data is sent to the server. When the server receives the page data acquisition request, it can perform a corresponding page crawling operation based on the page data acquisition request to obtain a page image. For example, in the field of web browsing, when a user accesses a web (World Wide Web, global wide area network) page through a local browser, the page data acquisition request will be forwarded to a remote web isolated server. When the web isolation service receives the request, it can start the browser engine and control the browser engine to access the Internet to retrieve the real page data. Then, the real page data can be converted into a picture using rendering technology as the page image to be selected, so that the corresponding picture can be selected from the page image to be selected and pushed to the client page.

[0030] It should also be noted that, in this embodiment, the user's browsing activities on the client will be transferred to the remote web isolation service, and the server will then send the web page corresponding to the browsing activity to the client in the form of an image, which can protect the computer from various malware that may be encountered.

[0031] Specifically, when the remote web isolated server receives a page data acquisition request generated by a page scrolling operation of a client, the browser engine can be used to fetch the to-be-selected page image corresponding to the page data acquisition request from the Internet.

[0032] It should be noted that when a page data acquisition request generated based on a page scrolling operation is received, at least one page image to be selected corresponding to the page data acquisition request is determined. The movement range of the page scroll bar triggered by the page scrolling operation can also be used to determine the range of page data that the browser page needs to obtain, so as to accurately obtain the page data within the page range.

[0033] Optionally, when a page data acquisition request generated based on a page scrolling operation is received, at least one to-be-selected page image corresponding to the page data acquisition request is determined, including: generating a page data acquisition request based on the page scrolling operation of the target pulley on the target page, and sending it to the server; receiving the page data acquisition request, and determining the target data range to be displayed according to the scrolling range of the page scrolling operation; and generating at least one to-be-selected page image according to the target data range.

[0034] The target wheel may refer to a wheel used to slide a page scroll bar on a target page, and may optionally be a mouse wheel.

[0035] In actual application, the user can scroll the browsed page by sliding the mouse wheel. At this time, it can be considered that the page scrolling operation on the browsed page is triggered. It can also be that the page scroll bar of the browser page is clicked and pushed by the input device, and when the scroll bar slides, the page is scrolled, and at this time, it can also be considered that the page scrolling operation on the target page is triggered. The page scrolling operation can also be triggered by touching the page on the sliding display screen, and then a request for obtaining page data can be generated and sent to the server. When the server receives the page data acquisition request, an algorithm can be used to detect how much the page scroll bar is moved by the page scrolling operation, and then the range of the target data displayed on the browser is determined based on the movement range of the page scroll bar. For example, the mapping relationship between the movement distance of the page scroll bar and the range of data required to be displayed on the corresponding browser can be pre-set, such as the page scroll bar moves 1mm, and the range of data required to be displayed on the corresponding browser is 2cm. Further, the browser engine can be used to capture each page data within the target data range, and then the page data can be converted into a page image, and accordingly, a plurality of page images to be selected can be obtained.

[0036] S120: Determine an image to be displayed on the client according to the generation time of the at least one page image to be selected.

[0037] In this embodiment, when it is detected that the captured page data needs to be converted into an image, it can be considered that a generation time of a page image to be selected is triggered. Optionally, after the page image to be selected is generated, the page image to be selected can be used as an image to be displayed on the client.

[0038] It should be noted that in order to avoid pushing a large number of images to the client when pushing the page, resulting in the occupation of network bandwidth, low push efficiency and browsing page jams, when determining the images to be displayed on the client according to the generation time of at least one image of the page to be selected, an algorithm can be used to sort the generation time of each image of the page to be selected to obtain the generation order of each image of the page to be selected, and then based on the generation order of each image of the page to be selected, each image of the page to be selected can be filtered. For example, the generation order of image 1, image 2, image 3, and image 4 is 1st, 2nd, 3rd, and 4 respectively. The filtering interval can be set, assuming it is 2, then image 1 and image 3 can be pushed to the client for display as images to be displayed, and image 2 and image 4 may not be pushed, which effectively reduces the number of pushed pages and improves the fluency of users when sliding to browse pages.

[0039] Optionally, the image to be displayed on the client is determined based on the generation time of at least one page image to be selected, including: in the process of generating at least one page image to be selected, recording the generation time of each page image to be selected; determining the image to be displayed based on the generation time of each page image to be selected and a preset interval display number.

[0040] The interval display number may be understood as a threshold value for page interval display, and may optionally be a reasonable value N. For example, N may be set to 3, 4, or 5, and may also be determined by a technician based on actual working conditions.

[0041] In practical applications, in the process of generating each page image to be selected, a counter can be used to record the generation time of each page image to be selected, and the generation order of each page image to be selected can be obtained. For example, if the counter is recorded as 1, the image generation order is the first, and if the counter is recorded as 2, the image generation order is the second. Accordingly, the counting order of each page image to be selected, that is, the generation order, can be obtained. Further, according to the counting order of each page image to be selected and the preset interval display number, the image to be pushed to the client, that is, the image to be displayed, can be determined. For example, a scroll of the client page can send a request to obtain 10 page data to the server. When the server grabs the 10 page data, the page data can be converted into corresponding images in real time. Assume that these 10 images are recorded as 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 respectively. The interval display number N is 3, which means that one image is sent to the client for every three images generated, and the others are not pushed. Accordingly, the three images 3, 6, and 9 can be pushed to the client as the images to be displayed. Exemplarily, when page scrolling is detected, that is, when a certain page image to be selected needs to be generated, the counter C=1 can be started and the page scrolling state can be set to true (success). In the process of generating each page image to be selected, the value of the counter C continues to increase. If the modulus of the counter C to N is not equal to 0, the current page image to be generated can be discarded, that is, not pushed. If the modulus is equal to 0, the current page image to be generated can be pushed to the client as the image to be displayed, effectively reducing the number of pushed images and improving the overall push efficiency. When it is detected that the page is no longer scrolling, the counter can be stopped and the page scrolling state can be set to false (failure).

[0042] S130: After determining the image to be displayed, compress the image to be displayed and send it to the client, so as to display a target page including at least one image to be displayed on the client.

[0043] In practical applications, in order to further improve the efficiency of image push, an algorithm can be used to compress the image to be displayed, thereby obtaining an image to be displayed with a small file size. The compressed image to be displayed can be sent to the client using an interface, and a page including at least one image to be displayed can be displayed on the client.

[0044] It should be noted that in order to effectively avoid the situation where a compressed and unclear image is still sent to the client when the user stops scrolling the page, an algorithm can be used to record the request duration of each page data acquisition request. If the request duration exceeds the preset duration and the next page data acquisition request is not received at the same time, it can be considered that the page data acquisition request at this time is a request to send a clear page. The acquired image corresponding to the request can be sent to the client clearly without being compressed, thereby improving the user experience.

[0045] Optionally, the page display method also includes: starting timing when a page data acquisition request is received to obtain a cumulative duration; when the cumulative duration reaches a preset clear display duration and no new data acquisition request is received, determining an image to be displayed whose generation time is the shortest from the current time interval, and sending the image to be displayed to the client to replace the image currently displayed on the client based on the image to be displayed.

[0046] The preset clear display time may be a reasonable time value, and may be optionally set between 200 and 400 ms, or may be determined by a technician based on actual working conditions.

[0047] In this embodiment, when the server receives a page data acquisition request, the timer can be used to start timing to obtain the cumulative duration corresponding to the received request. The algorithm can be used to compare the cumulative duration with the preset clear display duration in real time. If the cumulative duration reaches the preset clear display duration and no new data acquisition request is received at this time, it can be considered that the request contains a clear image to be displayed on the client. The image with the shortest image generation time and current time interval can be used as the image to be displayed, and the image to be displayed can be sent to the client for display.

[0048] It should be noted that, when it is detected that the page data needs to be converted into an image, that is, when an image needs to be generated, the timing can be started to obtain the cumulative duration. If the image generation is detected again, the timing can be restarted to obtain the cumulative duration of the current image to be generated. When the cumulative duration reaches the preset clear display duration, and the image generation is not detected again at this time, the current image to be generated can be used as the clear image to be displayed on the client. Exemplarily, when it is detected that an image needs to be generated, a timer T is started to record the cumulative duration. When the page continues to scroll, each time it is detected that an image needs to be generated, the previously set timer T is canceled, and a new timer T1 is started as the new T. At the same time, the counter C is increased by 1. When the timer T exceeds the preset clear display duration, an image of normal encoding quality is sent to the client to ensure that the image displayed by the client is consistent with the server.

[0049] In actual applications, the user can browse pages by sliding the browser page. When it is detected that the page has been slid to the bottom, it can be considered that the page scrolling state is false (failed). Optionally, based on the above solution, the page display method also includes: when it is detected that the page scrolling operation corresponds to the bottom of the target page, the last generated image of the page to be selected is sent to the client for display.

[0050] Specifically, when it is detected that the page scroll bar moves to the end, it can be considered that the page has been scrolled to the bottom of the target page. At this time, the last generated image of the page to be selected can be sent to the client for display in an image format with normal encoding quality.

[0051] On the basis of the above scheme, the specific implementation method of compressing the image to be displayed and sending it to the client is: optionally, reducing the display size of the image to be displayed and reducing the clarity of the image to be displayed to obtain a compressed image sent to the client. For example, when converting page data into an image to be displayed, an algorithm can be used to reduce the display size of the generated image to be displayed, or reduce the encoding quality of the generated image to be displayed, thereby reducing the clarity of the image to be displayed, and then the compressed image can be sent to the client. This method not only improves the encoding speed and obtains a smaller image file, but also reduces the occupation of network bandwidth and improves the efficiency of server page push.

[0052] It should be noted that when a page data acquisition request generated based on a page scrolling operation is received, after determining at least one page image to be selected corresponding to the page data acquisition request, when a page data acquisition request is received again, the page image to be displayed on the client can be re-determined based on the present technical solution.

[0053] Optionally, the page display method also includes: when a page data acquisition request is received again, re-executing the determination of at least one to-be-selected page image corresponding to the page data acquisition request, and processing the at least one to-be-selected page image to obtain a target page including at least one to-be-displayed image.

[0054] Specifically, when it is detected that the browser page is scrolled again, the server can receive the page data acquisition request again, and then re-execute the operation of obtaining at least one to-be-selected page image corresponding to the page data acquisition request, and re-determine from the to-be-selected page images the images that need to be compressed and sent to the client, the images that are discarded and not pushed, and the images that need to be sent with normal encoding quality according to the generation order of each to-be-selected page image and the preset interval display number, so as to obtain the images to be displayed on the client, and then obtain the target page browsed by the user on the client.

[0055] The technical solution of this embodiment determines at least one to-be-selected page image corresponding to the page data acquisition request when receiving a page data acquisition request generated based on a page scrolling operation, determines the to-be-selected image to be displayed on the client that needs to be compressed and the to-be-selected image that needs to be sent with normal encoding quality according to the generation time of at least one to-be-selected page image and the preset interval display number, so as to display a target page including at least one to-be-selected image on the client. This solves the problem that the prior art push method based on updating the client browsing area pushes the pages that the client wants to browse in sequence, resulting in low push efficiency, client display freezes, and affects the user experience. It realizes the determination of the images that need to be displayed on the client based on the preset interval display number, reduces the number of pushed images, and selectively compresses the to-be-selected images based on the generation time of the to-be-selected page image, pushes some images with reduced file sizes to the client, greatly improves the page push speed, and also improves the smoothness of user page browsing on the client, thereby achieving the technical effect of improving the user experience.

[0056] Embodiment 2

[0057] As an alternative embodiment of the above embodiment, Figure 2 This is a schematic diagram of a page display method provided by Embodiment 2 of the present invention. For details, please refer to the following specific content.

[0058] For example, see Figure 2, when a user accesses a web page through a local browser, the page data acquisition request will be forwarded to the remote web isolation service. The web isolation service starts the browser engine and controls the browser engine to access the real page on the Internet to grab the page data, and then can use the rendering technology to render the page data into the image of the page to be selected. When the page scrolling is detected, that is, when a certain page image to be selected needs to be generated, the counter C=1 can be started, and a timer T can be started at the same time to record the cumulative time, and the page scrolling state is set to true (success). In the process of generating each page image to be selected, the value of the counter C continues to increase. If the counter C modulo the interval display number N is not equal to 0, the current page image to be generated can be discarded, that is, not pushed. If the modulo is equal to 0, the current page image to be generated can be pushed to the client as the image to be displayed. Among them, the interval display number N is a reasonable value N, which can be set to 3, 4 or 5. When the page continues to scroll, each time it is detected that an image needs to be generated, the previously set timer T is canceled, and a new timer T1 is started as the new T, and the counter C is increased by 1. When timer T exceeds the preset clear display duration, the preset clear display duration can be a reasonable duration value, optionally, it can be set between 200 and 400ms. Send a frame image with normal encoding quality to the client to ensure that the image displayed by the client is consistent with the server. If timer T has not timed out, the encoding quality of the current image to be generated can be reduced and sent to the client, which can increase the encoding speed, obtain a smaller image file, and reduce the occupancy of the network bandwidth. When it is detected that the page is no longer scrolling, stop the counter and set the page scrolling state to false.

[0059] The technical solution of this embodiment determines at least one to-be-selected page image corresponding to the page data acquisition request when receiving a page data acquisition request generated based on a page scrolling operation, determines the to-be-selected image to be displayed on the client that needs to be compressed and the to-be-selected image that needs to be sent with normal encoding quality according to the generation time of at least one to-be-selected page image and the preset interval display number, so as to display a target page including at least one to-be-selected image on the client. This solves the problem that the prior art push method based on updating the client browsing area pushes the pages that the client wants to browse in sequence, resulting in low push efficiency, client display freezes, and affects the user experience. It realizes the determination of the images that need to be displayed on the client based on the preset interval display number, reduces the number of pushed images, and selectively compresses the to-be-selected images based on the generation time of the to-be-selected page image, pushes some images with reduced file sizes to the client, greatly improves the page push speed, and also improves the smoothness of user page browsing on the client, thereby achieving the technical effect of improving the user experience.

[0060] Embodiment 3

[0061] Figure 3 This is a structural block diagram of a page display device provided in Embodiment 3 of the present invention. The device comprises: a to-be-selected page image determination module 310, a to-be-displayed image determination module 320 and a to-be-displayed image sending module 330.

[0062] Among them, the page image determination module 310 is used to determine at least one page image to be selected corresponding to the page data acquisition request generated based on the page scrolling operation when receiving the page data acquisition request; the image determination module 320 is used to determine the image to be displayed on the client according to the generation time of the at least one page image to be selected; the image sending module 330 is used to compress the image to be displayed and send it to the client after determining the image to be displayed, so as to display the target page including at least one image to be displayed on the client.

[0063] The technical solution of this embodiment determines at least one to-be-selected page image corresponding to the page data acquisition request when receiving a page data acquisition request generated based on a page scrolling operation, determines the to-be-selected image to be displayed on the client that needs to be compressed and the to-be-selected image that needs to be sent with normal encoding quality according to the generation time of at least one to-be-selected page image and the preset interval display number, so as to display a target page including at least one to-be-selected image on the client. This solves the problem that the prior art push method based on updating the client browsing area pushes the pages that the client wants to browse in sequence, resulting in low push efficiency, client display freezes, and affects the user experience. It realizes the determination of the images that need to be displayed on the client based on the preset interval display number, reduces the number of pushed images, and selectively compresses the to-be-selected images based on the generation time of the to-be-selected page image, pushes some images with reduced file sizes to the client, greatly improves the page push speed, and also improves the smoothness of user page browsing on the client, thereby achieving the technical effect of improving the user experience.

[0064] On the basis of the above device, optionally, the to-be-selected page image determination module 310 includes a page data acquisition request generation unit, a target data range determination unit and a to-be-selected page generation unit.

[0065] A page data acquisition request generating unit, used for generating the page data acquisition request based on the page scrolling operation of the target wheel on the target page, and sending the request to the server;

[0066] a target data range determining unit, configured to receive the page data acquisition request and determine a target data range to be displayed according to a scrolling range of the page scrolling operation;

[0067] The to-be-selected page generating unit is used to generate at least one to-be-selected page image according to the target data range.

[0068] On the basis of the above device, optionally, the to-be-displayed image determination module 320 includes a generation time recording unit and a to-be-displayed image determination unit.

[0069] A generation time recording unit, used for recording the generation time of each to-be-selected page image during the process of generating the at least one to-be-selected page image;

[0070] The to-be-displayed image determination unit is used to determine the to-be-displayed image according to the generation time of each to-be-selected page image and the preset interval display quantity.

[0071] On the basis of the above device, optionally, the to-be-displayed image determination module 320 further includes a cumulative duration determination unit and a to-be-displayed image sending first unit.

[0072] A cumulative duration determining unit, configured to start timing upon receiving the page data acquisition request to obtain the cumulative duration;

[0073] The first unit for sending the image to be displayed is used to determine the image to be displayed with the shortest generation time from the current time interval when the cumulative time reaches the preset clear display time and no new data acquisition request is received, and send the image to be displayed to the client to replace the image currently displayed on the client based on the image to be displayed.

[0074] On the basis of the above device, optionally, the to-be-displayed image determination module 320 further includes a second unit for sending the to-be-displayed image.

[0075] The second unit for sending the image to be displayed is used to send the last generated image of the page to be selected to the client for display when it is detected that the page scrolling operation corresponds to the bottom of the target page.

[0076] On the basis of the above device, optionally, the to-be-displayed image sending module 330 includes a to-be-displayed image compression unit.

[0077] The image compression unit to be displayed is used to reduce the display size of the image to be displayed and reduce the clarity of the image to be displayed to obtain a compressed image sent to the client.

[0078] On the basis of the above device, optionally, the device further includes: a page data acquisition request re-receiving module.

[0079] The page data acquisition request re-receiving module is used to re-execute and determine at least one to-be-selected page image corresponding to the page data acquisition request when the page data acquisition request is re-received, and process the at least one to-be-selected page image to obtain a target page including at least one to-be-displayed image.

[0080] The page display device provided in the embodiment of the present invention can execute the page display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0081] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0082] Embodiment 4

[0083] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary electronic device 40 suitable for implementing exemplary embodiments of the present invention is shown. Figure 4 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0084] like Figure 4 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0085] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0086] The electronic device 40 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 40, including volatile and non-volatile media, removable and non-removable media.

[0087] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 40 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0088] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0089] The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboards, pointing devices, displays 410, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 40, and / or may communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 411. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 412. As shown, the network adapter 412 communicates with other modules of the electronic device 40 via the bus 403. It should be understood that although Figure 4Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0090] The processing unit 401 executes various functional applications and data processing by running the programs stored in the system memory 402, such as implementing the page display method provided in the embodiment of the present invention.

[0091] Embodiment 5

[0092] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a page display method when executed by a computer processor. The method includes:

[0093] When receiving a page data acquisition request generated based on a page scrolling operation, determining at least one to-be-selected page image corresponding to the page data acquisition request;

[0094] Determining an image to be displayed on the client according to the generation time of the at least one page image to be selected;

[0095] After the image to be displayed is determined, the image to be displayed is compressed and sent to the client, so that a target page including at least one image to be displayed is displayed on the client.

[0096] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0097] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0098] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0099] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0100] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A page display method, characterized in that: include: When receiving a page data acquisition request generated based on a page scrolling operation, determining at least one to-be-selected page image corresponding to the page data acquisition request; Determining an image to be displayed on the client according to the generation time of the at least one page image to be selected; After determining the image to be displayed, compressing the image to be displayed and sending it to the client, so as to display a target page including at least one image to be displayed on the client; The determining of the to-be-displayed image to be displayed on the client comprises: in the process of generating the at least one to-be-selected page image, recording the generation time of each to-be-selected page image; determining the to-be-displayed image according to the generation time of each to-be-selected page image and the preset interval display number; The method also includes: starting timing when the page data acquisition request is received to obtain a cumulative duration; when the cumulative duration reaches a preset clear display duration and no new data acquisition request is received, determining an image to be displayed whose generation time is the shortest from the current time interval, and sending the image to be displayed to the client to replace the image currently displayed on the client based on the image to be displayed.

2. The method according to claim 1, characterized in that The step of, upon receiving a page data acquisition request generated based on a page scrolling operation, determining at least one to-be-selected page image corresponding to the page data acquisition request, comprises: Based on the page scrolling operation of the target wheel on the target page, generating the page data acquisition request and sending it to the server; receiving the page data acquisition request, and determining a target data range to be displayed according to a scrolling range of the page scrolling operation; At least one to-be-selected page image is generated according to the target data range.

3. The method according to claim 1, characterized in that Also includes: When it is detected that the page scrolling operation corresponds to the bottom of the target page, the last generated image of the page to be selected is sent to the client for display.

4. The method according to claim 1, characterized in that: The step of compressing the image to be displayed and sending the image to the client comprises: The display size of the image to be displayed is reduced and the definition of the image to be displayed is lowered to obtain a compressed image sent to the client.

5. The method according to claim 1, characterized in that Also includes: When a page data acquisition request is received again, the at least one to-be-selected page image corresponding to the page data acquisition request is determined again, and the at least one to-be-selected page image is processed to obtain a target page including at least one to-be-displayed image.

6. A page display device, characterized in that: include: A to-be-selected page image determination module, configured to, upon receiving a page data acquisition request generated based on a page scrolling operation, determine at least one to-be-selected page image corresponding to the page data acquisition request; A to-be-displayed image determination module, configured to determine an to-be-displayed image to be displayed on the client according to a generation time of the at least one to-be-selected page image; An image sending module to be displayed, used for compressing the image to be displayed and sending it to the client after determining the image to be displayed, so as to display a target page including at least one image to be displayed on the client; The to-be-displayed image determination module comprises: a generation time recording unit, used to record the generation time of each to-be-selected page image in the process of generating the at least one to-be-selected page image; a to-be-displayed image determination unit, used to determine the to-be-displayed image according to the generation time of each to-be-selected page image and the preset interval display number; The module for determining the image to be displayed also includes: a cumulative time determination unit, which is used to start timing when the page data acquisition request is received to obtain the cumulative time; a first unit for sending the image to be displayed, which is used to determine the image to be displayed with the shortest generation time from the current time interval when the cumulative time reaches the preset clear display time and no new data acquisition request is received, and send the image to be displayed to the client to replace the image currently displayed on the client based on the image to be displayed.

7. An electronic device, characterized in that: The device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the page display method as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the page display method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method for micro-browser to process network data, micro-browser and its server

    CN101150803A

  • System and method for transferring web page data

    CN101501664A