CN106202072B - The method and apparatus of display content are provided - Google Patents

The method and apparatus of display content are provided Download PDF

Info

Publication number
CN106202072B
CN106202072B CN201510213460.7A CN201510213460A CN106202072B CN 106202072 B CN106202072 B CN 106202072B CN 201510213460 A CN201510213460 A CN 201510213460A CN 106202072 B CN106202072 B CN 106202072B
Authority
CN
China
Prior art keywords
page
state
rendering
display content
load
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
CN201510213460.7A
Other languages
Chinese (zh)
Other versions
CN106202072A (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 present invention provides a kind of for providing the method and apparatus of display content.This method comprises: sending the request of the page data of loading page;It prevents to provide display content;Load the page data of the page;Execute the rendering of the page data based on load;Page load progress and page rendering progress in response to the page are completed, and are provided the page obtained after rendering as display content.The present invention reduces the blank screen, white screen or the splashette phenomenons that occur when opening the page.

Description

The method and apparatus of display content are provided
Technical field
The present invention relates to internet and digital TV field more particularly to a kind of method and apparatus of offer display content.
Background technique
In internet browsing webpage or digital television business, front end data is nearly all shown using browser.Clear When device of looking at opens the page, need to requesting page server face data.In general, in the page data for failing to be loaded into whole page When, display has begun display and renders the obtained page based on the page data.In this way, the page of display is exactly incomplete , it may appear that blank screen, white screen, splashette etc..
Summary of the invention
Blank screen, white screen or the splashette phenomenon occurred when opening the page it is an object of the invention to reduce.
According to one embodiment of present invention, it provides a kind of for providing the method for display content, comprising: send load The request of the page data of the page;It prevents to provide display content;Load the page data of the page;Execute the institute based on load State the rendering of page data;Page load progress and page rendering progress in response to the page are completed, and will be obtained after rendering The page as display content provide.
According to another embodiment of the invention, it provides a kind of for providing the device of display content, comprising: send single Member is configured as sending the request of the page data of loading page;Unit is prevented, is configured as preventing to provide display content;Add Carrier unit is configured as loading the page data of the page;Rendering unit is configured as the page data based on load It is rendered;Unit is provided, the page load progress and page rendering progress for being configured to respond to the page are completed, by wash with watercolours The page obtained after dye is provided as display content.
Due to according to one embodiment of present invention, being mentioned after sending the request of page data of loading page with regard to prevention For showing content, until the page load progress and page rendering progress of the page are completed, just recovery provides display content.This Sample, what display was shown will be the complete page rather than partial page, and before the complete page of display current page The complete page of previous page is shown, centre does not have the process of the display portion page, thus when reducing the opening page Blank screen, white screen or the splashette phenomenon of generation.
In addition, the embodiment of the present invention also in the case where monitoring the page jump sentence in page data, makes second Object is in the second state, and after the completion of page load progress and page rendering progress, to judge whether the second object is located In the second state.If being in the second state, instruction page load progress completes (such as page load progress item becomes 100%) It is just to abandon the page obtained after rendering at this time as caused by page jump, avoiding will be actually and incomplete current The page is sent to display, avoids the splashette occurred due to page jump.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart of the method for providing display content of one embodiment of the invention.
Fig. 2 is the flow chart of the method for providing display content of another embodiment of the present invention.
Fig. 3 is the flow chart of the method for providing display content of another embodiment of the present invention.
Fig. 4 is the flow chart of the method for providing display content of another embodiment of the present invention.
Fig. 5 is the flow chart of the method for providing display content of another embodiment of the present invention.
Fig. 6 A-F shows the timing effect picture for continuously displaying two pages over the display in the prior art.
Fig. 7 A-F shows the timing effect picture for continuously displaying two pages in the embodiment of the present invention over the display.
Fig. 8 A-C shows the timing effect picture that display is shown in the case where there is page jump in the prior art.
Fig. 9 A-C shows the timing effect picture that display is shown in the case where there is page jump in the embodiment of the present invention.
Figure 10 is the block diagram of the device for providing display content of one embodiment of the invention.
Figure 11 is the block diagram of the device for providing display content of another embodiment of the present invention.
Figure 12 is the block diagram of the device for providing display content of another embodiment of the present invention.
Figure 13 is the block diagram of the device for providing display content of another embodiment of the present invention.
Figure 14 is the block diagram of the device for providing display content of another embodiment of the present invention.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although operations are described as the processing of sequence by flow chart, therein to be permitted Multioperation can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be rearranged.When it The processing can be terminated when operation completion, it is also possible to have the additional step being not included in attached drawing.The processing It can correspond to method, function, regulation, subroutine, subprogram etc..
Alleged " computer equipment " within a context, also referred to as " computer ", referring to can be by running preset program or referring to Enable to execute numerical value and calculate and/or the intelligent electronic device of the predetermined process process such as logic calculation, may include processor with Memory executes the survival prestored in memory instruction by processor to execute predetermined process process, or by ASIC, The hardware such as FPGA, DSP execute predetermined process process, or are realized by said two devices combination.Computer equipment includes but unlimited In server, PC, laptop, tablet computer, smart phone etc..
The computer equipment includes user equipment and the network equipment.Wherein, the user equipment includes but is not limited to electricity Brain, smart phone, PDA etc.;The network equipment includes but is not limited to that single network server, multiple network servers form Server group or the cloud consisting of a large number of computers or network servers for being based on cloud computing (Cloud Computing), wherein Cloud computing is one kind of distributed computing, a super virtual computer consisting of a loosely coupled set of computers.Its In, the computer equipment can isolated operation realize the present invention, also can access network and by with other calculating in network The present invention is realized in the interactive operation of machine equipment.Wherein, network locating for the computer equipment include but is not limited to internet, Wide area network, Metropolitan Area Network (MAN), local area network, VPN network etc..
It should be noted that the user equipment, the network equipment and network etc. are only for example, other are existing or from now on may be used The computer equipment or network that can occur such as are applicable to the present invention, should also be included within the scope of protection of the present invention, and to draw It is incorporated herein with mode.
Method (some of them are illustrated by process) discussed hereafter can be by hardware, software, firmware, centre Part, microcode, hardware description language or any combination thereof are implemented.Implement when with software, firmware, middleware or microcode When, program code or code segment to implement necessary task can be stored in machine or computer-readable medium and (for example deposit Storage media) in.Necessary task can be implemented in (one or more) processor.
Specific structure and function details disclosed herein are only representative, and are for describing the present invention show The purpose of example property embodiment.But the present invention can be implemented by many alternative forms, and be not interpreted as It is limited only by the embodiments set forth herein.
Although it should be understood that may have been used term " first ", " second " etc. herein to describe each unit, But these units should not be limited by these terms.The use of these items is only for by a unit and another unit It distinguishes.For example, without departing substantially from the range of exemplary embodiment, it is single that first unit can be referred to as second Member, and similarly second unit can be referred to as first unit.Term "and/or" used herein above include one of them or Any and all combinations of more listed associated items.
It should be understood that when a unit referred to as " connects " or when " coupled " to another unit, can directly connect Another unit is connect or be coupled to, or may exist temporary location.In contrast, " directly connect when a unit is referred to as Connect " or " direct-coupling " to another unit when, then temporary location is not present.It should explain in a comparable manner and be used to retouch State the relationship between unit other words (such as " between being in ... " compared to " between being directly in ... ", " and with ... it is adjacent Closely " compared to " with ... be directly adjacent to " etc.).
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless Context clearly refers else, otherwise singular used herein above "one", " one " also attempt to include plural number.Also answer When understanding, term " includes " and/or "comprising" used herein above provide stated feature, integer, step, operation, The presence of unit and/or component, and do not preclude the presence or addition of other one or more features, integer, step, operation, unit, Component and/or combination thereof.
It should further be mentioned that the function action being previously mentioned can be attached according to being different from some replace implementations The sequence indicated in figure occurs.For example, related function action, the two function action realities shown in succession are depended on It can substantially simultaneously execute on border or can execute in a reverse order sometimes.
Present invention is further described in detail with reference to the accompanying drawing.
Fig. 1 is the flow chart of the method 1 for providing display content of one embodiment of the invention.
The method 1 for being used to provide display content can be used for the menu page of DTV or showing for the other information page Show.In general, TV programme are stream broadcastings, the problem of not being easy to produce intermediate blank screen, white screen, splashette very much, but for menu page Face or the other information page (such as the webpage opened using DTV online), it sometimes appear that black between two pages The problem of screen, white screen, splashette.For example, user opens DTV, into main interface, main interface has the option of " programme televised live ". User should display for a user the navigation comprising each channel such as CCTV1, CCTV2 by the option of remote controler selection " programme televised live " The page, but since the page data for loading the page from server needs the time, it is based on during load is not fully finished It loads the page that incomplete page data is rendered to show to user, therefore just will appear blank screen, white screen, splashette Deng.This method 1 is for solving the problems, such as this.
The method 1 for being used to provide display content can be also used for the display of generic web page, as when desktop computer online Web displaying when web displaying and surfing Internet with cell phone.For example, user opens the homepage of website on mobile phone, one on homepage is clicked A link, the page being directed toward into the link.When being needed due to the page data for loading the page that the link is directed toward from server Between, during load is not fully finished it sometimes appear that the problems such as blank screen, white screen, splashette.This method 1 can be used for solving Certainly this problem.
It should be appreciated that this method 1 can be used for other those skilled in the art it is contemplated that the purposes gone out.
Display content refers to the page for display for being supplied to display.Display herein refers to for display Device, the display equipment including desktop computer, the display screen on mobile terminal, dedicated display equipment etc..In general, it browses It in the mechanism of device, as long as browser is loaded into page data, is rendered based on page data, then can will be obtained after rendering The page is sent to display and shows.The page after this rendering, being sent to display and show is exactly to show content.
In step 110, the request of the page data of loading page is sent to server.
Page data refers to the data for needing to be sent to browser for display page server, it includes content of pages number According to, page formatting data and special instruction data.Page content data refers to the data about page particular content.For example, In In the main interface of DTV, there are " programme televised live ", " recorded broadcast program ", " web page browsing ", " service guide " four options, this four A option inherently page content data.Page formatting data are about page content data position shown over the display Set, font, size, color, whether plus the data that need of the renderings such as frame, such as programme televised live ", " recorded broadcast program ", " webpage is clear Look at ", the display position, font, size, color of " service guide " each single item etc..In rendering, according to these page formatting data By page content data typesetting at the page for being used to show.Special instruction data refer to some special for what is be related to when page display With the data of instruction, page jump sentence described as follows etc..
Step 110 is in response to the selection of the option on the page in user to display and carries out.In the example of DTV In son, for example, user selects the option of " programme televised live " of DTV main interface by remote controler, browser is just to clothes at this time Business device sends the request of the page data of load " programme televised live " page.In the example of generic web page, for example, user passes through hand As soon as machine clicks the link on homepage, browser sends the page number for loading the page that the link is directed toward to server at this time According to request.
In the step 120, it prevents to provide display content.
Due to as described above, as long as browser is loaded into page data, and being based in the mechanism of general browser After the rendering of page data, the page obtained after rendering can be sent to display at once and shown, in one embodiment of the present of invention In, it needs to make change to the mechanism of browser.It is by the first state of the first object to determine whether to prevent to display Device provides display content.Only in the case where the first object is not at first state, just allow to provide in display to display Hold.Whether browser will be in first state with reference to first object to decide whether to provide display content to display.
First state is to prevent to provide the state of display content to display.
In one example, the first object is the flag bit that a value is 0 or 1.When the first object is 1, first pair As being in first state;When the first object is not 1, when for example, 0, the first object is not at first state.It may be reversed and set It sets.
In another example, the first object is a field in message that browser is communicated with display.When the word When value in section is (for example, 5) x, the first object is in first state;When the value in the field be not x (such as not for 5, no Manage why it is worth) when, the first object is not at first state.
In another example, the first object is a virtual switch inside browser.When virtual switch is connected, the An object is in first state;When virtual switch is not to turn on, such as is disconnected, the first object is not at first state.
In one example, step 120 is realized by making the first object be in first state.
In step 130, the page data of the page is loaded from server.
In step 140, the rendering of the page data based on load is executed.
Rendering is page composition, is according to the page formatting data in page data by the content of pages number in page data According to typesetting at the process of the page for display.
In step 150, page load progress and page rendering progress in response to the page are completed, and will be obtained after rendering The page arrived is provided as display content.
The page load progress of the page is usually that the page load progress item leaned in browser determines.When the page plus When carrying progress bar display load 100%, it is believed that the page load progress of the page is completed.
The page rendering progress of the page is also that the current mechanism of browser is leaned on to judge automatically.When based on being fully loaded to The rendering of the page data for belonging to a page be complete, it is believed that page rendering progress is completed.
In the case where the first object is in first state as described above, using the page obtained after rendering as aobvious Showing that content provides is realized by releasing the first state of the first object.It is clear after the first state of first object is released The page obtained after current rendering will be supplied to display and shown by device of looking at.
Fig. 2 allows for a kind of flow chart of improved embodiment after the situation of page jump.Page jump refers to this A kind of situation of sample: since for example webpage upgrades, Web page developer wishes that the access request of webpage A will be directed to another On a webpage B so that open webpage A user actually sees is webpage B.In this case, Web page developer is by the page Skip instruction is programmed into the page data of webpage A.For example, the hair when browser is loaded with the 10% of the page data of webpage A The existing page jump sentence to webpage B, the page data for just automatically considering page A have loaded completion, by the page load into Degree item is set as 100%, then initiates the load request for the webpage B being directed toward to page jump sentence.At this moment page load progress Becoming 100% is as caused by above-mentioned cause specific.But according to Fig. 1, browser still identifies that the data of load are more than threshold Value, still will can actually be based only on the page that 10% page data being loaded into renders and issue display and show, make At splashette.The embodiment of Fig. 2 has carried out further elimination to this splashette that may cause due to page jump.
In step 110, the request of the page data of loading page is sent to server.
In the step 120, it prevents to provide display content.
In step 130, the page data of the page is loaded from server.
In step 131, the page jump sentence in the page data of the page of load is monitored.
If it is monitored that on the one hand as prior art the page jump sentence executes the page in step 138 and jumps Turn, i.e., the page jumped to indicated to page jump sentence initiates to load the request of the page data of the page, from step 110 Start to re-execute, on the other hand in step 132, the second object is made to be in the second state, then executes step 140.
Second state is to show that page load progress completion (such as page load progress item becomes 100%) is due to the page Jump caused state.
In one example, the second object is the flag bit that a value is 0 or 1.When the second object is 1, second pair As being in the second state;When the second object is not 1, when for example, 0, the second object is not at the second state.It may be reversed and set It sets.
In another example, the second object is a field in message that browser is communicated with display.When the word When value in section is (for example, 5) x, the second object is in the second state;When the value in the field be not x (such as not for 5, no Manage why it is worth) when, the second object is not at the second state.
In another example, the second object is a virtual switch inside browser.When virtual switch is connected, the Two objects are in the second state;When virtual switch is not to turn on, such as is disconnected, the second object is not at the second state.
If not monitoring the page jump sentence, step 140 is directly executed.
In step 140, the rendering of the page data based on load is executed.
Step 150 in Fig. 2 includes:
In step 1501, judge 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 the mark as the second object Will position is 0, illustrates that current page is the normal page of no page jump sentence, just normally makees the page obtained after rendering It is provided for display content to display.
In step 1503, in response to judging that the second object is in the second state, such as the mark as the second object Position is 1, illustrates that current page is the page containing page jump sentence, the page itself should not be shown, and page should be shown The page of face skip instruction instruction jumped to, then abandons the page obtained after the rendering, such display would not be shown Current page.In addition, releasing the second state of the second object.
In addition, including resolution ratio switching sentence in the page data of the page of some loads, it is meant that for the page It include the page of resolution ratio switching sentence in data, it is desirable that the page is shown with the resolution ratio after switching.If according to existing The page obtained after the scheme of technology, load and rendering is immediately provided to display and shows, in the page for the page for monitoring load Before resolution ratio switching sentence in face data, it is loaded with partial page data in fact, has been based on this partial page data wash with watercolours The page obtained after dye has been applied to display and shows.Therefore, the scheme of the prior art will cause one in the page of display Part shows that a part is shown with the resolution ratio after switching with the resolution ratio before switching, and influences visual effect.
In an embodiment of the present invention, after the completion of the page load progress and page rendering progress of the only described page, Display content is provided to display, is all temporarily stored in such as caching before this.It therefore, can be in the page for monitoring the page When resolution ratio in face data switches sentence, first delay resolution switching, until the page load progress and the page of the page After the completion of rendering progress, then it is unified to the page obtained after rendering progress resolution ratio switching, avoid the resolution ratio that the page is shown Skimble-scamble problem.Fig. 3 provides the side of display content in the case where there is resolution ratio switching for another embodiment of the present invention The flow chart of method 1.
In step 110, the request of the page data of loading page is sent to server.
In the step 120, it prevents to provide display content.
In step 130, the page data of the page is loaded from server.
In step 133, the resolution ratio switching sentence in the page data of the page of load is monitored.
In step 134, switch sentence in response to monitoring the resolution ratio, third object is made to be in the third state, and The execution of delay resolution switching sentence.
The third state is the state for showing to have in the page data of the page of load resolution ratio switching sentence.
In one example, third object is the flag bit that a value is 0 or 1.When third object is 1, third pair As being in the third state;When third object is not 1, when for example, 0, third object is not at the third state.It may be reversed and set It sets.
In another example, third object is a field in message that browser is communicated with display.When the word When value in section is (for example, 5) x, third object is in the third state;When the value in the field be not x (such as not for 5, no Manage why it is worth) when, third object is not at the third state.
In another example, third object is a virtual switch inside browser.When virtual switch is connected, the Three objects are in the third state;When virtual switch is not to turn on, such as is disconnected, third object is not at the third state.
In step 140, the rendering of the page data based on load is executed.
In step 150, page load progress and page rendering progress in response to the page are completed, and will be obtained after rendering The page arrived is provided as display content.
Step 150 in Fig. 3 includes:
In step 1504, judge whether third object is in the third state;
In step 1505, in response to judging that third object is in the third state, such as the mark as third object Position is 1, illustrates that current page should execute resolution ratio switching, then executes resolution ratio switching sentence to the page obtained after the rendering, The page obtained after rendering after resolution ratio switching sentence is executed is provided as display content, and releases the third of third object State.
In step 1506, in response to judging that third object is not at the third state, such as the mark as third object Will position is 0, illustrates that current page should not execute resolution ratio switching, then directly mentions the page obtained after rendering as display content For.
In addition, containing video in some pages.For example, not only containing the brief introduction of the said firm on the homepage of certain company, but also one The video of development of company history is introduced containing one in a special position (such as webpage center).It is expected that entering the master in user Page, it is seen that after main text information, which just starts to play.For such page, contain video in page data Link.In the page data of the homepage, which may be loaded into prior to other text informations.In the prior art plus The page for carrying and obtaining after rendering is immediately provided in the scheme that display is shown, after browser monitors to the video link, one Video request is initiated in address that aspect is directed toward to video link, the page with the video link after on the other hand rendering just to Display is provided for showing.It is shown in this way, the video link may be shown device prior to other text informations, then Since video request is initiated in the address being directed toward to video link, after receiving video from the address, video begins to broadcast Put, but other text informations described at this time may due to load accordingly and rendering have not been completed without show.In this way, Video may will be played under the background of a piece of blank screen, white screen or splashette, influence visual effect.
In an embodiment of the present invention, the only described page page load progress and page rendering progress complete, just to Display provides display content, is all temporarily stored in such as caching before this.It therefore, can be in the page for monitoring the page When video link in data, video request is initiated in the address for first postponing to be directed toward to video link, until the page of the page Load progress and page rendering progress are completed, and the page obtained after the rendering with the video link are provided to display, then Initiate video request in the address being directed toward to video link.In this way, existed in the full page with whole text informations every time After display is shown, just start to play video, eliminates the problem of playing video under the background of blank screen, white screen or splashette. Fig. 4 is another embodiment of the present invention in the flow chart for having the method 1 for providing display content in the case where resolution ratio switching.
In step 110, the request of the page data of loading page is sent to server.
In the step 120, it prevents to provide display content.
In step 130, the page data of the page is loaded from server.
In step 135, the video link in the page data of the page of load is monitored.
In step 136, in response to monitoring the video link, so that the 4th object is in the 4th state, postpone to view Video request is initiated in the address that frequency link is directed toward, and then executes step 140.
The third state is the state for showing to have in the page data of the page of load video link.
In one example, the 4th object is the flag bit that a value is 0 or 1.When the 4th object is 1, the 4th pair As being in the 4th state;When the 4th object is not 1, when for example, 0, the 4th object is not at the 4th state.It may be reversed and set It sets.
In another example, the 4th object is a field in message that browser is communicated with display.When the word When value in section is (for example, 5) x, the 4th object is in the 4th state;When the value in the field be not x (such as not for 5, no Manage why it is worth) when, the 4th object is not at the 4th state.
In another example, the 4th object is a virtual switch inside browser.When virtual switch is connected, the Four objects are in the 4th state;When virtual switch is not to turn on, such as is disconnected, the 4th object is not at the 4th state.
If not monitoring the video link, step 140 is directly executed.
In step 140, the rendering of the page data based on load is executed.
Video link is contained only in the page obtained after rendering, does not contain video, because being directed toward not yet to video link Address initiate video request.
In step 150, page load progress and page rendering progress in response to the page are completed, and will be obtained after rendering The page arrived is provided as display content.
In step 1601, judge 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 video The page, at this time to video link be directed toward address initiate video request, in this way after receiving video from the address Video is played on the page of display.In addition, releasing the 4th state of the 4th object.
If it is judged that the 4th mark is not at the 4th state, then illustrate that current page is free from the page of video, this When with no treatment.
In addition, requirement for the switching of existing resolution ratio, the case where in the page including again video, not only need to postpone to differentiate Video request is initiated in rate switching and the address being directed toward to video link, it is also necessary to consider to lead to video playing due to resolution ratio switching The variation of position.Fig. 5 provides the method 1 of display content in the case where there is resolution ratio switching for another embodiment of the present invention Flow chart.
In step 110, the request of the page data of loading page is sent to server.
In the step 120, it prevents to provide display content.
In step 130, the page data of the page is loaded from server.
In step 133, the resolution ratio switching sentence in the page data of the page of load is monitored.
In step 134, switch sentence in response to monitoring the resolution ratio, third object is made to be in the third state, and Delay resolution switches the execution of sentence, then executes step 140.
If not monitoring resolution ratio switching sentence, step 135 is executed.
In step 135, the video link in the page data of the page of load is monitored.
In step 137, if it is monitored that the video link, makes the 4th object be in the 4th state, postpones to video It links the address being directed toward and initiates video request, the resolution ratio after switching the switching of sentence instruction according to resolution ratio determines that video is dividing The play position in the page after resolution switching.
Determine that play position of the video in the page after resolution ratio switching can be by existing according to the resolution ratio after switching There is method realization.
In step 140, the rendering of the page data based on load is executed.
In step 150, page load progress and page rendering progress in response to the page are completed, and will be obtained after rendering The page arrived is provided as display content.
Step 150 in Fig. 5 includes:
In step 1504, judge whether third object is in the third state;
In step 1505, in response to judging that third object is in the third state, such as the mark as third object Position is 1, illustrates that current page should execute resolution ratio switching, then executes resolution ratio switching sentence to the page obtained after the rendering, The page obtained after rendering after resolution ratio switching sentence is executed is provided as display content, and releases the third of third object State.
In step 1506, in response to judging that third object is not at the third state, such as the mark as third object Will position is 0, illustrates that current page should not execute resolution ratio switching, then directly mentions the page obtained after rendering as display content For.
In step 1601, after the page obtained after rendering is provided as display content, judge whether the 4th object is located In the 4th state.
In step 1603, in response to judging that the 4th object is in the 4th state, illustrate to contain video in current page, Video request is initiated in the address being directed toward at this time to video link, plays the video request with identified play position and requests Video, and release the 4th object the 4th state.
If it is judged that the 4th object is not at the 4th state, then without any processing.
Fig. 6 A-F shows the timing effect picture for continuously displaying two pages over the display in the prior art, right respectively On Ying Yu such as time shaft 1,2,3 ... second when display show.Fig. 7 A-F show implement the embodiment of the present invention after The timing effect picture that two pages are continuously displayed on display, correspond respectively on such as time shaft 1,2,3 ... second when Display show.
Fig. 6 A-F two pages such as Fig. 6 C and Fig. 6 F to be continuously displayed.When being needed due to loading page data and rendering Between, at the 1st second, the load of the page data of the page of Fig. 6 C and based on its rendering almost without progress, therefore, display is aobvious What is shown is blank screen, as shown in Figure 6A.It at the 2nd second, the page data of the profile of face and is completed based on its rendering, therefore, is shown Show that device only shows the profile of face, as shown in Figure 6B.At the 3rd second, the page data of entire face and all completed based on its rendering , therefore, display shows entire face, as shown in Figure 6 C.At the 4th second, start to carry out next display that show the page, i.e., The display of the page shown in Fig. 6 F, but the load of the page data of the page of Fig. 6 F at this time and based on its rendering almost without into Row, therefore, blank screen is shown in display, as shown in Figure 6 D.At the 5th second, the page data of the sub-fraction of the cloud in Fig. 6 F And completed based on its rendering, therefore, display only shows the sub-fraction of the cloud, as illustrated in fig. 6e.It is whole at the 6th second It the page data of a cloud and is completed based on its rendering, therefore, display shows entire cloud, as fig 6 f illustrates.
Fig. 7 A-F is the display situation using the embodiment of the present invention corresponding with Fig. 6 A-F.Due to loading page number The time is needed according to rendering, at the 1st second, the load of the page data of face and is not completed based on its rendering.Due to the present invention In embodiment, page load progress and page rendering progress in response to the page are completed, the page that will just obtain after rendering It is provided as display content to display, therefore, blank screen is shown in display, as shown in Figure 7 A.At the 2nd second, the profile of face Page data and completed based on its rendering, but page load progress due to the page and page rendering progress are not There is a completion, therefore what display showed is still blank screen, as shown in Figure 7 B.At the 3rd second, the page data of entire face and it is based on it Rendering be completed, therefore, display shows entire face, as seen in figure 7 c.At the 4th second, start to carry out next to show The display of the page, the i.e. display of cloud, but the load of the page data of cloud at this time and do not completed based on its rendering.Due to this hair In bright embodiment, page load progress and page rendering progress in response to the page are completed, the page that will just obtain after rendering Face is provided as display content to display, therefore, does not show that content is provided to display, it is current that display still maintains it Display, therefore show the page as Fig. 7 C, as illustrated in fig. 7d.At the 5th second, the page data of the sub-fraction of cloud and it is based on Its rendering completes, but page load progress and the not completion of page rendering progress due to the page, does not have Show that content is provided to display, display still maintains its current display, as seen in figure 7e.At the 6th second, the page of entire cloud It face data and is completed based on its rendering, therefore, display shows entire cloud, as shown in Figure 7 F.
It can be seen that in the embodiment of the present invention from the comparison of Fig. 6 A-F and Fig. 7 A-F, in addition to such as user just starts to surf the Internet Or some blank screens, white screen or splashette may be seen when just opening DTV, another is opened again having already turned on a page In the case where the page, centre will not there is a phenomenon where blank screen, white screen or splashettes.
Fig. 8 A-C shows the timing effect picture that display is shown in the case where there is page jump in the prior art.Figure 9A-C shows the timing effect picture that display is shown in the case where there is page jump in the embodiment of the present invention.
In the prior art, Fig. 8 A is the page that display is shown at the beginning, i.e. a smiling face.Then, user opens another One page, another page are prescribed the page for jumping to cloud shown in Fig. 8 C.But monitoring another page Page data in page jump sentence before, a part actually in another page has been loaded and has been completed corresponding It renders, they can provide on display and show, therefore, the page of a splashette can be shown before Fig. 8 A and 8C, such as scheme Shown in 8B.
In embodiments of the present invention, Fig. 9 A is the page that display is shown at the beginning, i.e. a smiling face.Then, user beats Another page is opened, which is prescribed the page for jumping to cloud shown in Fig. 9 C.But due to monitoring load There is page jump sentence in the page data of another page, therefore the second object is made to be in the second state, in the page After the completion of page load progress and page rendering progress, judge that the second object is in the second state, show its page load into Degree is to make to become page load progress item is mandatory 100% and complete due to page jump, abandons what the rendering obtained The page do not show, the page shown before display still maintains at this time, as shown in Figure 9 B, the problem of avoiding splashette.
According to one embodiment of present invention, provide it is a kind of for provide display content device 2, as shown in Figure 10, Include: transmission unit 210, is configured as sending the request of the page data of loading page;Unit 220 is prevented, is configured as hindering Display content is only provided;Loading unit 230 is configured as loading the page data of the page;Rendering unit 240, is configured It is rendered for the page data based on load;Unit 250 is provided, the page load of the page is configured to respond to Progress and page rendering progress are completed, and are provided the page obtained after rendering as display content.
Optionally, unit 220 is prevented to be configured to that the first object is made to be in first state, wherein in the first object It prevents in the case where the first state to provide display content;Unit 250 is provided to be configured to release the first object First state, wherein allowing to provide display content in the case where the first object is not at first state
As shown in figure 11, which can be with further include: the first monitoring unit 231 is configured as the page of monitoring load Page jump sentence in the page data in face;Second Obj State setting unit 232 is configured to respond to monitor described Second object is in the second state by page jump sentence.There is provided unit 250 includes: the first judgment sub-unit 2501, is configured To judge whether the second object is in the second state;First provides subelement 2502, is configured to respond to judge second pair As being not at the second state, provided the page obtained after rendering as display content;First processing subelement 2503, is configured In response to judging that the second object is in the second state, to abandon the page obtained after the rendering, and release the of the second object Two-state.
As shown in figure 12, which can also include: the second monitoring unit 233, be configured as the page of monitoring load Resolution ratio in the page data in face switches sentence;First processing units 234 are configured to respond to monitor the resolution ratio Switch sentence, third object is made to be in the third state, and the execution of delay resolution switching sentence.There is provided unit 250 includes: the Two judgment sub-units 2504 are configured as judging whether third object is in the third state;Second processing subelement 2505 is matched It is set in response to judging that third object is in the third state, resolution ratio switching sentence is executed to the page obtained after rendering, it will The page obtained after rendering after resolution ratio switching sentence execution is provided as display content, and releases the third shape of third object State;Second provides subelement 2506, is configured to respond to judge that third object is not at the third state, will obtain after rendering The page as display content provide.
As shown in figure 13, which can also include: third monitoring unit 235, be configured as the page of monitoring load Video link in the page data in face;The second processing unit 236 is configured to respond to monitor the video link, make 4th object is in the 4th state, and video request is initiated in the address for postponing to be directed toward to video link;Judging unit 2601 is matched After the page that will be obtained after rendering is set to as showing that content provides, judge whether the 4th object is in the 4th state;At third Unit 2602 is managed, is configured to respond to judge that the 4th object is in the 4th state, the address being directed toward to video link is initiated Video request, and release the 4th state of the 4th object.
As shown in figure 14, which can also include: the 4th monitoring unit 235, be configured as the page of monitoring load Video link in the page data in face;Fourth processing unit 237 is configured to respond to both monitor the page of load Page data in video link, monitor resolution ratio switching sentence again, so that the 4th object be in the 4th state, delay Video request is initiated in the address being directed toward to video link, and is determined according to the resolution ratio after the switching of resolution ratio switching sentence instruction Play position of the video in the page after resolution ratio switching;Judging unit 2601 is configured as the page that will be obtained after rendering After providing as display content, judge whether the 4th object is in the 4th state;5th processing unit 2603, is configured to respond to In judging that the 4th object is in the 4th state, video request is initiated in the address being directed toward to video link, with identified broadcasting Position plays the video that the video request is requested, and releases the 4th state of the 4th object.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, device 2 In each unit specific integrated circuit (ASIC) can be used or any other is realized similar to hardware device.In one embodiment In, software program of the invention can be executed to implement the above steps or functions by processor.Similarly, of the invention Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, some of the steps or functions of the present invention may be implemented in hardware, example Such as, as the circuit cooperated with processor thereby executing each step or function.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in system claims is multiple Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table Show title, and does not indicate any particular order.
Although front is specifically shown and describes exemplary embodiment, it will be understood to those of skill in the art that It is that without departing substantially from the spirit and scope of claims, can be varied in terms of its form and details.Here Sought protection illustrates in the dependent claims.

Claims (8)

1. a kind of for providing the method for display content characterized by comprising
Send the request of the page data of loading page;
It prevents to provide display content, comprising: make the first object be in first state, wherein being in first state in the first object In the case of prevent provide display content;
Load the page data of the page;
Execute the rendering of the page data based on load;
Page load progress and page rendering progress in response to the page are completed, using the page obtained after rendering as display Content provides, comprising: the first state for releasing the first object, wherein allowing in the case where the first object is not at first state Display content is provided;
Monitor the page jump sentence in the page data of the page of load;
In response to monitoring the page jump sentence, the second object is made to be in the second state, and
The page load progress and page rendering progress in response to the page is completed, using the page obtained after rendering as Show the step of content provides further 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, provided the page obtained after rendering as display content;
In response to judging that the second object is in the second state, sets the pressure of current page load progress to complete and abandon The page obtained after the rendering, and release the second state of the second object.
2. the method according to claim 1, wherein further include:
Monitor that the resolution ratio in the page data of the page of load switches sentence;
In response to monitoring the resolution ratio switching sentence, third object is set to be in the third state, and delay resolution switches language The execution of sentence, and
The page load progress and page rendering progress in response to the page is completed, using the page obtained after rendering as Show that the step of content provides includes:
Judge whether third object is in the third state;
In response to judging that third object is in the third state, resolution ratio switching sentence is executed to the page obtained after the rendering, The page obtained after rendering after resolution ratio switching sentence is executed is provided as display content, and releases the third of third object State;
In response to judging that third object is not at the third state, provided the page obtained after the rendering as display content.
3. method according to claim 1 or 2, which is characterized in that further include:
Monitor the video link in the page data of the page of load;
In response to monitoring the video link, the 4th object is set to be in the 4th state, and postpone the ground being directed toward to video link Initiate video request in location;
After the page obtained after rendering is provided as display content, judge whether the 4th object is in the 4th state;
In response to judging that the 4th object is in the 4th state, video request is initiated in the address being directed toward to video link, and releases 4th state of the 4th object.
4. method according to claim 2, which is characterized in that further include:
Monitor the video link in the page data of the page of load;
In response to the video link in the page data for the page for not only monitoring load but also monitor the resolution ratio switching Sentence makes the 4th object be in the 4th state, and video request is initiated in the address for postponing to be directed toward to video link, and according to resolution ratio Resolution ratio after the switching of switching sentence instruction determines play position of the video in the page after resolution ratio switching;
After the page obtained after rendering is provided as display content, judge whether the 4th object is in the 4th state;
In response to judging that the 4th object is in the 4th state, to video link be directed toward address initiate video request, with really Fixed play position plays the video that the video request is requested, and releases the 4th state of the 4th object.
5. a kind of for providing the device of display content characterized by comprising
Transmission unit is configured as sending the request of the page data of loading page;
Unit is prevented, is configured as preventing to provide display content, the prevention unit is configured to make at the first object In first state, wherein preventing to provide display content in the case where the first object is in first state;
Loading unit is configured as loading the page data of the page;
Rendering unit is configured as the page data based on load and is rendered;
Unit is provided, the page load progress and page rendering progress for being configured to respond to the page are completed, after rendering The obtained page is provided as display content, and the unit that provides is configured to release the first state of the first object, Wherein allow to provide display content in the case where the first object is not at first state;
First monitoring unit, the page jump sentence being configured as in the page data of the page of monitoring load;
Second Obj State setting unit is configured to respond to monitor the page jump sentence, is in the second object Second state, and
Unit is provided further include:
First judgment sub-unit is configured as judging 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, by what is obtained after rendering The page is provided as display content;
First processing subelement, be configured to respond to judge that the second object is in the second state, by current page load into Degree is forced to be set as completing and abandoning the page obtained after the rendering, and releases the second state of the second object.
6. device according to claim 5, which is characterized in that further include:
Second monitoring unit, the resolution ratio switching sentence being configured as in the page data of the page of monitoring load;
First processing units are configured to respond to monitor the resolution ratio switching sentence, third object are made to be in third shape State, and the execution of delay resolution switching sentence, and
There is provided unit includes:
Second judgment sub-unit is configured as judging whether third object is in the third state;
Second processing subelement is configured to respond to judge that third object is in the third state, to the page obtained after rendering Face executes resolution ratio and switches sentence, and the page obtained after the rendering after resolution ratio switching sentence is executed is mentioned as display content For, and release the third state of third object;
Second provides subelement, is configured to respond to judge that third object is not at the third state, by what is obtained after rendering The page is provided as display content.
7. device according to claim 5 or 6, which is characterized in that further include:
Third monitoring unit, the video link being configured as in the page data of the page of monitoring load;
The second processing unit is configured to respond to monitor the video link, so that the 4th object is in the 4th state, and prolong Initiate video request in the address being directed toward late to video link;
Judging unit is configured as after providing the page obtained after rendering as display content, judges whether the 4th object is located In the 4th state;
Third processing unit is configured to respond to judge that the 4th object is in the 4th state, the ground being directed toward to video link Video request is initiated in location, and releases the 4th state of the 4th object.
8. device according to claim 6, which is characterized in that further include:
4th monitoring unit, the video link being configured as in the page data of the page of monitoring load;
Fourth processing unit, be configured to respond to both monitor video link in the page data of the page of load, The resolution ratio switching sentence is monitored again, the 4th object is made to be in the 4th state, and the address for postponing to be directed toward to video link is sent out Video request is played, and page of the video after resolution ratio switching is determined according to the resolution ratio after the switching of resolution ratio switching sentence instruction Play position in face;
Judging unit is configured as after providing the page obtained after rendering as display content, judges whether the 4th object is located In the 4th state;
5th processing unit is configured to respond to judge that the 4th object is in the 4th state, the ground being directed toward to video link Video request is initiated in location, plays the video that the video request is requested with identified play position, and release the 4th object The 4th state.
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 CN106202072A (en) 2016-12-07
CN106202072B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229475B (en) * 2017-06-05 2018-06-08 掌阅科技股份有限公司 Page display method, electronic equipment and computer storage media
CN108334349B (en) * 2017-08-29 2021-07-13 Oppo广东移动通信有限公司 Mobile terminal, display image switching method thereof and computer-readable storage medium
CN107908455B (en) * 2017-11-20 2020-12-08 烽火通信科技股份有限公司 Browser page switching method and system
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
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

Citations (7)

* 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
CN104408204A (en) * 2014-12-18 2015-03-11 北京国双科技有限公司 Method and device for obtaining webpage page link address

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9727547B2 (en) * 2013-06-07 2017-08-08 Apple Inc. Media interface tools and animations

Patent Citations (7)

* 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
CN104408204A (en) * 2014-12-18 2015-03-11 北京国双科技有限公司 Method and device for obtaining webpage page link address

Also Published As

Publication number Publication date
CN106202072A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106202072B (en) The method and apparatus of display content are provided
KR102710712B1 (en) Method and device for displaying live broadcast data, device and storage medium
CN108595242B (en) Page display method, electronic equipment and computer storage medium
US8938465B2 (en) Method and system for utilizing packaged content sources to identify and provide information based on contextual information
CN109032738A (en) Control method for playing multimedia, device, terminal and storage medium
CN107315580A (en) Component processing method, device and the equipment of user interface, computer-readable recording medium
CN105142031A (en) Method and device for displaying character information in barrage during video play
CN104915461B (en) Page presentation method and device
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN104469467A (en) Video playing method, device and system in browser client
EP3197176A1 (en) Android platform-based multimedia recommendation method and terminal device
CN104808889A (en) Page switching method and electronic equipment
CN107786882A (en) A kind of Webpage display process, device and set top box
CN107864384A (en) Redirect the method and device that internet video plays on cloud desktop
CN110866208B (en) Page response type layout method, device and equipment
CN107643911B (en) HTML 5-based interface interaction and display system and method
CN105100909A (en) Tween interaction-type ad placement method and device based on intelligent terminal
CN104010223A (en) Method and system for taking over terminal system for video playing
CN111898056A (en) Webpage display method and device, storage medium and electronic equipment
KR20120114270A (en) Rendering a web page comprising plug-in content
CN110365918A (en) A kind of information source switching method and equipment
CN113868575A (en) Webpage same-screen method and system
CN109874044B (en) Data prestoring method, system, equipment and computer readable medium
CN110377853A (en) Cardon playback method, equipment and storage medium
CN107315554B (en) User interface display method and device

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