CN107807934B - Page display method and device and computing equipment - Google Patents

Page display method and device and computing equipment Download PDF

Info

Publication number
CN107807934B
CN107807934B CN201610814414.7A CN201610814414A CN107807934B CN 107807934 B CN107807934 B CN 107807934B CN 201610814414 A CN201610814414 A CN 201610814414A CN 107807934 B CN107807934 B CN 107807934B
Authority
CN
China
Prior art keywords
page
timer
resources
loaded
specified type
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
CN201610814414.7A
Other languages
Chinese (zh)
Other versions
CN107807934A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201610814414.7A priority Critical patent/CN107807934B/en
Publication of CN107807934A publication Critical patent/CN107807934A/en
Application granted granted Critical
Publication of CN107807934B publication Critical patent/CN107807934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page display method and device and a computing device. The page display method comprises the following steps: triggering a timer in response to a predetermined condition; if the page resources of the specified type are judged to be loaded successfully before the time specified by the timer expires, the timer is terminated; and typesetting and rendering the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer. The preset conditions comprise that the page to be displayed is determined to be a first screen page, page loading is started to be requested, and/or page resources of the specified type are analyzed and determined to be loaded. The specified type of page resource may be Cascading Style Sheet (CSS). According to the invention, the longest time for loading the page resources is set by using the timer, so that the page resource request overtime which particularly occurs in the first screen display process is avoided, the webpage display speed is accelerated, and the browsing experience of a user is improved.

Description

