CN106202072A - The method and apparatus that display content is provided - Google Patents

The method and apparatus that display content is provided Download PDF

Info

Publication number
CN106202072A
CN106202072A CN201510213460.7A CN201510213460A CN106202072A CN 106202072 A CN106202072 A CN 106202072A CN 201510213460 A CN201510213460 A CN 201510213460A CN 106202072 A CN106202072 A CN 106202072A
Authority
CN
China
Prior art keywords
page
state
rendering
display content
video
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.)
Granted
Application number
CN201510213460.7A
Other languages
Chinese (zh)
Other versions
CN106202072B (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 Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510213460.7A priority Critical patent/CN106202072B/en
Publication of CN106202072A publication Critical patent/CN106202072A/en
Application granted granted Critical
Publication of CN106202072B publication Critical patent/CN106202072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of method and apparatus for providing display content.The method includes: send the request of the page data loading the page;Stop and display content is provided;Load the page data of the described page;Perform based on the described page data loaded rendering;The page in response to the described page loads progress and page rendering progress completes, and the page obtained after rendering provides as display content.The present invention reduces blank screen, white screen or the splashette phenomenon occurred when opening the page.

Description

The method and apparatus that display content is provided
Technical field
The present invention relates to the Internet and digital TV field, particularly relate to a kind of side that display content is provided Method and device.
Background technology
In internet browsing webpage or digital television business, browser is nearly all used to show front end Data.When the page opened by browser, need to server request page data.In general, exist Fail the page data being loaded into whole page time, display have begun to display render based on this page data The obtained page.So, the page of display is exactly the most complete, it may appear that blank screen, white screen, sudden strain of a muscle Screen etc..
Summary of the invention
It is an object of the invention to reduce blank screen, white screen or the splashette phenomenon occurred when opening the page.
According to one embodiment of present invention, it is provided that a kind of for provide display content method, including: Send the request of the page data loading the page;Stop and display content is provided;Load the page of the described page Data;Perform based on the described page data loaded rendering;The page in response to the described page is loaded into Degree and page rendering progress complete, and the page obtained after rendering provides as display content.
According to another embodiment of the invention, it is provided that a kind of for providing the device of display content, bag Include: transmitting element, be configured to send the request of the page data loading the page;Stop unit, joined Being set to stop provides display content;Loading unit, is configured to load the page data of the described page;Wash with watercolours Dye unit, is configured to the described page data based on loading and renders;Unit is provided, is configured to The page in response to the described page loads progress and page rendering progress completes, the page obtained after rendering There is provided as display content.
Due to according to one embodiment of present invention, send the page data loading the page request it After be prevented from provide display content, until the described page the page load progress and page rendering progress complete Become, just recover to provide display content.So, what display showed will the be complete page rather than Partial page, and before the complete page of display current page, it is shown that the complete page of previous page Face, the middle process not having display part paging face, thus decrease occur when opening the page blank screen, White screen or splashette phenomenon.
It addition, the situation of the embodiments of the invention also page jump statement in monitoring page data Under, make the second object be in the second state, and complete in page loading progress and page rendering progress After, to judge whether the second object is in the second state.If being in the second state, instruction page adds Degree of being loaded into completes (such as the page load progress bar become 100%) to be caused due to page jump, The most just abandon the page obtained after rendering, it is to avoid will actually and incomplete current page sends To display, it is to avoid the splashette that occurs due to page jump.
Accompanying drawing explanation
The detailed description that non-limiting example is made made with reference to the following drawings by reading, this Bright other features, objects and advantages will become more apparent upon:
The flow chart of the method for providing display content that Fig. 1 is one embodiment of the invention.
The flow chart of the method for providing display content that Fig. 2 is another embodiment of the present invention.
The flow chart of the method for providing display content that Fig. 3 is another embodiment of the present invention.
The flow chart of the method for providing display content that Fig. 4 is another embodiment of the present invention.
The flow chart of the method for providing display content that Fig. 5 is another embodiment of the present invention.
Fig. 6 A-F shows the sequential effect continuously displaying two pages in prior art over the display Figure.
Fig. 7 A-F shows the sequential continuously displaying two pages in the embodiment of the present invention over the display Design sketch.
Fig. 8 A-C shows the sequential that in prior art, display shows in the case of having page jump Design sketch.
Fig. 9 A-C shows in the embodiment of the present invention that in the case of having page jump display shows Sequential design sketch.
The block diagram of the device for providing display content that Figure 10 is one embodiment of the invention.
The block diagram of the device for providing display content that Figure 11 is another embodiment of the present invention.
The block diagram of the device for providing display content that Figure 12 is another embodiment of the present invention.
The block diagram of the device for providing display content that Figure 13 is another embodiment of the present invention.
The block diagram of the device for providing display content that Figure 14 is another embodiment of the present invention.
In accompanying drawing, same or analogous reference represents same or analogous parts.
Detailed description of the invention
It should be mentioned that, some exemplary enforcements before being discussed in greater detail exemplary embodiment Example is described as process or the method described as flow chart.Although operations is described as by flow chart The process of order, but many of which operation can be implemented concurrently, concomitantly or simultaneously. Additionally, the order of operations can be rearranged.The most described process can be by Terminate, it is also possible to have the additional step being not included in accompanying drawing.Described process can correspond to Method, function, code, subroutine, subprogram etc..
Alleged " computer equipment " within a context, also referred to as " computer ", referring to can be pre-by running Determine program or instruct the smart electronics performing the predetermined process process such as numerical computations and/or logical calculated Equipment, it can include processor and memorizer, processor perform the survival prestored in memory Instruction performs predetermined process process, or is performed book office by hardware such as ASIC, FPGA, DSP Reason process, or combined by said two devices and realize.Computer equipment include but not limited to server, PC, notebook computer, panel computer, smart mobile phone etc..
Described computer equipment includes subscriber equipment and the network equipment.Wherein, described subscriber equipment includes But it is not limited to computer, smart mobile phone, PDA etc.;The described network equipment includes but not limited to single network Server, multiple webserver composition server group or based on cloud computing (Cloud Computing) The cloud being made up of a large amount of computers or the webserver, wherein, cloud computing is the one of Distributed Calculation Kind, the super virtual machine being made up of a group loosely-coupled computer collection.Wherein, described Computer equipment isolated operation can realize the present invention, it is possible to access network and by with its in network He realizes the present invention at the interactive operation of computer equipment.Wherein, the net residing for described computer equipment Network includes but not limited to the Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that described subscriber equipment, the network equipment and network etc. are only for example, other are existing Computer equipment that is that have or that be likely to occur from now on or network are such as applicable to the present invention, also should be included in Within scope, and it is incorporated herein with way of reference.
Method (some of them are illustrated by flow chart) discussed hereafter can pass through hardware, software, Firmware, middleware, microcode, hardware description language or its combination in any are implemented.When with software, When firmware, middleware or microcode are implemented, in order to implement program code or the code segment of necessary task Can be stored in machine or computer-readable medium (such as storage medium).(one or more) Processor can implement the task of necessity.
Concrete structure disclosed herein and function detail are the most representational, and are for describing The purpose of the exemplary embodiment of the present invention.But the present invention can come concrete by many alternative forms Realize, and be not interpreted as being limited only by the embodiments set forth herein.
Although retouching it should be appreciated that here may have been used term " first ", " second " etc. State unit, but these unit should not be limited by these terms.Use these terms only In order to a unit is made a distinction with another unit.For example, without departing substantially from exemplary enforcement In the case of the scope of example, first module can be referred to as second unit, and second unit similarly First module can be referred to as.Term "and/or" used herein above include one of them or more listed Any and all combination of the associated item gone out.
It should be appreciated that when a unit is referred to as " connection " or during " coupled " to another unit, its Another unit described can be connected or coupled to, or temporary location can be there is.On the other hand, When a unit is referred to as " when being directly connected " or " directly coupled " to another unit, the most there is not centre Unit.Other words being used for describing the relation between unit should be explained in a comparable manner (such as " it is in ... between " compared to " it is directly in ... between ", " with ... neighbouring " compared to " with ... directly Neighbouring " etc.).
Term used herein above is only used to describe specific embodiment and be not intended to limit exemplary Embodiment.Unless the context clearly dictates otherwise, singulative the most used herein above " ", " one " alsos attempt to include plural number.It is to be further understood that term used herein above " include " and/ Or " comprising " specifies the existence of feature, integer, step, operation, unit and/or the assembly stated, And do not preclude the presence or addition of other features one or more, integer, step, operation, unit, group Part and/or a combination thereof.
It should further be mentioned that replace in implementations at some, the function/action being previously mentioned can be by Occur according to being different from accompanying drawing the order indicated.For example, involved function/action is depended on, Two the function/actions in succession illustrated can essentially substantially simultaneously perform or sometimes can be according to Contrary order performs.
Below in conjunction with the accompanying drawings the present invention is described in further detail.
The flow chart of the method 1 for providing display content that Fig. 1 is one embodiment of the invention.
This is used for menu page or other letter providing the method 1 of display content to may be used for DTV The display of the breath page.Generally, TV programme are spread and are put, little easily produce in the middle of blank screen, white Screen, the problem of splashette, but menu page or the out of Memory page (are such as utilized on DTV The webpage that net is opened), it sometimes appear that blank screen, white screen, the problem of splashette between two pages. Such as, user opens DTV, enters main interface, and there is the option of " programme televised live " at main interface.With Family selects the option of " programme televised live " by remote controller, should display for a user and comprise CCTV1, CCTV2 Etc. the navigation page of each channel, but require time for owing to loading the page data of this page from server, Load be not fully finished during based on having loaded the page be rendered to of incomplete page data Warp-wise user show, therefore arises that blank screen, white screen, splashette etc..The method 1 is used for solving This problem.
This is used for the display providing the method 1 of display content to can be also used for generic web page, such as desktop electricity Web displaying during brain online and web displaying during surfing Internet with cell phone.Such as, user opens on mobile phone The homepage of website, clicks on a link on homepage, enters the page that this link is pointed to.Due to from clothes Business device loads the page data of the page that this link is pointed to and requires time for, in the mistake that loading is not fully finished It sometimes appear that problems such as blank screen, white screen, splashettes in journey.The method 1 can be used for solving this Problem.
Should be appreciated that the method 1 can be used for other those skilled in the art it is contemplated that the use that goes out On the way.
Display content refers to be supplied to the page for display of display.Display herein refers to For the device of display, including the display screen on the display device of desktop computer, mobile terminal, special Display device etc..In general, in the mechanism of browser, as long as browser is loaded into page data, Rendering based on page data, the page that then can obtain after rendering is delivered to display and is shown.This Individual render after, the page delivering to display and show show content exactly.
In step 110, the request of the page data loading the page is sent to server.
Page data refers to need to be sent to the data of browser for display page server, and it includes page Face content-data, page formatting data and special instruction data.Page content data refers to about the page The data of particular content.Such as, on the main interface of DTV, have " programme televised live ", " recorded broadcast saves Mesh ", " web page browsing ", " service guide " four options, these four option inherently content of pages numbers According to.Page formatting data are the positions, font, big shown over the display about page content data Little, color, whether add frame etc. and render the data of needs, such as programme televised live ", " recorded broadcast program ", " net Page browsing ", the display position of " service guide " each, font, size, color etc..When rendering, Page content data typesetting becomes to be used for the page of display according to these page formatting data.Special instruction Data refer to the data of some special instructions related to when the page shows, page jump described as follows Statement etc..
Step 110 is in response to user and carries out the selection of the option on the page of display.Counting In the example of word TV, such as, user selects " the live joint at the main interface of DTV by remote controller Mesh " option, now browser just sends the page data loading " programme televised live " page to server Request.In the example of generic web page, such as, user clicks a chain on homepage by mobile phone Connect, now browser just asking to the page data of the page of server transmission loading this link sensing Ask.
In the step 120, offer display content is provided.
Due to as it has been described above, in the mechanism of general browser, as long as browser is loaded into page data, And after carrying out based on page data rendering, the page that can obtain after rendering at once is delivered to display and is shown Show, in one embodiment of the invention, need the mechanism of browser is made change.It is by the First state of one object determines whether to stop provides display content to display.Only first In the case of object is not at the first state, just allow to provide display content to display.Browser is wanted Whether it is in the first state with reference to this first object to decide whether to provide display content to display.
First state is the state stoping and providing display content to display.
In one example, first to as if flag bit that value is 0 or 1.When the first object When being 1, the first object is in the first state;When the first object is not 1, when for example, 0, first Object is not at the first state.May be reversed setting.
In another example, first word to liking in the message that browser communicates with display Section.When the value in this field is x (for example, 5), the first object is in the first state;When this field In value for x (be not the most 5, no matter its why be worth) time, the first object is not at the first state.
In another example, first virtual switch to liking within browser.Open when virtual When closing connection, the first object is in the first state;When virtual switch is not to turn on, such as disconnect, First object is not at the first state.
In one example, step 120 realizes by making the first object be in the first state.
In step 130, the page data of the described page is loaded from server.
In step 140, based on the described page data loaded rendering is performed.
Render i.e. page composition, be by page data according to the page formatting data in page data Page content data typesetting becomes the process of the page for display.
In step 150, the page in response to the described page loads progress and page rendering progress completes, The page obtained after rendering provides as display content.
The page of the page loads progress and usually loads what progress bar determined by a page in browser. When the page loads progress bar display loading 100%, it is believed that the page of the page loads progress and completes.
The page rendering progress of the page is also the current machine-processed automatic decision by browser.When based on entirely What portion was loaded into belong to rendering of the page data of a page is complete, it is believed that page rendering progress is complete Become.
In the case of the first object being in the first state as mentioned above, the page obtained after rendering It is by being realized by the first status releasing of the first object that face provides as display content.By the first object The first status releasing after, the page obtained after current rendering will be supplied to display and show by browser Show.
Fig. 2 allows for the flow chart of the embodiment of a kind of improvement after the situation of page jump.The page Redirect and refer to such a case: due to situations such as such as webpage upgradings, Web page developer is wished right The access request of webpage A is directed on another webpage B so that the user opening webpage A is actual It is seen that webpage B.In this case, page jump statement is programmed into webpage by Web page developer In the page data of A.Such as, find when browser is loaded with the 10% of the page data of webpage A Having the page jump statement to webpage B, the page data just automatically considering page A has loaded Become, the page is loaded progress bar and is set as 100%, then initiate the webpage that page jump statement is pointed to The load request of B.At this moment it is owing to above-mentioned cause specific causes that the page load progress to become 100% 's.But according to Fig. 1, browser still identifies the data of loading and exceedes threshold value, still can be by reality On be based only on the page that the page data of be loaded into 10% renders and issue display and show, cause Splashette.This splashette being likely to result in due to page jump has been carried out further by the embodiment of Fig. 2 Eliminate.
In step 110, the request of the page data loading the page is sent to server.
In the step 120, offer display content is provided.
In step 130, the page data of the described page is loaded from server.
In step 131, monitor the page jump statement in the page data of the described page loaded.
If it is monitored that described page jump statement, the most as prior art, in step 138 Perform page jump, the i.e. page jumped to the instruction of page jump statement and initiate to load the page of this page The request of face data, starts to re-execute from step 110, the most in step 132, makes second Object is in the second state, then performs step 140.
Second state is to show that the page loads progress and completes (the such as page loads progress bar and becomes 100%) It it is the state caused due to page jump.
In one example, second to as if flag bit that value is 0 or 1.When the second object When being 1, the second object is in the second state;When the second object is not 1, when for example, 0, second Object is not at the second state.May be reversed setting.
In another example, second word to liking in the message that browser communicates with display Section.When the value in this field is x (for example, 5), the second object is in the second state;When this field In value for x (be not the most 5, no matter its why be worth) time, the second object is not at the second state.
In another example, second virtual switch to liking within browser.Open when virtual When closing connection, the second object is in the second state;When virtual switch is not to turn on, such as disconnect, Second object is not at the second state.
If not monitoring described page jump statement, directly perform step 140.
In step 140, based on the described page data loaded rendering is performed.
Step 150 in Fig. 2 includes:
In step 1501, it is judged that whether the second object is in the second state.
In step 1502, in response to judging that the second object is not at the second state, such as second The flag bit of object is 0, illustrates that current page is the normal page not having page jump statement, the most normal The page that ground obtains after rendering provides as display content to display.
In step 1503, in response to judging that the second object is in the second state, such as right as second The flag bit of elephant is 1, illustrates that current page is the page containing page jump statement, and this page itself is not Should be shown, the page jumped to of page jump statement instruction should be shown that, then abandon this and render After the page that obtains, such display would not show current page.It addition, release the of the second object Two-state.
It addition, include resolution switching statement in the page data of some pages loaded, it is meant that For page data includes the page of resolution switching statement, it is desirable to show with the resolution after switching This page.If according to the scheme of prior art, the page obtained after loading and rendering is immediately provided to show Show that device shows, before the resolution switching statement in monitoring the page data of the page of loading, in fact It is loaded with partial page data, provides based on the page obtained after this partial page data render Show to display.Therefore, during the scheme of prior art can cause the page of display, a part is with switching Front resolution shows, a part shows with the resolution after switching, affects visual effect.
In an embodiment of the present invention, the page of the most described page loads progress and page rendering progress is complete Cheng Hou, just provides display content to display, is the most all temporarily stored in such as caching.Therefore, Can resolution switching statement in the page data monitoring the page time, first delay resolution switching, After the page loading progress of the most described page and page rendering progress complete, then unification obtains after rendering The page carry out resolution switching, it is to avoid the resolution skimble-scamble problem that the page shows.Fig. 3 is this Invent the stream of the method 1 that display content is provided in the case of having resolution switching of another embodiment Cheng Tu.
In step 110, the request of the page data loading the page is sent to server.
In the step 120, offer display content is provided.
In step 130, the page data of the described page is loaded from server.
In step 133, monitor the resolution switching statement in the page data of the described page loaded.
In step 134, in response to monitoring described resolution switching statement, the 3rd object is made to be in the Three condition, and the execution of delay resolution switching statement.
The third state is the state showing to have resolution switching statement in the page data of the page loaded.
In one example, the 3rd to as if flag bit that value is 0 or 1.When the 3rd object When being 1, the 3rd object is in the third state;When the 3rd object is not 1, when for example, 0, the 3rd Object is not at the third state.May be reversed setting.
In another example, the 3rd word to liking in the message that browser communicates with display Section.When the value in this field is x (for example, 5), the 3rd object is in the third state;When this field In value for x (be not the most 5, no matter its why be worth) time, the 3rd object is not at the third state.
In another example, the 3rd virtual switch to liking within browser.Open when virtual When closing connection, the 3rd object is in the third state;When virtual switch is not to turn on, such as disconnect, 3rd object is not at the third state.
In step 140, based on the described page data loaded rendering is performed.
In step 150, the page in response to the described page loads progress and page rendering progress completes, The page obtained after rendering provides as display content.
Step 150 in Fig. 3 includes:
In step 1504, it is judged that whether the 3rd object is in the third state;
In step 1505, in response to judging that the 3rd object is in the third state, such as right as the 3rd The flag bit of elephant is 1, illustrates that current page should perform resolution switching, the then page obtained after rendering this Face performs resolution switching statement, resolution is switched after rendering after statement performs the page that obtains as Display content provides, and releases the third state of the 3rd object.
In step 1506, in response to judging that the 3rd object is not at the third state, such as the 3rd The flag bit of object is 0, illustrates that current page should not perform resolution switching, then directly will obtain after rendering The page arrived provides as display content.
It addition, containing video in some pages.Such as, the homepage of certain company had both contained the letter of the said firm It is situated between, introduces regarding of development of company history at a special position (such as webpage center) containing one again Frequently.Being expected to user and enter this homepage, it is seen that after main Word message, this video just commences play out. For such page, containing video link in its page data.In the page data of this homepage, should Video link may be loaded into prior to other Word message.Obtain after prior art loads and renders The page is immediately provided in the scheme that display shows, after browser monitors to this video link, on the one hand Initiate video request to the address that video link points to, on the other hand after rendering with this video link The page just provides to display and is used for showing.So, this video link may be prior to other word described Information is shown device and shows, then video request is initiated in the address owing to having pointed to video link, After this address receives video, video begins to play, but now other Word message described may Have not been completed owing to loading accordingly and rendering and do not show.In that way it is possible to will a piece of blank screen, Play video under the background of white screen or splashette, affect visual effect.
In an embodiment of the present invention, the page of the most described page loads progress and page rendering progress is complete Become, just provide display content to display, be the most all temporarily stored in such as caching.Therefore, Can video link in the page data monitoring the page time, first postpone the ground pointed to video link Video request is initiated in location, and the page of the most described page loads progress and page rendering progress completes, Xiang Xian Show that device provides with the page obtained after the rendering of this video link, the address then pointed to video link Initiate video request.So, it is to show at display at the full page with whole Word messages every time After showing, just commence play out video, eliminate under the background of blank screen, white screen or splashette, play video Problem.In what Fig. 4 was another embodiment of the present invention provides display in the case of having resolution switching The flow chart of the method 1 held.
In step 110, the request of the page data loading the page is sent to server.
In the step 120, offer display content is provided.
In step 130, the page data of the described page is loaded from server.
In step 135, the video link in the page data of the described page loaded is monitored.
In step 136, in response to monitoring described video link, the 4th object is made to be in the 4th state, Postpone to initiate to the address that video link points to video request, then perform step 140.
The third state is the state showing to have video link in the page data of the page loaded.
In one example, the 4th to as if flag bit that value is 0 or 1.When the 4th object When being 1, the 4th object is in the 4th state;When the 4th object is not 1, when for example, 0, the 4th Object is not at the 4th state.May be reversed setting.
In another example, the 4th word to liking in the message that browser communicates with display Section.When the value in this field is x (for example, 5), the 4th object is in the 4th state;When this field In value for x (be not the most 5, no matter its why be worth) time, the 4th object is not at the 4th state.
In another example, the 4th virtual switch to liking within browser.Open when virtual When closing connection, the 4th object is in the 4th state;When virtual switch is not to turn on, such as disconnect, 4th object is not at the 4th state.
If not monitoring described video link, the most directly perform step 140.
In step 140, based on the described page data loaded rendering is performed.
The page obtained after rendering comprises only video link, does not contains video, because also not to video Video request is initiated in the address that link is pointed to.
In step 150, the page in response to the described page loads progress and page rendering progress completes, The page obtained after rendering provides as display content.
In step 1601, it is judged that whether the 4th object is in the 4th state.
In step 1602, in response to judging that the 4th object is in the 4th state, illustrate that current page is Containing the page of video, now initiate video request to the address that video link points to, so from this ground Video just can be play after receiving video on the page of display in location.It addition, release the of the 4th object Four states.
If it is judged that the 4th mark is not at the 4th state, then explanation current page is free from video The page, does not the most make any process.
During it addition, the requirement switched for existing resolution, the page comprise video again, not only need Want delay resolution switching and to video link point to address initiate video request, in addition it is also necessary to consider due to Resolution switching causes the change of video playback position.Fig. 5 is having point of another embodiment of the present invention The flow chart of the method 1 of display content is provided in the case of resolution switching.
In step 110, the request of the page data loading the page is sent to server.
In the step 120, offer display content is provided.
In step 130, the page data of the described page is loaded from server.
In step 133, monitor the resolution switching statement in the page data of the described page loaded.
In step 134, in response to monitoring described resolution switching statement, the 3rd object is made to be in the Three condition, and the execution of delay resolution switching statement, then perform step 140.
If not monitoring resolution switching statement, perform step 135.
In step 135, the video link in the page data of the described page loaded is monitored.
In step 137, if it is monitored that described video link, the 4th object is made to be in the 4th state, Postpone to initiate video request to the address that video link points to, according to the switching of resolution switching statement instruction After resolution determine video resolution switch after the page in play position.
Determine that the play position in the video page after resolution switches is permissible according to the resolution after switching Realized by existing method.
In step 140, based on the described page data loaded rendering is performed.
In step 150, the page in response to the described page loads progress and page rendering progress completes, The page obtained after rendering provides as display content.
Step 150 in Fig. 5 includes:
In step 1504, it is judged that whether the 3rd object is in the third state;
In step 1505, in response to judging that the 3rd object is in the third state, such as right as the 3rd The flag bit of elephant is 1, illustrates that current page should perform resolution switching, the then page obtained after rendering this Face performs resolution switching statement, resolution is switched after rendering after statement performs the page that obtains as Display content provides, and releases the third state of the 3rd object.
In step 1506, in response to judging that the 3rd object is not at the third state, such as the 3rd The flag bit of object is 0, illustrates that current page should not perform resolution switching, then directly will obtain after rendering The page arrived provides as display content.
In step 1601, after the page obtained after rendering provides as display content, it is judged that the 4th is right As if no it is in the 4th state.
In step 1603, in response to judging that the 4th object is in the 4th state, illustrate in current page Containing video, now initiate video request to the address that video link points to, with determined by play position Play the video that this video request is asked, and release the 4th state of the 4th object.
If it is judged that the 4th object is not at the 4th state, the most do not carry out any process.
Fig. 6 A-F shows the sequential effect continuously displaying two pages in prior art over the display Figure, its correspond respectively to 1 on such as time shaft, 2,3 ... the display during second shows.Fig. 7 A-F Show the sequential design sketch continuously displaying two pages after implementing the embodiment of the present invention over the display, Its correspond respectively to 1 on such as time shaft, 2,3 ... the display during second shows.
Two page such as Fig. 6 C and Fig. 6 F to be continuously displayed for Fig. 6 A-F.Owing to loading page number Require time for according to rendering, at the 1st second, the loading of the page data of the page of Fig. 6 C and based on it Render almost without carrying out, therefore, display is shown that blank screen, as shown in Figure 6A.? 2 seconds, page data and based on it the rendering of the profile of face completed, and therefore, display only shows Go out the profile of face, as shown in Figure 6B.At the 3rd second, the page data of whole face and wash with watercolours based on it Dye is completed, and therefore, display demonstrates whole face, as shown in Figure 6 C.At the 4th second, open Begin to carry out the display of next page to be shown, the i.e. display of the page shown in Fig. 6 F, but now Fig. 6 F The loading of page data of the page and based on it render almost without carrying out, therefore, display shows Show is blank screen, as shown in Figure 6 D.At the 5th second, a fraction of page number of the cloud in Fig. 6 F According to and based on it rendering complete, therefore, display only demonstrates the sub-fraction of this cloud, as figure Shown in 6E.At the 6th second, page data and based on it the rendering of whole cloud were completed, therefore, Display demonstrates whole cloud, as fig 6 f illustrates.
Fig. 7 A-F is the display situation that uses embodiments of the invention the most corresponding with Fig. 6 A-F.By Require time in loading page data and rendering, at the 1st second, the loading of the page data of face and based on Rendering of its does not complete.Owing to, in the embodiment of the present invention, the page in response to the described page is loaded into Degree and page rendering progress complete, and the page obtained after just rendering carries as display content to display Confession, therefore, display is shown that blank screen, as shown in Figure 7 A.At the 2nd second, the profile of face Page data and based on it rendering complete, but owing to the page of the described page loads progress and the page The progress that renders does not completes, and what therefore display showed remains blank screen, as shown in Figure 7 B.? 3rd second, page data and based on it the rendering of whole face were completed, and therefore, display shows Go out whole face, as seen in figure 7 c.At the 4th second, proceed by the display of next page to be shown, The i.e. display of cloud, but now loading and based on it the rendering of the page data of cloud do not complete.Due to In the embodiment of the present invention, the page in response to the described page loads progress and page rendering progress completes, The page obtained after just rendering provides as display content to display, therefore, does not show content Thering is provided to display, display remains in that its current display, therefore the page of display and Fig. 7 C mono- Sample, as illustrated in fig. 7d.At the 5th second, a fraction of page data of cloud and based on it render Complete, but owing to page loading progress and the page rendering progress of the described page do not complete, because of This does not show that content provides to display, and display remains in that its current display, such as Fig. 7 E Shown in.At the 6th second, page data and based on it the rendering of whole cloud were completed, therefore, aobvious Show that device demonstrates whole cloud, as shown in Figure 7 F.
From the contrast of Fig. 6 A-F and Fig. 7 A-F it can be seen that the embodiment of the present invention, except such as using Some blank screens, white screen or splashette may be seen, when just having started online or just opened DTV in family Through opening in the case of a page opens another page again, centre will not occur blank screen, white screen or The phenomenon of splashette.
Fig. 8 A-C shows the sequential that in prior art, display shows in the case of having page jump Design sketch.Fig. 9 A-C shows that in the embodiment of the present invention, display shows in the case of having page jump The sequential design sketch shown.
In the prior art, Fig. 8 A is the page that display shows at the beginning, i.e. one smiling face.Then, User opens another page, and this another page is prescribed the page jumping to the cloud shown in Fig. 8 C.But It is that, before the page jump statement in the page data monitoring this another page, actually this is another A part in one page has loaded and has completed to render accordingly, and they can provide aobvious on display Show, therefore, the page of a splashette can be shown before Fig. 8 A and 8C, as shown in Figure 8 B.
In embodiments of the present invention, Fig. 9 A is the page that display shows at the beginning, i.e. one smiling face. Then, user opens another page, and this another page is prescribed the page jumping to the cloud shown in Fig. 9 C Face.But, there is page jump statement owing to monitoring in the page data of another page described in loading, Therefore making the second object be in the second state, the page at the page loads progress and page rendering progress completes After, it is judged that the second object is in the second state, and showing that its page loads progress is owing to page jump makes The page must load progress bar is mandatory to be become 100% and complete, abandon this and render the page obtained and do not show Show, now display remains in that the page shown before, as shown in Figure 9 B, it is to avoid the problem of splashette.
According to one embodiment of present invention, it is provided that a kind of for provide display content device 2, as Shown in Figure 10, including: transmitting element 210, it is configured to send the request of the page data loading the page; Stoping unit 220, being configured to stop provides display content;Loading unit 230, is configured to load institute State the page data of the page;Rendering unit 240, is configured to the described page data based on loading and carries out Render;Thering is provided unit 250, the page being configured to respond to the described page loads progress and page rendering Progress completes, and the page obtained after rendering provides as display content.
Alternatively, unit 220 is stoped to be configured to make the first object be in the first state, wherein Stop in the case of the first object is in the first state and display content is provided;There is provided unit 250 further It is configured to release the first state of the first object, is wherein not at the situation of the first state at the first object Lower permission provides display content
As shown in figure 11, this device 2 can also include: the first monitor unit 231, is configured to monitor Page jump statement in the page data of the described page loaded;Second Obj State arranges unit 232, It is configured to respond to monitor described page jump statement, the second object is in the second state.There is provided Unit 250 includes: the first judgment sub-unit 2501, is configured to judge whether the second object is in second State;First provides subelement 2502, is configured to respond to judge that the second object is not at the second shape State, the page obtained after rendering provides as display content;First processes subelement 2503, is configured For in response to judging that the second object is in the second state, abandoning the page obtained after this renders, and release Second state of the second object.
As shown in figure 12, this device 2 can also include: the second monitor unit 233, is configured to monitor Resolution switching statement in the page data of the described page loaded;First processing unit 234, is joined It is set to, in response to monitoring described resolution switching statement, make the 3rd object be in the third state, and postpone The execution of resolution switching statement.There is provided unit 250 to include: the second judgment sub-unit 2504, be configured For judging whether the 3rd object is in the third state;Second processes subelement 2505, is configured to respond to Judge that the 3rd object is in the third state, the page obtained after rendering performed resolution switching statement, After resolution switches rendering after statement performs, the page that obtains provides as display content, and releases the The third state of three objects;Second provides subelement 2506, is configured to respond to judge the 3rd object Being not at the third state, the page obtained after rendering provides as display content.
As shown in figure 13, this device 2 can also include: the 3rd monitor unit 235, is configured to monitor Video link in the page data of the described page loaded;Second processing unit 236, is configured to ring Ying Yu monitors described video link, makes the 4th object be in the 4th state, and postpones to refer to video link To address initiate video request;Judging unit 2601, the page obtained after being configured to render as After display content provides, it is judged that whether the 4th object is in the 4th state;3rd processing unit 2602, quilt It is configured in response to judging that the 4th object is in the 4th state, initiates to regard to the address that video link points to Frequency request, and release the 4th state of the 4th object.
As shown in figure 14, this device 2 can also include: the 4th monitor unit 235, is configured to prison Depending on the video link in the page data of the described page loaded;Fourth processing unit 237, is configured to In response to the video link in the page data of the described page not only monitoring loading, but also monitor described point Resolution switching statement, makes the 4th object be in the 4th state, postpones to initiate to the address that video link points to Video request, and determine that video is in resolution according to the resolution after the switching of resolution switching statement instruction The play position in the page after switching;Judging unit 2601, the page obtained after being configured to render After providing as display content, it is judged that whether the 4th object is in the 4th state;5th processing unit 2603, It is configured to respond to judge that the 4th object is in the 4th state, initiates to the address that video link points to Video request, with determined by play position play the video that this video request is asked, and release 4th state of four objects.
It should be noted that the present invention can be carried out in the assembly of hardware at software and/or software, Such as, each unit in device 2 can use special IC (ASIC) or any other be similar to Hardware device realizes.In one embodiment, the software program of the present invention can be held by processor Row is to realize steps described above or function.Similarly, the software program of the present invention (includes being correlated with Data structure) can be stored in computer readable recording medium storing program for performing, such as, RAM memory, Magnetically or optically driver or floppy disc and similar devices.It addition, some steps of the present invention or function can be adopted Realize with hardware, such as, perform the circuit of each step or function as coordinating with processor.
It is obvious to a person skilled in the art that the invention is not restricted to the thin of above-mentioned one exemplary embodiment Joint, and without departing from the spirit or essential characteristics of the present invention, it is possible to concrete with other Form realizes the present invention.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary , and be nonrestrictive, the scope of the present invention is limited by claims rather than described above It is fixed, it is intended that all changes fallen in the implication of equivalency and scope of claim are included In the present invention.Any reference in claim should not be considered as limit involved right want Ask.Furthermore, it is to be understood that " an including " word is not excluded for other unit or step, odd number is not excluded for plural number.System In system claim, multiple unit or the device of statement can also be passed through software by a unit or device Or hardware realizes.The first, the second word such as grade is used for representing title, and is not offered as any specific Order.
Although the most specifically shown and describe exemplary embodiment, but those skilled in the art will Will be appreciated that, in the case of without departing substantially from the spirit and scope of claims, in its form with thin Joint aspect can be varied from.Protection sought herein illustrates in the dependent claims.

Claims (12)

1. the method being used for providing display content, it is characterised in that including:
Send the request of the page data loading the page;
Stop and display content is provided;
Load the page data of the described page;
Perform based on the described page data loaded rendering;
The page in response to the described page loads progress and page rendering progress completes, and obtains after rendering The page provides as display content.
Method the most according to claim 1, it is characterised in that described prevention provides the step of display content Including making the first object be in the first state, wherein stop in the case of the first object is in the first state Display content is provided;
The described page in response to the described page loads progress and page rendering progress completes, and will obtain after rendering To the page as display content provide step include: release the first state of the first object, Qi Zhong First object allows in the case of being not at the first state to provide display content.
Method the most according to claim 1, it is characterised in that also include:
Monitor the page jump statement in the page data of the described page loaded;
In response to monitoring described page jump statement, the second object is made to be in the second state, and
The described page in response to the described page loads progress and page rendering progress completes, and will obtain after rendering To the page as display content provide step include:
Judge whether the second object is in the second state;
In response to judging that the second object is not at the second state, the page obtained after rendering is as display Content provides;
In response to judging that the second object is in the second state, abandon the page obtained after this renders, and solve The second state except the second object.
4. according to the method for any one in claim 1-3, it is characterised in that also include:
Monitor the resolution switching statement in the page data of the described page loaded;
In response to monitoring described resolution switching statement, make the 3rd object be in the third state, and postpone The execution of resolution switching statement, and
The described page in response to the described page loads progress and page rendering progress completes, and will obtain after rendering To the page as display content provide step include:
Judge whether the 3rd object is in the third state;
In response to judging that the 3rd object is in the third state, the page obtained after rendering this performs resolution Rate switching statement, after resolution switches rendering after statement performs, the page that obtains carries as display content Confession, and release the third state of the 3rd object;
In response to judging that the 3rd object is not at the third state, the page obtained after this being rendered is as aobvious Show that content provides.
5. according to the method for any one in claim 1-3, it is characterised in that also include:
Monitor the video link in the page data of the described page loaded;
In response to monitoring described video link, make the 4th object be in the 4th state, and postpone to video Video request is initiated in the address that link is pointed to;
After the page obtained after rendering provides as display content, it is judged that whether the 4th object is in the 4th State;
In response to judging that the 4th object is in the 4th state, initiate video to the address that video link points to Request, and release the 4th state of the 4th object.
Method the most according to claim 4, it is characterised in that also include:
Monitor the video link in the page data of the described page loaded;
In response to the video link in the page data of the described page not only monitoring loading, but also monitor institute State resolution switching statement, make the 4th object be in the 4th state, postpone the address pointed to video link Initiate video request, and determine that video is dividing according to the resolution after the switching of resolution switching statement instruction The play position in the page after resolution switching;
After the page obtained after rendering provides as display content, it is judged that whether the 4th object is in the 4th State;
In response to judging that the 4th object is in the 4th state, initiate video to the address that video link points to Request, with determined by play position play the video that this video request is asked, and it is right to release the 4th 4th state of elephant.
7. the device being used for providing display content, it is characterised in that including:
Transmitting element, is configured to send the request of the page data loading the page;
Stoping unit, being configured to stop provides display content;
Loading unit, is configured to load the page data of the described page;
Rendering unit, is configured to the described page data based on loading and renders;
Thering is provided unit, the page loading progress and the page rendering progress that are configured to respond to the described page are complete Becoming, the page obtained after rendering provides as display content.
Device the most according to claim 7, it is characterised in that stop unit to be configured to make the One object is in the first state, wherein stops in the case of the first object is in the first state and provides display Content;
Unit is provided to be configured to release the first state of the first object, wherein at the first object not Allow in the case of being in the firstth state to provide display content.
Device the most according to claim 7, it is characterised in that also include:
First monitor unit, is configured to the page jump monitoring in the page data of the described page loaded Statement;
Second Obj State arranges unit, is configured to respond to monitor described page jump statement, makes Second object is in the second state, and
Offer unit includes:
First judgment sub-unit, is configured to judge whether the second object is in the second state;
First provides subelement, is configured to respond to judge that the second object is not at the second state, will The page obtained after rendering provides as display content;
First processes subelement, is configured to respond to judge that the second object is in the second state, abandons This page obtained after rendering, and release the second state of the second object.
10. according to the device of any one in claim 7-9, it is characterised in that also include:
Second monitor unit, the resolution being configured to monitor in the page data of the described page loaded is cut Change statement;
First processing unit, is configured to respond to monitor described resolution switching statement, and it is the 3rd right to make As being in the third state, and the execution of delay resolution switching statement, and
Offer unit includes:
Second judgment sub-unit, is configured to judge whether the 3rd object is in the third state;
Second processes subelement, is configured to respond to judge that the 3rd object is in the third state, to wash with watercolours The page that obtains after dye performs resolution switching statement, resolution is switched after rendering after statement performs The page arrived provides as display content, and releases the third state of the 3rd object;
Second provides subelement, is configured to respond to judge that the 3rd object is not at the third state, will The page obtained after rendering provides as display content.
11. according to the device of any one in claim 7-9, it is characterised in that also include:
3rd monitor unit, is configured to the video link monitoring in the page data of the described page loaded;
Second processing unit, is configured to respond to monitor described video link, makes the 4th object be in 4th state, and postpone to initiate video request to the address that video link points to;
Judging unit, after the page obtained after being configured to render provides as display content, it is judged that the Whether four objects are in the 4th state;
3rd processing unit, is configured to respond to judge that the 4th object is in the 4th state, to video Video request is initiated in the address that link is pointed to, and releases the 4th state of the 4th object.
12. devices according to claim 10, it is characterised in that also include:
4th monitor unit, is configured to the video link monitoring in the page data of the described page loaded;
Fourth processing unit, is configured to respond to both to monitor in the page data of the described page of loading Video link, again monitor described resolution switching statement, make the 4th object be in the 4th state, prolong Video request is initiated late to the address that video link points to, and according to the switching of resolution switching statement instruction After resolution determine video resolution switch after the page in play position;
Judging unit, after the page obtained after being configured to render provides as display content, it is judged that the Whether four objects are in the 4th state;
5th processing unit, is configured to respond to judge that the 4th object is in the 4th state, to video Video request is initiated in the address that link is pointed to, with determined by play position play this video request and asked The video arrived, and release the 4th state of the 4th object.
CN201510213460.7A 2015-04-29 2015-04-29 The method and apparatus of display content are provided Active CN106202072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510213460.7A CN106202072B (en) 2015-04-29 2015-04-29 The method and apparatus of display content are provided

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510213460.7A CN106202072B (en) 2015-04-29 2015-04-29 The method and apparatus of display content are provided

Publications (2)

Publication Number Publication Date
CN106202072A true CN106202072A (en) 2016-12-07
CN106202072B CN106202072B (en) 2019-12-03

Family

ID=57458195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510213460.7A Active CN106202072B (en) 2015-04-29 2015-04-29 The method and apparatus of display content are provided

Country Status (1)

Country Link
CN (1) CN106202072B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229475A (en) * 2017-06-05 2017-10-03 掌阅科技股份有限公司 Page display method, electronic equipment and computer-readable storage medium
CN107908455A (en) * 2017-11-20 2018-04-13 烽火通信科技股份有限公司 The switching method and switching system of a kind of browser page
CN108334349A (en) * 2017-08-29 2018-07-27 广东欧珀移动通信有限公司 Mobile terminal and its display picture changeover method, computer readable storage medium
CN110704125A (en) * 2019-09-19 2020-01-17 腾讯科技(深圳)有限公司 Webpage loading method and device, storage medium and terminal equipment
CN113626000A (en) * 2021-08-11 2021-11-09 中国工商银行股份有限公司 Method and device for automatically switching page layout according to access mode
CN114035857A (en) * 2021-10-19 2022-02-11 四川天邑康和通信股份有限公司 Android webview set top box page loading optimization system and processing method
CN114461316A (en) * 2021-07-27 2022-05-10 荣耀终端有限公司 Rendering method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021847A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for optimizing embedded browser page display effect
CN102436455A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Method and system for browsing characters as well as client browser
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method
CN103279517A (en) * 2013-05-27 2013-09-04 中山爱科数字科技股份有限公司 Webpage content showing method
CN103389912A (en) * 2012-05-09 2013-11-13 阿里巴巴集团控股有限公司 Browser kernel switching method, system and device
CN103677491A (en) * 2012-09-03 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for rendering website
US20140365859A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Media interface tools and animations
CN104408204A (en) * 2014-12-18 2015-03-11 北京国双科技有限公司 Method and device for obtaining webpage page link address

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021847A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for optimizing embedded browser page display effect
CN102436455A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Method and system for browsing characters as well as client browser
CN103389912A (en) * 2012-05-09 2013-11-13 阿里巴巴集团控股有限公司 Browser kernel switching method, system and device
CN103677491A (en) * 2012-09-03 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for rendering website
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method
CN103279517A (en) * 2013-05-27 2013-09-04 中山爱科数字科技股份有限公司 Webpage content showing method
US20140365859A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Media interface tools and animations
CN104408204A (en) * 2014-12-18 2015-03-11 北京国双科技有限公司 Method and device for obtaining webpage page link address

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229475A (en) * 2017-06-05 2017-10-03 掌阅科技股份有限公司 Page display method, electronic equipment and computer-readable storage medium
CN108334349A (en) * 2017-08-29 2018-07-27 广东欧珀移动通信有限公司 Mobile terminal and its display picture changeover method, computer readable storage medium
CN108334349B (en) * 2017-08-29 2021-07-13 Oppo广东移动通信有限公司 Mobile terminal, display image switching method thereof and computer-readable storage medium
CN107908455A (en) * 2017-11-20 2018-04-13 烽火通信科技股份有限公司 The switching method and switching system of a kind of browser page
CN107908455B (en) * 2017-11-20 2020-12-08 烽火通信科技股份有限公司 Browser page switching method and system
CN110704125A (en) * 2019-09-19 2020-01-17 腾讯科技(深圳)有限公司 Webpage loading method and device, storage medium and terminal equipment
CN110704125B (en) * 2019-09-19 2024-06-21 腾讯科技(深圳)有限公司 Webpage loading method and device, storage medium and terminal equipment
CN114461316A (en) * 2021-07-27 2022-05-10 荣耀终端有限公司 Rendering method and device
CN113626000A (en) * 2021-08-11 2021-11-09 中国工商银行股份有限公司 Method and device for automatically switching page layout according to access mode
CN113626000B (en) * 2021-08-11 2024-08-02 中国工商银行股份有限公司 Method and device for automatically switching page layout according to access mode
CN114035857A (en) * 2021-10-19 2022-02-11 四川天邑康和通信股份有限公司 Android webview set top box page loading optimization system and processing method

Also Published As

Publication number Publication date
CN106202072B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN106202072A (en) The method and apparatus that display content is provided
CN107122192B (en) Webpage view methods of exhibiting, calculates equipment and storage medium at device
CN108595242B (en) Page display method, electronic equipment and computer storage medium
CN106156066B (en) Page switching method, device and client
CN107315580A (en) Component processing method, device and the equipment of user interface, computer-readable recording medium
CN108733291B (en) Notification message processing method and device
JP5932831B2 (en) Managing an immersive environment
CN102117290A (en) Method and system used for showing page elements in webpage
CN104808889A (en) Page switching method and electronic equipment
CN104102643A (en) Method and device for snapshoting page
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN108268578A (en) The method and system of Web page picture loading
CN109992736A (en) Webpage dynamically load effect implementation method, device, terminal and storage medium
CA3069374A1 (en) View switching
CN111898056A (en) Webpage display method and device, storage medium and electronic equipment
CN102880391A (en) Display control equipment and method for changing displayed content in browser window
CN110866208A (en) Responsive layout method, device and equipment for page
CN104503995A (en) Realization method and device for input method
CN105630893A (en) Display method and device of photo title
CN105979315A (en) Input method and device
CN111857857B (en) Interface display method, device and equipment
CN112650401B (en) Information carousel method, device, electronic equipment and storage medium
CN107315554B (en) User interface display method and device
CN114661370A (en) Resource loading method and device, electronic equipment and computer storage medium
CN105094362A (en) Method and device for Chinese input

Legal Events

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