Page display method and device and computing equipment
Technical Field
The present invention relates to the field of browser technologies, and in particular, to a method and an apparatus for increasing a web page display speed, and a computing device.
Background
After entering the mobile internet era, people are increasingly using mobile terminals such as smartphones to access the internet. With the advancement and popularization of the technology of the fifth edition of hypertext markup language (HTML5), the web page contents that can be displayed by the terminal browser are increasingly diversified. The page content may include textual information, pictorial information, audio information, video information, and the like. User interaction with the page can also be realized through the HTML5 technology, so that the user experience is greatly improved.
Due to the convenience of use and good portability of mobile terminals, more and more users use mobile networks to access the internet outdoors. The biggest problem with mobile networks is that the network signal is weak and unstable compared to local area networks such as WiFi, and the most direct impact of this is that web pages are displayed slowly. Statistically, the acceptable first screen display time of the user is 2 seconds on average. That is, if no web page content is displayed on the handset for more than 2 seconds, 90% of users will forgo browsing this web page.
Therefore, how to increase the speed of displaying a webpage under a mobile network, especially the speed of displaying a first screen, is a problem that needs to be solved urgently in the field of terminal browsers.
Disclosure of Invention
An object of the present invention is to improve the web page display speed of a client browser, especially the first screen display speed, thereby improving the user experience.
Currently, the main stream in the field of terminal browsers is a browser based on the webkit kernel. In the webkit kernel, webpage display is performed according to the basic processes of webpage loading, webpage analysis, webpage typesetting and webpage rendering, wherein the webpage analysis can be performed while the webpage is loaded. Specifically, if other resources are found to be needed within the page while the page is being parsed, a new resource request is initiated at the same time. The resources may be Cascading Style Sheets (CSS), picture resources, Javascript resources, audio-video resources, and so on. According to the webkit kernel process, if a new CSS resource request is generated in the analysis process, the webpage typesetting process is blocked before the CSS style sheet is successfully returned, and the subsequent webpage rendering is directly influenced by the blocked webpage typesetting process, so that the speed of the webpage presented to the user is influenced.
Therefore, the webpage display method and the webpage display device avoid overtime of CSS style sheet requests appearing in the first screen display process by setting the timer, so that the webpage display speed is increased, the longest time for a user to wait for the page display does not exceed the set value, and the browsing experience of the user is improved.
According to an aspect of the present invention, there is provided a page display method including the steps of: triggering a timer in response to a predetermined condition; if the page resources of the specified type are judged to be loaded successfully before the time specified by the timer expires, the timer is terminated; and typesetting and rendering the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer.
In one embodiment of the invention, the specified type of page resource is Cascading Style Sheet (CSS). It should be noted that the technical solution of the present invention is applicable to any page resource that may block the page layout and/or rendering process.
By using the method, the longest period for loading the page resources such as the CSS style sheet is specified by setting the timer, so that the condition that the page resource request is overtime is avoided, the page can be displayed in an accelerated way, and the browsing experience of a user is improved.
In one embodiment of the invention, the predetermined conditions comprise any one or more of: determining that a page to be displayed is a first screen page; starting to request page loading; and analyzing and determining that the specified type of page resource needs to be loaded.
It is noted that the present invention is preferably used for the home screen page display. Statistics shows that the influence of the first screen of the webpage on the user experience is large, and if no content is displayed on the browser within a certain time, the user can give up browsing the webpage. Of course, the invention may also be applicable to non-first screen displays, especially when the user wishes to browse as quickly as possible to portions of the content of the page.
In an embodiment of the present invention, in a case that all the page resources of the specified type in the page have not been loaded yet when the timer expires, the loading request for the page resource that has not been loaded successfully is stopped.
In order to solve the problem that page resource acquisition blocks page typesetting and rendering due to unstable network signals, the technical scheme of the invention does not continuously request unsuccessfully loaded page resources after the specified time of the timer expires, and only uses the loaded resources to perform typesetting and rendering for displaying, thereby realizing the acceleration of page display.
In a further embodiment, after the acquired page resources are displayed, loading of the unacquired page resources is automatically restarted. In addition, in a further embodiment, after reloading the specified types of page resources, the pages are rearranged and rendered for redisplay.
After the first screen display is completed, the page resources which are not acquired can be acquired in the next reloading process, so that the final display effect of the whole page is not influenced.
In one embodiment of the invention, the page display method is used for a client browser based on a webkit kernel. It should be noted that the page display method of the present invention can also be applied to any other kernel browser that is similar to the webkit kernel in operation principle, both existing and later developed.
In one embodiment of the present invention, the time specified by the timer may be determined according to statistical results. In one embodiment of the invention, the time specified by the timer may be dynamically adjusted according to certain factors.
In one example, the time required for successful loading of a specified type of page resource, e.g., 90%, may be selected as the timer time, which may be set to 1 second, for example. In another example, a page resource loading time that can be tolerated by, for example, 90% of users may be selected as the timer time, which may be set to, for example, 2 seconds. In addition, the time specified by the timer can be dynamically adjusted according to factors such as page content, target crowd, browsing time and the like.
According to another aspect of the present invention, there is provided a page display apparatus including: a trigger unit configured to trigger a timer in response to a predetermined condition; a termination unit configured to terminate the timer if it is determined that all of the specified types of page resources have been successfully loaded before the time specified by the timer expires; and the display unit is configured to perform typesetting and rendering on the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer.
In one embodiment of the invention, the predetermined conditions comprise any one or more of: determining that a page to be displayed is a first screen page; starting to request page loading; and analyzing and determining that the specified type of page resource needs to be loaded.
In one embodiment of the invention, the specified type of page resource is Cascading Style Sheet (CSS).
In one embodiment of the present invention, the page display apparatus further includes: and the loading stopping unit is configured to stop the loading request of the page resource which is not loaded successfully under the condition that all the page resources of the specified type in the page are not loaded when the timer expires.
In one embodiment of the present invention, the page display apparatus further includes: and the reloading unit is configured to automatically restart the loading of the page resources which are not acquired after the acquired page resources are displayed.
In one embodiment of the present invention, the page display apparatus further includes: and the redisplay unit is configured to perform rearrangement and rendering on the page for redisplay after the page resources of the specified type are reloaded.
In one embodiment of the invention, the page display device is used in a webkit kernel-based client browser.
In one embodiment of the invention, the time specified by the timer is determined according to a statistical result; and/or the time specified by the timer is dynamically adjusted according to certain factors.
According to yet another aspect of the present invention, there is provided a computing device comprising: a network interface that enables the computing device to communicate via one or more networks; a memory in which network resources loaded through the network interface are cached; and one or more processors coupled to the network interface and the memory, the one or more processors configured to: triggering a timer in response to a predetermined condition; if the page resources of the specified type are judged to be loaded successfully before the time specified by the timer expires, the timer is terminated; and typesetting and rendering the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer.
According to the page display method and device and the computing equipment, the longest time for loading the page resources is set by using the timer, so that the page resource request overtime in the first screen display process is avoided, the webpage display speed is increased, and the browsing experience of a user is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in greater detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
FIG. 1 is a block diagram illustrating a computing device according to an embodiment of the invention.
Fig. 2 is a flowchart illustrating a page display method according to an embodiment of the present invention.
FIG. 3 is a flow diagram illustrating a process of triggering a timer according to one embodiment of the invention.
Fig. 4 is a functional block diagram illustrating a page display apparatus according to an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As described above, in order to increase the webpage display speed, the application sets the maximum time for loading the specified type of page resources by using the timer, and when the specified time of the timer expires, stops the request for the non-acquired resources, and performs typesetting and rendering on the acquired resources to display the resources to the user, so that the user does not wait too long, thereby improving the user experience.
An embodiment of the present invention will be specifically described below with reference to fig. 1 to 4. FIG. 1 is a block diagram illustrating the structure of a computing device 100 according to an embodiment of the invention. The components of computing device 100 include, but are not limited to, a network interface 110, memory 120, and one or more processors 130. The processor 130 is coupled to the network interface 110 and the memory 120. In one embodiment of the invention, the other components of the computing device 100 described above and not shown in FIG. 1 may also be connected to each other, for example by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting upon the scope of the present invention. Those skilled in the art may add or replace other components as desired.
Computing device 100 may preferably be any type of mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device.
The network interface 110 enables the computing device 100 to communicate via one or more networks. Examples of such networks include a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The network interface 110 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
Network data accessed through the network interface 110 is cached in the memory 120. The memory 120 may include one or more of any type of storage device that stores content in the form of files or in other forms, including magnetic hard drives, solid state hard drives, semiconductor storage devices, flash memory, or any other computer readable writable storage medium capable of storing program instructions or digital information.
The processor 130 can read the network data cached in the memory 120 and is configured to trigger and control the timer to limit the maximum time for loading the network resource, so that the user does not wait too long for the web page to be displayed, thereby achieving an improvement in the user experience.
The process of the processor 130 accelerating the page display can be seen in fig. 2. FIG. 2 shows a flow diagram of a page display method 200 according to an embodiment of the invention. Hereinafter, the page display method of the present invention will be described with reference to a webkit kernel-based client browser. However, those skilled in the art will appreciate that the page display method of the present invention may also be applied to any other kernel browser, both now known and later developed, that approximates the principles of the webkit kernel.
The page display method 200 begins at step S210, as shown in fig. 2, where the processor 130 triggers a timer in response to a predetermined condition. In one embodiment of the present invention, the predetermined conditions that trigger the timer may include, but are not limited to: determining that the page to be displayed is a first screen page, analyzing and determining that the page resource of the specified type needs to be loaded, and starting to request page loading.
Specifically, step S210 may be performed only in response to the page load request start. For example, when a user starts to access a specific web page using a browser, a timer is triggered to start timing.
Preferably, step S210 is used for the top screen page display, i.e. the timer is triggered only when it is determined that the page to be displayed is the top screen page. And statistics shows that compared with a non-page first screen, the influence of the page first screen on user experience is larger. When a user browses a web page, most users will give up browsing the web page if no content is displayed on the browser for a certain time (e.g., more than two seconds). Of course, the invention may also be applicable to non-first screen displays, especially where the user wishes to browse as quickly as possible to portions of the content of the page.
As previously described, the loadable page resources in HTML5 technology may include Cascading Style Sheets (CSS), picture resources, Javascript resources, audio-video resources, and so on. According to the webkit kernel process, requests for resources such as CSS may block the web page layout and rendering process before successfully responding, thereby affecting the speed at which web pages are presented to the user.
To address the effect of loading these resources on the page display speed, preferably, in step S210, a timer may be triggered only in response to determining that a specified type of page resource needs to be loaded in the parsing flow. It should be noted that, although the page display technology of the present invention will be described below by taking CSS as an example, those skilled in the art will understand that the technical solution of the present invention can be applied to any page resource type that may block page composition and/or rendering process.
In one embodiment of the present invention, the above predetermined conditions may be used in combination. FIG. 3 illustrates a process 300 for triggering a timer according to an example. At step S310, a page request begins. Next, in step S330, the requested page is parsed. If the parsing determines that loading of the CSS style sheet is required (YES branch of step S350), process 300 proceeds to step S370. In step S370, it is determined whether the page to be currently displayed is the web page first screen. If it is determined to be the first screen in step S370, a timer is activated (step S390). If it is determined in step 350 that the page resource to be loaded is not a CSS style sheet or if it is determined in step S370 that the page to be displayed is not a top screen, process 300 may enter a flow of normally loading network resources (flow node a shown in fig. 3) without triggering a timer to count.
It should be noted that the process 300 in fig. 3 merely gives an example of the trigger timer of the present invention, wherein the order of the determination conditions may be changed as needed, or even some of the determination steps may be omitted or other determination conditions may be added. For example, the timer may be activated only after the page request starts, i.e., step S390 occurs before parsing step S330. If it is determined in steps S350 and S370 that the resource to be loaded is not the CSS style sheet or the page to be displayed is not the top screen, the timer may be ended.
Returning now to fig. 1, after triggering the timer in step S210, the method 200 proceeds to step S220, recording the CSS request list. Next, in step S230, the CSS style sheet is acquired and the CSS request list is updated.
If all CSS style sheets in the CSS request list have been acquired within the specified time of the timer ("YES" branch of step S250), the processor 130 terminates the timer (step S255). If the timer expires ("yes" branch of step S240), the resources that have been acquired are determined (step S260).
In one embodiment of the invention, in case the timer triggers out and not all CSS style sheets are acquired, the load request for unsuccessfully loaded page resources may be stopped and recorded. For example, at step S245, the CSS request list is reviewed and CSS load requests in the CSS request list that have not been responded to are removed.
Thus, the flow proceeds to step S270, and typesetting and rendering are performed for the acquired page resource, and then the page is displayed. It is to be noted that the acquired page resources referred to herein are not limited to only the specified types of page resources, but include all page resources loaded from the network for displaying pages.
By using the method, the longest period for loading the page resources such as the CSS style sheet is specified by setting the timer, so that the condition that the page resource request is overtime is avoided, the page can be displayed in an accelerated way, and the browsing experience of a user is improved.
In addition, in one embodiment, the technical solution of the present invention does not continue to request unsuccessfully loaded page resources after the time specified by the timer expires, but only performs typesetting and rendering by using the loaded resources for display, thereby achieving acceleration of page display.
In a further embodiment, after displaying the acquired page resources, if there are page resources that have not been acquired (the "yes" branch from step S282), the loading of the page resources that have not been acquired is automatically restarted, e.g., the CSS request that has not been responded to is restarted in step S284. In addition, in a further embodiment, after the page resources are reloaded (the "YES" branch of step S286), the page is re-laid out and rendered for redisplay. If it is determined in step S286 that the reloading has not been completed, the loading of the page resources is continued in step S284.
After the first screen display is completed, the page resources which are not acquired are acquired in the next reloading process, so that the final display effect of the whole page is not influenced.
In one embodiment of the present invention, the time specified by the timer may be determined based on statistical results. In one example, the time required for successful loading of a specified type of page resource, e.g., 90%, may be selected as the timer time, which may be set to 1 second, for example. In another example, a page resource loading time that can be tolerated by, for example, 90% of users may be selected as the timer time, which may be set to, for example, 2 seconds.
In one embodiment of the invention, the time specified by the timer may be dynamically adjusted according to certain factors. For example, the time specified by the timer may be dynamically adjusted based on factors such as page content, target demographic, browsing time, user preferences, and the like. In one example, if the target audience for the web page is young, the specified time of the timer may be set to be shorter in view of the lack of patience of young people. In another example, the user's browsing habits, such as the time the user browses different web pages, may be recorded, such that the specified time of the timer is dynamically adjusted according to the current page type.
Fig. 4 shows a functional block diagram of a page display apparatus 400 according to an embodiment of the present invention. The functional modules of the page display apparatus 400 may be implemented by hardware, software, or a combination of hardware and software implementing the principles of the present invention, for example, by one or more processors 130 in the computing device 100 shown in fig. 1. It will be appreciated by those skilled in the art that the functional blocks described in fig. 4 may be combined or divided into sub-blocks to implement the principles of the invention described above. Thus, the description herein may support any possible combination, or division, or further definition of the functional modules described herein.
Referring to fig. 4, the page display apparatus 400 is configured to include a trigger unit 410, a termination unit 430, and a display unit 450. In one embodiment of the invention, the page display apparatus 400 is adapted for use with a webkit kernel-based client browser. However, those of ordinary skill in the art will appreciate that the page display techniques of the present invention may also be applied to any other kernel browser, both now known and later developed, that approximates the principles of the webkit kernel.
The triggering unit 410 is configured to trigger a timer in response to a predetermined condition. In one embodiment of the invention, the predetermined condition may comprise any one or more of: determining that a page to be displayed is a first screen page; starting to request page loading; and analyzing and determining that the specified type of page resource needs to be loaded. As previously described, the triggering unit 410 preferably triggers the timer in response to determining that the page to be displayed is the top screen page. In one embodiment of the invention, the specified type of page resource is Cascading Style Sheet (CSS). It should be noted that the technical solution of the present invention can be applied to any page resource type that may block the page composition and/or rendering process.
A termination unit 430 configured to terminate the timer if it is determined that all of the page resources of the specified type have been successfully loaded before the time specified by the timer triggered by the trigger unit 410 expires. The display unit 450 is configured to perform typesetting and rendering for the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer.
In an embodiment of the present invention, the page display apparatus 400 may further include a load stop unit 470 configured to stop the load request for the page resource that is not loaded successfully, in case that all the page resources of the specified type in the page have not been loaded yet at the expiration of the timer. According to the technical scheme, after the specified time of the timer expires, the unsuccessfully loaded page resources are not continuously requested, and only the loaded resources are used for typesetting and rendering for displaying, so that the page display is accelerated.
In an embodiment of the present invention, the page display apparatus 400 may further include a reload unit 480 configured to automatically restart loading of the page resource that is not acquired after displaying the acquired page resource. In an embodiment of the present invention, the page display apparatus 400 may further include a re-display unit 490 configured to re-typeset and render the page for re-display after the specified type of page resource is re-loaded. After the first screen display is completed, the page resources which are not acquired are acquired in the next reloading process, so that the final display effect of the whole page is not influenced.
In one embodiment of the present invention, the time specified by the timer may be determined based on statistical results. In one example, the time required for successful loading of a specified type of page resource, e.g., 90%, may be selected as the timer time, which may be set to 1 second, for example. In another example, a page resource loading time that can be tolerated by, for example, 90% of users may be selected as the timer time, which may be set to, for example, 2 seconds.
In one embodiment of the invention, the time specified by the timer may be dynamically adjusted according to certain factors. For example, the time specified by the timer may be dynamically adjusted based on factors such as page content, target demographic, browsing time, user preferences, and the like. In one example, if the target audience for the web page is young, the specified time of the timer may be set to be shorter in view of the lack of patience of young people. In another example, the user's browsing habits, such as the time the user browses different web pages, may be recorded, such that the specified time of the timer is dynamically adjusted according to the current page type.
In summary, according to the page display method and apparatus and the computing device of the present invention, the maximum time for loading the page resource is set by using the timer, so that the page resource request timeout occurring particularly in the first screen display process is avoided, the web page display speed is increased, and the browsing experience of the user is improved.
Furthermore, the method according to the invention may also be implemented as a computer program comprising computer program code instructions for carrying out the above-mentioned steps defined in the above-mentioned method of the invention. Alternatively, the method according to the present invention may also be implemented as a computer program product comprising a computer readable medium having stored thereon a computer program for executing the above-mentioned functions defined in the above-mentioned method of the present invention. Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (15)

1. A page display method is used for a client browser based on a webkit kernel, and comprises the following steps:
triggering a timer in response to the analysis and determination that the page resources of the specified type need to be loaded, wherein the page resources of the specified type refer to page resources which can block page typesetting and/or rendering processes before the request for the resources successfully responds;
if the page resources of the specified type are judged to be loaded successfully before the time specified by the timer expires, the timer is terminated; and
and in response to the expiration of the timer or the expiration of the timer, typesetting and rendering the acquired page resources for page display.
2. The page display method of claim 1, further comprising:
starting to request page loading;
analyzing the requested page;
and responding to the analysis to determine that the page resource of the specified type needs to be loaded, determining whether the current page to be displayed is the first screen page, and if so, triggering the timer.
3. The page display method according to claim 1, wherein the specified type of page resource is Cascading Style Sheet (CSS).
4. The page display method according to any one of claims 1 to 3, further comprising:
and stopping the loading request of the page resources which are not loaded successfully under the condition that all the page resources of the specified type in the page are not loaded when the timer expires.
5. The page display method of claim 4, further comprising:
after the acquired page resources are displayed, loading of the page resources that are not acquired is automatically restarted.
6. The page display method of claim 5, further comprising:
and after the page resources of the specified type are reloaded, the page is rearranged and rendered for redisplay.
7. The page display method according to any one of claims 1 to 3, 5 and 6,
the time specified by the timer is determined according to a statistical result; and/or
The time specified by the timer is dynamically adjusted according to a specific factor.
8. A page display apparatus for a webkit kernel based client browser, the apparatus comprising:
the trigger unit is configured to trigger a timer in response to the analysis and the determination that the specified type of page resources need to be loaded, wherein the specified type of page resources refer to page resources which can block page typesetting and/or rendering processes before the request for the resources successfully responds;
a termination unit configured to terminate the timer if it is determined that all of the specified types of page resources have been successfully loaded before the time specified by the timer expires; and
and the display unit is configured to perform typesetting and rendering on the acquired page resources for page display in response to the expiration of the timer or the expiration of the timer.
9. The page display apparatus according to claim 8, wherein the triggering unit is configured to trigger the timer in response to the parsing determining that the specified type of page resource needs to be loaded and that the page to be currently displayed is a top screen page.
10. The page display apparatus according to claim 8, wherein the specified type of page resource is Cascading Style Sheets (CSS).
11. The page display device according to any one of claims 8 to 10, further comprising:
and the loading stopping unit is configured to stop the loading request of the page resource which is not loaded successfully under the condition that all the page resources of the specified type in the page are not loaded when the timer expires.
12. The page display apparatus of claim 11, further comprising:
and the reloading unit is configured to automatically restart the loading of the page resources which are not acquired after the acquired page resources are displayed.
13. The page display apparatus according to claim 12, further comprising:
and the redisplay unit is configured to perform rearrangement and rendering on the page for redisplay after the page resources of the specified type are reloaded.
14. The page display apparatus according to any one of claims 8 to 10, 12 and 13,
the time specified by the timer is determined according to a statistical result; and/or
The time specified by the timer is dynamically adjusted according to a specific factor.
15. A computing device, comprising:
a network interface that enables the computing device to communicate via one or more networks;
a memory in which network resources loaded through the network interface are cached; and
one or more processors coupled to the network interface and the memory, the one or more processors configured to display pages based on a webkit kernel, the one or more processors configured to:
triggering a timer in response to the analysis and determination that the page resources of the specified type need to be loaded, wherein the page resources of the specified type refer to page resources which can block page typesetting and/or rendering processes before the request for the resources successfully responds;
if the page resources of the specified type are judged to be loaded successfully before the time specified by the timer expires, the timer is terminated; and
and in response to the expiration of the timer or the expiration of the timer, typesetting and rendering the acquired page resources for page display.
CN201610814414.7A 2016-09-09 2016-09-09 Page display method and device and computing equipment Active CN107807934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610814414.7A CN107807934B (en) 2016-09-09 2016-09-09 Page display method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610814414.7A CN107807934B (en) 2016-09-09 2016-09-09 Page display method and device and computing equipment

Publications (2)

Publication Number Publication Date
CN107807934A CN107807934A (en) 2018-03-16
CN107807934B true CN107807934B (en) 2022-02-11

Family

ID=61569602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610814414.7A Active CN107807934B (en) 2016-09-09 2016-09-09 Page display method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN107807934B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451020B (en) * 2018-11-06 2021-07-06 深圳前海微众银行股份有限公司 Timeout management method, timeout management device, and computer-readable storage medium
CN109800025A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Page loading method, device, equipment and storage medium
CN111339455B (en) * 2018-12-18 2024-02-23 阿里巴巴集团控股有限公司 Method and device for loading page first screen by browser application
CN112417330A (en) * 2019-08-23 2021-02-26 腾讯科技(深圳)有限公司 Page loading method, device, equipment and storage medium
CN112579542B (en) * 2020-12-17 2023-03-21 海信视像科技股份有限公司 Display device and page drawing method
CN118069950A (en) * 2024-04-24 2024-05-24 安徽省交通规划设计研究总院股份有限公司 Webview characteristic-based method, webview characteristic-based device, webview characteristic-based equipment and webview characteristic-based medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN102902799A (en) * 2012-10-12 2013-01-30 中科方德软件有限公司 Browser page display method and device based on WebKit
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning
CN103064925A (en) * 2012-12-21 2013-04-24 广东欧珀移动通信有限公司 Method and device for regularly processing webpage
CN103294688A (en) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Web page browsing method and system
CN105812949A (en) * 2016-03-14 2016-07-27 烽火通信科技股份有限公司 EPG page self-adaptive switching method based on screen locking mode
CN105912688A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Music album information recommendation method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571868B (en) * 2010-12-31 2015-01-14 北京新媒传信科技有限公司 Instant messaging method, device and system
CN103716319B (en) * 2013-12-26 2017-06-06 新华三技术有限公司 A kind of apparatus and method of web access optimization
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294688A (en) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Web page browsing method and system
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN102902799A (en) * 2012-10-12 2013-01-30 中科方德软件有限公司 Browser page display method and device based on WebKit
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning
CN103064925A (en) * 2012-12-21 2013-04-24 广东欧珀移动通信有限公司 Method and device for regularly processing webpage
CN105812949A (en) * 2016-03-14 2016-07-27 烽火通信科技股份有限公司 EPG page self-adaptive switching method based on screen locking mode
CN105912688A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Music album information recommendation method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式浏览器渲染架构的研究与设计;唐成戬;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140115(第1期);I139-192 *

Also Published As

Publication number Publication date
CN107807934A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107807934B (en) Page display method and device and computing equipment
KR102323333B1 (en) Application data processing method and apparatus, and storage medium
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
US8943164B2 (en) Apparatus and methods for retrieving/ downloading content on a communication device
CN110110262B (en) Browser memory management method, device and equipment
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN111639289A (en) Webpage loading method and device
WO2019154014A1 (en) Video playback method and apparatus, and storage medium and electronic device
CN110209975B (en) Method, apparatus, device and storage medium for providing object
WO2017185605A1 (en) File management method and electronic equipment
CN108062336B (en) Media information processing method and device
US11604872B2 (en) Threat detection method and apparatus, and network system
CN110555179A (en) Dynamic website script evidence obtaining method, terminal equipment and storage medium
CN110866208B (en) Page response type layout method, device and equipment
CN107391163B (en) Page data loading method and device in mobile terminal and application
CN105630948B (en) Network page display method and device
WO2023056925A1 (en) Document content updating method and apparatus, and electronic device
US9942287B2 (en) Information processing system, terminal device, and method
CN111046308A (en) Page loading method and device
CN110895592B (en) Link starting method, device, equipment and medium on mobile terminal
US20140237133A1 (en) Page download control method, system and program for ie core browser
CN108984247B (en) Information display method, terminal equipment and network equipment thereof
CN110866203B (en) Page jump method, device, equipment and computer readable storage medium
CN112417330A (en) Page loading method, device, equipment and storage medium
CN110858114B (en) Webpage display method, bookmark generation method, device, equipment and medium on mobile terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200713

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Applicant before: Guangzhou Dongjing Computer Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant