CN108073610A - Realize the method and device of Webpage loading - Google Patents

Realize the method and device of Webpage loading Download PDF

Info

Publication number
CN108073610A
CN108073610A CN201610998596.8A CN201610998596A CN108073610A CN 108073610 A CN108073610 A CN 108073610A CN 201610998596 A CN201610998596 A CN 201610998596A CN 108073610 A CN108073610 A CN 108073610A
Authority
CN
China
Prior art keywords
webpage
link
page
loaded
carrier control
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
CN201610998596.8A
Other languages
Chinese (zh)
Other versions
CN108073610B (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.)
Poly Polytron Technologies Inc
Juhaokan Technology Co Ltd
Original Assignee
Poly Polytron Technologies Inc
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 Poly Polytron Technologies Inc filed Critical Poly Polytron Technologies Inc
Priority to CN201610998596.8A priority Critical patent/CN108073610B/en
Publication of CN108073610A publication Critical patent/CN108073610A/en
Application granted granted Critical
Publication of CN108073610B publication Critical patent/CN108073610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

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

Abstract

The disclosure discloses a kind of method and device for realizing Webpage loading, belongs to the Internet, applications technology technical field.The described method includes:Webpage is carried by the webpage carrier control for being in visible state, carry out the display of the Webpage, according to the webpage carrier control quantity in invisible mode, link to be loaded is determined in the link included in the Webpage, for each link to be loaded, page preloading is carried out in a webpage carrier control in invisible mode, obtains described to be loaded being linked at the Webpage to be visited carried in the webpage carrier control.The method and device of above-mentioned realization Webpage loading can shorten the time that Webpage redirects.

Description

Realize the method and device of Webpage loading
Technical field
This disclosure relates to technical field of internet application, more particularly to a kind of method and dress for realizing Webpage loading It puts.
Background technology
With the high speed development of Internet technology, the function of terminal is increasingly abundanter.In the terminals such as smart television, mobile phone, Carrier is used as by Webpage, information exchange is carried out with user.For example, the Webpage being shown in terminal include it is multiple It links, after the link in the webpage clicking page, carries out page loading for the link, obtain the Webpage of the link, and it is right The Webpage of the link is shown.
However, with to link carry out the page loading when to server ask data volume it is increasing, in certain net Under network bandwidth, the time of page loading is increasingly longer.In the Webpage of display, if after page access instruction is received, then Start to carry out page loading to the link of page access instruction instruction, the time for Webpage will be greatly prolonged redirecting.
The content of the invention
In order to solve Webpage in correlation technique redirect the time it is longer the technical issues of, present disclose provides a kind of realizations The method and device of Webpage loading.
A kind of method for realizing Webpage loading, which is characterized in that the described method includes:
Webpage is carried by the webpage carrier control for being in visible state, carries out the display of the Webpage;
According to the webpage carrier control quantity in invisible mode, determine to treat in the link included in the Webpage Loading link;
For each link to be loaded, page preloading is carried out in a webpage carrier control in invisible mode, It obtains described to be loaded being linked at the Webpage to be visited carried in the webpage carrier control.
A kind of device for realizing Webpage loading, which is characterized in that including:
Webpage display module for carrying Webpage by the webpage carrier control for being in visible state, carries out The display of the Webpage;
Link determining module to be loaded is in the webpage carrier control quantity of invisible mode for basis, in the net Link to be loaded is determined in each link of the page page;
Page preloaded components, for being directed to each link to be loaded, in the webpage carrier control that one is in invisible mode Page preloading is carried out in part, obtains described to be loaded being linked at the webpage page to be visited carried in the webpage carrier control Face.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Webpage is carried by the webpage carrier control for being in visible state, carries out the display of the Webpage, root According to the webpage carrier control quantity in invisible mode, link to be loaded is determined in the link included in the Webpage, For each link to be loaded, page preloading is carried out in a webpage carrier control in invisible mode, is obtained described It is to be loaded to be linked at the Webpage to be visited carried in the webpage carrier control.By the webpage carrier for being in visible state When control carrying Webpage carries out the display of Webpage, link to be loaded is determined in the link included in the Webpage, And then the webpage carrier control by being in invisible mode carries out page preloading, obtains to be loaded being linked at the webpage and carrying The Webpage to be visited carried in body control before page access instruction is received, realizes the webpage page to link to be loaded Face is loaded in advance, when making the page access instruction of reception instruction progress link page access to be loaded, shortens Webpage The time redirected.
It should be appreciated that above general description and following detailed description is only exemplary, this can not be limited It is open.
Description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and in specification together principle for explaining the present invention.
Fig. 1 is the schematic diagram according to the implementation environment involved by the disclosure;
Fig. 2 is the block diagram according to a kind of device shown in an exemplary embodiment;
Fig. 3 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment;
Fig. 4 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment;
Fig. 5 is that Fig. 3 corresponds to the basis of embodiment and is in the webpage carrier control quantity of invisible mode, in Webpage The flow chart of link step to be loaded is determined in each link;
Fig. 6 is that Fig. 5 corresponds to the pre- access probability respectively linked in the analyzing web page page of embodiment, determines high access probability chain Connect the flow chart of step;
Fig. 7 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment;
Fig. 8 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment;
Fig. 9 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment;
Figure 10 is the block diagram that Fig. 8 corresponds to the Webpage display module for implementing to exemplify;
Figure 11 is that Figure 10 corresponds to the block diagram for implementing the high probability exemplified link determination sub-module;
Figure 12 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment.
Specific embodiment
Here explanation will be performed to exemplary embodiment in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the schematic diagram according to the implementation environment involved by the disclosure.As shown in Figure 1, the implementation environment includes:Terminal 20 and server 10.It is attached, and then carried out data transmission by network between terminal 20 and server 10, in terminal 20, By inputting the click linked in link or Webpage, the access of Webpage is carried out.Terminal 20 can be smart television, hand Machine etc., specific implementation from the present embodiment limitation.
Fig. 2 is the block diagram according to a kind of device 100 shown in an exemplary embodiment.Device 100 can be applied to above-mentioned Terminal 20 in implementation environment.
With reference to figure 2, device 100 can include one or more following component:Processing component 101, memory 102, electricity Source component 103, multimedia component 104, audio component 105, sensor module 107 and communication component 108.
The integrated operation of 101 usual control device 100 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation etc..Processing component 101 can be performed including one or more processors 109 Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 101 can include one or more modules, Convenient for the interaction between processing component 101 and other assemblies.For example, processing component 101 can include multi-media module, with convenient Interaction between multimedia component 104 and processing component 101.
Memory 102 is configured as storing various types of data to support the operation in device 100.These data are shown Example includes the instruction of any application program or method that operate on the device 100.Memory 102 can be by any kind of Volatibility or non-volatile memory device or combination thereof are realized, such as static RAM (SRAM), electrically erasable Except programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.There are one also being stored in memory 102 Or multiple modules, the one or more module are configured to be performed by the one or more processors 109, with complete Fig. 3, Fig. 4, All or part of step in method shown in Fig. 5, Fig. 6 and Fig. 7 are any.
Power supply module 103 provides electric power for the various assemblies of device 100.Power supply module 103 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 100.
Multimedia component 104 is included in the screen of one output interface of offer between described device 100 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect duration and pressure associated with the touch or slide operation.
Audio component 105 is configured as output and/or input audio signal.For example, audio component 105 includes a Mike Wind (MIC), when device 100 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 102 or via communication set Part 108 is sent.In some embodiments, audio component 105 further includes a loud speaker, for exports audio signal.
Sensor module 107 includes one or more sensors, and the state for providing various aspects for device 100 is commented Estimate.For example, sensor module 107 can detect opening/closed state of device 100, the relative positioning of component, sensor group Part 107 can be changed with the position of 100 1 components of detection device 100 or device and the temperature change of device 100.At some In embodiment, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 108 is configured to facilitate the communication of wired or wireless way between device 100 and other equipment.Device 100 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 108 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 108 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 100 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing following methods.
Fig. 3 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment.The realization The method of Webpage loading, the terminal 20 applied to implementation environment shown in Fig. 1.As shown in figure 3, the realization Webpage loads Method may comprise steps of.
In step s 110, Webpage is carried by being in the webpage carrier control of visible state, carries out Webpage Display.
Webpage carrier control is the component that Webpage is carried in terminal, and the state of webpage carrier control includes visible state And invisible mode.When webpage carrier control is in visible state, the Webpage of webpage carrier control carrying is in aobvious Show in state, the Webpage in dispaly state is shown in the terminal at place.
It is understood that there are multiple webpage carrier controls in terminal.Wherein, webpage carrier control is in including one The webpage carrier control of visible state and one or more be in the webpage carrier control of invisible mode.Arbitrary shape The webpage carrier control of state can carry Webpage, but the Webpage that the webpage carrier control in invisible mode carries In hidden state, and the Webpage that the webpage carrier control in visible state carries is in dispaly state.By being in The webpage carrier control of visible state and invisible mode carries out the switching of state, and that realizes Webpage redirects display.
In a specific exemplary embodiment, the webpage carrier control in terminal is webview, wherein webview Including a visible_webview and one or more unvisible_webview, the net in visible state Page carrier control is visible_webview, and the webpage carrier control in invisible mode is unvisible_webview. Visible_webview and unvisible_webview can carry Webpage, but unvisible_webview carryings Webpage is in hidden state, and the Webpage of visible_webview carryings is in dispaly state.
Comprising link in Webpage by inputting link or triggering display, the webpage carrier control in visible state Part carries the Webpage of the link, carries out the display of Webpage.
In the step s 120, according to the webpage carrier control quantity in invisible mode, in the chain that Webpage includes Link to be loaded is determined in connecing.
In the Webpage of display, one or more link is contained.When triggering some link in Webpage, After carrying out page loading to the link, the Webpage of the link is shown, realizes redirecting for Webpage.
It is understood that the quantity for the webpage carrier control for being in invisible mode can be configured, setting Quantity can be one or more.
The Webpage of link is carried by webpage carrier control, and then is loaded simultaneously in webpage carrier control Display.And a webpage carrier control can only carry a Webpage simultaneously, by the webpage carrier for being in invisible mode When control carries the Webpage of link to be loaded, the quantity of link to be loaded should be less than or equal to the net in invisible mode Page carrier control quantity.
In the Webpage of display, number of links is less than or equal to the quantity of the webpage carrier control in invisible mode When, the all-links which includes can be determined as link to be loaded, can also selected part be linked as it is to be added Link is carried, herein not to determining that the mode of link to be loaded is defined.
It, can when number of links is more than the quantity of the webpage carrier control in invisible mode in the Webpage of display With randomly select it is a certain number of be linked as link to be loaded, can also determine to treat according to the history visit capacity of each link to be loaded Loading link, herein not to determining that the mode of link to be loaded is defined.
In step s 130, for each link to be loaded, in a webpage carrier control in invisible mode into The row page preloads, and obtains the Webpage to be visited to be loaded for being linked at and being carried in webpage carrier control.
When page preloading is that no indication is received and carries out the page access instruction of page access, in advance to the webpage of link The page is loaded.
One webpage carrier control can only carry a Webpage simultaneously, and be in the webpage carrier control of visible state The Webpage of display is still carry, thus, link to be loaded is carried out by the webpage carrier control for being in invisible mode The page preloads, and then the Webpage of link to be loaded is carried by being in the webpage carrier control of invisible mode.
Each link to be loaded has the corresponding webpage carrier control in invisible mode to carry out page to it Face preloads, and obtains the Webpage of each link to be loaded, and the Webpage of each link to be loaded is in invisible by corresponding The webpage carrier control of state carries as the page to be visited and is in hidden state.And it is now in the webpage of invisible mode The Webpage of carrier control carrying is still in display.
By method as described above, shown in the webpage carrier control carrying Webpage in visible state In the process, link to be loaded is determined in the link included in the Webpage, and then for each link to be loaded, respective Page preloading is carried out in the corresponding webpage carrier control in invisible mode, obtains the Webpage of link to be loaded, And hidden state is in using these Webpages as the page to be visited, carry out url page interview to be loaded receiving instruction During the page access instruction asked, the Webpage after the completion of only the page need to be preloaded is shown, substantially reduces webpage page The time that face redirects.
Fig. 4 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment.Such as Fig. 4 institutes Show, after step S130 in figure 3, the method for realization Webpage loading can also comprise the following steps.
In step S210, the page access instruction in Webpage is received.
Page access is instructed for the request that accesses to Webpage.In the Webpage of display, pass through link Triggering, generation instruction are instructed to the page access that the Webpage of the link accesses.
Page access instruction to link to be loaded including triggering generating and triggering generation to not loading link.To be added The page access of progress link to be loaded will be indicated by carrying the page access instruction for linking and triggering and generating, and be triggered to not loading to link Instruction is not loaded the page access of link by the page access instruction of generation.
When the page access instruction of reception is the page access that instruction carries out link to be loaded, page access instruction will Request shows the Webpage to be visited to be loaded that carried in webpage carrier control that is linked at.
In step S220, according to page access instruction to webpage carrier control where link to be loaded and in can see this The webpage carrier control of state carries out state switching.
Visible state only is in there are one webpage carrier control in terminal, the webpage carrier control of visible state is in by this Part makes its Webpage carried be in dispaly state, and a webpage carrier control can only carry a Webpage, thus Only there are one Webpages to be in display.
Page access instruction is received, it, need to be by the webpage of display when carrying out the page access of link to be loaded according to its instruction The page replaces with the Webpage of the link to be loaded, so as to fulfill redirecting for Webpage.Therefore by the link institute to be loaded State switching is carried out in webpage carrier control and webpage carrier control in visible state, the Webpage of display will be carried Webpage carrier control invisible mode is switched to by visible state, by webpage carrier control where the link to be loaded by can not State of seeing this is switched to visible state.
In step S230, visible state is switched to by invisible mode by webpage carrier control where link to be loaded And the Webpage to be visited of carrying is shown.
After webpage carrier control switches to visible state by invisible mode where link to be loaded, to the chain to be loaded The Webpage connect is shown.
State is carried out by webpage carrier control where link to be loaded and the webpage carrier control in visible state to cut After changing, the Webpage each carried is made to switch over display, so as to fulfill redirecting for Webpage.
For example, network carrier control includes a webpage carrier control W1 for being in visible state and three are in invisible Webpage carrier control W2, W3, W4 of state.The Webpage Y1 of webpage carrier control W1 carryings is in dispaly state, webpage The Webpage that carrier control W2 and webpage carrier control W3 are carried respectively is Y2, Y3, and Webpage Y2, Y3, which are in, hides shape State, webpage carrier control W4 are in idle condition, and do not carry Webpage.Pass through webpage carrier control W1 and webpage carrier control The state switching of W2, the Webpage of webpage carrier control W1 carryings are converted to hidden state, webpage carrier control W2 carryings Webpage is converted to dispaly state.
By method as described above, in the display page of display, the page access instruction of link to be loaded is received, is led to The webpage carrier control and link place to be loaded webpage carrier control for crossing the Webpage of carrying display carry out state switching, Make to be shown the Webpage to be visited of webpage carrier control carrying where the link to be loaded, due to not being to receive link Page access instruction after start to load again, substantially reduce the time that Webpage redirects.
Optionally, according in a kind of method realized Webpage and loaded shown in an exemplary embodiment, the page is visited It asks that instruction indicates not loading the page access of link in progress Webpage, after step S210, realizes Webpage loading Method can also comprise the following steps.
In step, in the webpage carrier control in visible state, chain is not loaded according to page access instruction instruction The loading of the row page is tapped into, the Webpage for not loading link is jumped to by the Webpage shown.
In the Webpage of display, the all-links that not necessarily Webpage includes are link to be loaded.Page Face access instruction may be by triggering link to be loaded and initiating Webpage access request, it is also possible to be added by triggering It carries other links beyond link and initiates Webpage access request.
The Webpage for not loading link is not preloaded, and accessing page request is initiated when triggering does not load link When, start to carry out page loading to the link and show by the webpage carrier control for being in visible state.
Fig. 5 is the description according to the details to step S120 shown in an exemplary embodiment.In Fig. 5, link to be loaded It is linked for high access probability, the step S120 in Fig. 3 may comprise steps of.
In step S121, the pre- access probability that is respectively linked in the link that the analyzing web page page includes, according to it is pre- access it is general Rate determines high access probability link from the link that Webpage includes.
Pre- access probability is the access probability of each link.High access probability link is the larger link of access probability.
It is understood that in the Webpage of display, there are certain differences for the access probability respectively linked.The net of display In the link that the page page includes, by carrying out page preloading to the link of high access probability, make the link of access probability bigger It is preloaded by the page, the time that the shortening Webpage of bigger possibility redirects, avoids the waste of Internet resources.
The analyzing web page page is to carry out attributive analysis to Webpage, obtains each property parameters of link.
There are many realization methods for the pre- access probability that parsing respectively links in the Webpage in dispaly state, Ke Yitong Webpage of the parsing in dispaly state is crossed, obtains the history access number respectively linked in Webpage, it is each so as to calculate The pre- access probability of link;It can also be by parsing the Webpage in dispaly state, acquisition is respectively linked in Webpage Display area or display location, calculate the pre- access probability of each link;It can also parse in other way in display The pre- access probability respectively linked in the Webpage of state, is not limited thereto.
After the pre- access probability of each link is obtained, will can in advance it be accessed by presetting a pre- access probability reference value The link that probability is more than the pre- access probability reference value is determined as high access probability link;It is larger that pre- access probability can also be chosen A certain number of be linked as the link of high access probability;High access probability link can also be determined in other way.
In an exemplary embodiment, the class attributes that high access probability links are arranged to " hot_herf ".
In step S122, judge whether the webpage carrier control quantity in invisible mode is less than high access probability chain The quantity connect, if it has, then step S123 is performed, if it has not, then performing step S125.
Webpage carrier control quantity in invisible mode be it is pre-set, and one be in invisible mode net Page carrier control can only carry out page preloading for a link to be loaded simultaneously.It therefore, need to be to being in invisible mode Webpage carrier control quantity and the quantity of high access probability link are compared, and judge the size of the two.When in can not see this When the webpage carrier control quantity of state is less than the quantity of high access probability link, the high access probability link of selected part is needed;Work as place When the webpage carrier control quantity of invisible mode is greater than or equal to the quantity of high access probability link, all high visits are determined Ask that probability is linked as link to be loaded.
For example, the webpage carrier control in invisible mode is arranged to 3, respectively webpage carrier control W2, W3, W4.When high access probability is linked there are 2, is respectively high access probability link A1, A2, then by high access probability link A1, A2 is determined as link to be loaded;When high access probability is linked there are 4, respectively high access probability links A1, A2, A3, A4 When, then 3 high access probability link need to be selected in high access probability links A1, A2, A3, A4 and is used as link to be loaded.
In step S123, quantity and the webpage carrier control in invisible mode are chosen in the link of high access probability The identical high access probability link of quantity, the high access probability of selection is linked as link to be loaded.
It, can be according to each high access in the link of high access probability there are many modes of the high access probability link of selected part The pre- access probability size of probability link, the high access probability link of selected part;The high access probability in part can also be randomly selected Link;The high access probability of history access time order selected part that can also be linked according to each high access probability links;May be used also To link according to selecting the high access probability in part in a manner of other in the link of high access probability, it is not limited thereto.
In step s 125, determine that all high access probabilities are linked as link to be loaded.
By method as above, the Webpage of dispaly state is parsed, the high access obtained in Webpage is general Rate links, and then is linked according to high access probability and determine link to be loaded, and the link for making carry out page preloading is high access Probability links.
Fig. 6 is the description according to the details to step S121 shown in an exemplary embodiment.Step S121 can be wrapped Include following steps.
In step S1211, the analyzing web page page obtains the hot value respectively linked in the link that Webpage includes.
Hot value is the history visit capacity of link.The bigger link of history visit capacity, hot value are bigger.
Server can record the history visit capacity respectively linked in entire internet, and terminal can be to passing through the end The history visit capacity that end carries out links and accesses is recorded.
The Webpage of parsing display obtains the display page and includes there are many modes of the hot value respectively linked in link, It can be obtained by parsing the Webpage shown according to the script file of Webpage each in the Webpage of server statistics The hot value of link;The heat respectively linked in the Webpage of terminal statistics can also be obtained by parsing the Webpage shown Angle value;The Webpage that dispaly state can also be parsed by other means obtains the hot value of each link, is not limited thereto.
In step S1212, determine that high access probability links in link according to the magnitude relationship of hot value.
In the link included due to the Webpage of display, the hot value that respectively links simultaneously differs, according to the big of hot value Small relation is chosen the larger high access probability that is linked as of hot value and is linked.
There are many realization methods for determining high access probability link in link according to the magnitude relationship of hot value.It can be pre- One temperature reference value is first set, and the link that hot value is greater than or equal to the temperature reference value is determined as high access probability chain It connects, high access probability link can also be linked as according to the selection of the hot value of each link is a certain number of;Other can also be passed through Mode realize and determine the link of high access probability in each link according to hot value.
Fig. 7 is according to a kind of method flow diagram realized Webpage and loaded shown in an exemplary embodiment.Such as Fig. 7 institutes Show, the method for realization Webpage loading can also comprise the following steps.
In step S310, the page back-off instruction in Webpage is received, the instruction of page back-off instruction carries out previous net The page of the page page is shown.
It is understood that when obtaining the information of terminal, constantly carry out redirecting display by Webpage one by one, And then obtain the information in Webpage.Thus during the display of Webpage, there are certain display is suitable for each Webpage Sequence.
Page back-off instruction is used to the Webpage of the previous display of the Webpage re-starting display.
In step s 320, judge whether the corresponding link of Webpage is link to be loaded in previous Webpage, If it has, then step S330 is performed, if it has not, then performing step S350.
After receiving the page access instruction that instruction carries out link page access to be loaded, by where the link to be loaded Webpage carrier control and the webpage carrier control progress state switching in visible state, webpage carries where the link to be loaded After body control switches to visible state by invisible mode, it is shown the Webpage of the link to be loaded, and this is to be loaded The previous Webpage of the Webpage of link, should after carrying webpage carrier control switches to invisible mode by visible state Previous Webpage is in hidden state.Thus there is display by judging to whether there is in the Webpage in hidden state The previous webpage of Webpage, and then identify whether corresponding link of the Webpage of display is to be treated in the previous Webpage Loading link.
The corresponding link of Webpage of display may be the link to be loaded in previous Webpage, it is also possible to previous Link is not loaded in Webpage.
If the corresponding link of the Webpage of display is the link to be loaded in previous Webpage, the previous webpage is carried After the webpage carrier control of the page is switched to invisible mode by visible state, which is also at hidden state In.Therefore, when which shows again, the webpage carrier control of the previous Webpage need to will only be carried by can not State of seeing this is switched to visible state, and then the previous Webpage of carrying is shown again.
If the corresponding link of the Webpage of display is not load link in previous Webpage, the Webpage is carried The Webpage that is carried of webpage carrier control replace with the previous Webpage.Therefore, to the previous Webpage weight When newly being shown, the previous Webpage need to be loaded again through webpage carrier control.
In step S330, to carrying the webpage carrier control of Webpage and carrying the webpage carrier of previous Webpage Control carries out state switching.
In step S340, visible state is switched to by invisible mode by the webpage carrier control of previous Webpage And the previous Webpage of carrying is shown.
In step S350, previous Webpage is loaded and shown by the webpage carrier control for carrying Webpage Show.
By method as described above, when page rollback operation is carried out in the Webpage of display, for the net of display The page page is that link to be loaded carries out the Webpage obtained after page preloading in previous Webpage, only need to be to carrying the net The webpage carrier control of the previous Webpage of the webpage carrier control and carrying of the page page Webpage carries out state switching, And then the previous Webpage is shown, substantially reduce the time of Webpage rollback.
Following is embodiment of the present disclosure, and the method that can be used for performing this above-mentioned realization Webpage loading is implemented Example.For the details not disclosed in embodiment of the present disclosure, it refer to the disclosure and realize that the method for Webpage loading is implemented Example.
Fig. 8 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment, the device bag It includes but is not limited to:Webpage display module 110, link determining module 120 to be loaded and page preloaded components 130.
Webpage display module 110, for carrying Webpage by the webpage carrier control for being in visible state, into The display of row Webpage;
Link determining module 120 to be loaded is in the webpage carrier control quantity of invisible mode for basis, described Link to be loaded is determined in the link that Webpage includes;
Page preloaded components 130, for being directed to each link to be loaded, in the webpage carrier that one is in invisible mode Page preloading is carried out in control, obtains the Webpage to be visited to be loaded for being linked at and being carried in webpage carrier control.
The function of modules and the realization process of effect specifically refer to above-mentioned realization Webpage loading in above device Method in correspond to the realization process of step, details are not described herein.
Fig. 9 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment, such as Fig. 9 institutes Show, realize that the device of Webpage loading is further included but is not limited in Fig. 8:Page access command reception module 210, first state Handover module 220 and page display module to be visited 230.
Page access command reception module 210, for receiving the instruction of the page access in the Webpage, the page Access instruction instructs for the page access of link to be loaded;
First state handover module 220, for being instructed according to the page access to webpage where the link to be loaded Carrier control and the webpage carrier control progress state switching in visible state;
Page display module 230 to be visited, for by webpage carrier control where the link to be loaded by invisible State switch to visible state and so that the Webpage to be visited of carrying is shown.
Optionally, a kind of device block diagram for realizing Webpage loading according to an exemplary embodiment, the page are visited It asks page access instruction of the instruction for other links beyond link to be loaded in Webpage, realizes that Webpage adds in Fig. 8 The device of load is further included but is not limited to:Page load-on module.
Page load-on module, in the webpage carrier control in visible state, being instructed according to the page access The link that do not load indicated carries out page loading, and the webpage page for not loading link is jumped to by the Webpage shown Face.
Optionally, to be loaded to be linked as high access probability link, as shown in Figure 10, Webpage display module 120 includes But it is not limited to:Submodule 123 and to be loaded is chosen in high probability link determination sub-module 121, quantity judging submodule 122, link Submodule 123 is chosen in link.
High probability links determination sub-module 121, for parsing the pre- visit respectively linked in the link that the Webpage includes It asks probability, determines that high access probability links from the link that the Webpage includes according to pre- access probability;
Quantity judging submodule 122, for judging whether the webpage carrier control quantity in invisible mode is less than institute State the quantity of high access probability link;
Submodule 123 is chosen in link to be loaded, for if it is, choosing quantity and institute in the high access probability link The identical high access probability link of the webpage carrier control quantity in invisible mode is stated, the high access probability of selection is linked As link to be loaded.
Optionally, as shown in figure 11, high probability link determination sub-module 121 includes but not limited to:Hot value acquiring unit 1211 and high probability link determination unit 1212.
Hot value acquiring unit 1211, it is obtained for parsing the Webpage in the link that the Webpage includes The hot value respectively linked;
High probability links determination unit 1212, high probability link determination unit, for being closed according to the size of the hot value It ties up in the link and determines high access probability link.
Figure 12 is according to a kind of device block diagram realized Webpage and loaded shown in an exemplary embodiment, such as Figure 12 institutes Show, realize that the device of Webpage loading is further included but is not limited in Fig. 8:Back-off instruction receiving module 310, Webpage judge Module 310, the second state handover module 330 and previous page display module 340.
Back-off instruction receiving module 310, for receiving the page back-off instruction in the Webpage, the page retracts The page that instruction instruction carries out previous Webpage is shown;
Webpage judgment module 320, for judging whether the corresponding link of the Webpage is the previous webpage Link to be loaded in the page;
Second state handover module 330, for if it has, then to carrying the webpage carrier control of the Webpage and holding The webpage carrier control for carrying the previous Webpage carries out state switching;
Previous page display module 340 carries the webpage carrier control of the previous Webpage by can not for passing through State of seeing this switch to visible state and so that the previous Webpage of carrying is shown.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and change can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (10)

  1. A kind of 1. method for realizing Webpage loading, which is characterized in that the described method includes:
    Webpage is carried by the webpage carrier control for being in visible state, carries out the display of the Webpage;
    According to the webpage carrier control quantity in invisible mode, determined in the link included in the Webpage to be loaded Link;
    For each link to be loaded, page preloading is carried out in a webpage carrier control in invisible mode, is obtained It is described to be loaded to be linked at the Webpage to be visited carried in the webpage carrier control.
  2. 2. according to the method described in claim 1, it is characterized in that, described for each link to be loaded, being in one can not Page preloading is carried out in the webpage carrier control for state of seeing this, to be loaded be linked in the webpage carrier control is obtained and holds After the Webpage step to be visited carried, the method further includes:
    The page access instruction in the Webpage is received, the page access instruction instruction carries out the link to be loaded Page access;
    According to page access instruction to webpage carrier control where the link to be loaded and the webpage in visible state Carrier control carries out state switching;
    Visible state is switched to by invisible mode and is carried by webpage carrier control where the link to be loaded Webpage to be visited is shown.
  3. 3. according to the method described in claim 2, it is characterized in that, page access instruction instruction carries out the Webpage In do not load the page access of link, after the page access instruction step received in Webpage, the method is also wrapped It includes:
    In the webpage carrier control in visible state, page is carried out according to the link that do not load of page access instruction instruction Face loads, and the Webpage for not loading link is jumped to by the Webpage shown.
  4. 4. according to the method described in claim 1, it is characterized in that, it is described it is to be loaded be linked as the link of high access probability, it is described According to the webpage carrier control quantity in invisible mode, link to be loaded is determined in the link included in the Webpage Step includes:
    The pre- access probability respectively linked in the link that the Webpage includes is parsed, according to the pre- access probability from the net High access probability link is determined in the link that the page page includes;
    Judge whether the webpage carrier control quantity in invisible mode is less than the quantity of the high access probability link, if It is, then
    It is identical with the webpage carrier control quantity in invisible mode that quantity is chosen in the high access probability link The link of high access probability, the high access probability of selection is linked as link to be loaded.
  5. 5. according to the method described in claim 4, it is characterized in that, each chain in the link that the parsing Webpage includes The pre- access probability connect determines that high access probability link step includes in the link included from the Webpage:
    It parses the Webpage and obtains the hot value respectively linked in the link that the Webpage includes;
    High access probability link is determined in the link according to the magnitude relationship of the hot value.
  6. 6. according to the method described in claim 1, it is characterized in that, the method further includes:
    The page back-off instruction in the Webpage is received, the page back-off instruction instruction carries out the page of previous Webpage Face is shown;
    Judge whether the corresponding link of the Webpage is link to be loaded in the previous Webpage;
    If it has, then to carrying the webpage carrier control of the Webpage and carrying the webpage carrier of the previous Webpage Control carries out state switching;
    Visible state is switched to by invisible mode by the webpage carrier control for carrying the previous Webpage and is held The previous Webpage carried is shown.
  7. 7. a kind of device for realizing Webpage loading, which is characterized in that including:
    Webpage display module, for carrying Webpage by the webpage carrier control for being in visible state, described in progress The display of Webpage;
    Link determining module to be loaded is in the webpage carrier control quantity of invisible mode for basis, in the webpage page Link to be loaded is determined in the link that bread contains;
    Page preloaded components, for being directed to each link to be loaded, in a webpage carrier control in invisible mode Page preloading is carried out, obtains described to be loaded being linked at the Webpage to be visited carried in the webpage carrier control.
  8. 8. device according to claim 7, which is characterized in that described device further includes:
    Page access command reception module, for receiving the instruction of the page access in the Webpage, the page access refers to Make the page access instruction for link to be loaded;
    First state handover module, for being instructed according to the page access to webpage carrier control where the link to be loaded State switching is carried out with the webpage carrier control in visible state;
    Page display module to be visited, for being switched by webpage carrier control where the link to be loaded by invisible mode To visible state the Webpage to be visited of carrying is shown.
  9. 9. device according to claim 8, which is characterized in that the page access instruction instruction carries out the Webpage In do not load the page access of link, described device further includes:
    Page load-on module, in the webpage carrier control in visible state, being instructed and being indicated according to the page access The link that do not load carry out page loading, the Webpage for not loading link is jumped to by the Webpage shown.
  10. 10. device according to claim 7, which is characterized in that it is described it is to be loaded be linked as the link of high access probability, it is described Webpage display module further includes:
    High probability links determination sub-module, for parsing the pre- access probability respectively linked in the link that the Webpage includes, High access probability link is determined from the link that the Webpage includes according to the pre- access probability;
    Quantity judging submodule, for judging whether the webpage carrier control quantity in invisible mode is less than the high access The quantity of probability link;
    Submodule is chosen in link to be loaded, for being in if it is, choosing quantity in the high access probability link with described The high access probability that the webpage carrier control quantity of invisible mode is identical links, and the high access probability link of selection is made For link to be loaded.
CN201610998596.8A 2016-11-11 2016-11-11 Method and device for realizing webpage loading Active CN108073610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998596.8A CN108073610B (en) 2016-11-11 2016-11-11 Method and device for realizing webpage loading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998596.8A CN108073610B (en) 2016-11-11 2016-11-11 Method and device for realizing webpage loading

Publications (2)

Publication Number Publication Date
CN108073610A true CN108073610A (en) 2018-05-25
CN108073610B CN108073610B (en) 2021-03-02

Family

ID=62161904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998596.8A Active CN108073610B (en) 2016-11-11 2016-11-11 Method and device for realizing webpage loading

Country Status (1)

Country Link
CN (1) CN108073610B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965969A (en) * 2018-06-28 2018-12-07 烽火通信科技股份有限公司 Method for page jump and system for IPTV set top box
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium
CN110716867A (en) * 2019-09-12 2020-01-21 香港乐蜜有限公司 Method, device and equipment for detecting multi-page jump pressure
CN112685666A (en) * 2020-12-28 2021-04-20 北京三快在线科技有限公司 Page loading method and device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103279538A (en) * 2013-06-03 2013-09-04 北京奇虎科技有限公司 Server, browser client side and method for preloading webpages in visited websites
CN103618936A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN104268221A (en) * 2014-09-25 2015-01-07 车智互联(北京)科技有限公司 Page turning method and page turning system based on Ios system WebView
CN104461632A (en) * 2014-12-09 2015-03-25 东软集团股份有限公司 Web App loading method and device
US9070211B1 (en) * 2012-10-18 2015-06-30 Google Inc. Webview tag for a sandboxed multiprocess browser
CN105512254A (en) * 2015-12-01 2016-04-20 上海携程商务有限公司 Terminal, webpage information preloading method and system
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device
CN105653585A (en) * 2015-12-21 2016-06-08 北京奇虎科技有限公司 Method and device for switching webpages in browser labels

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
US9070211B1 (en) * 2012-10-18 2015-06-30 Google Inc. Webview tag for a sandboxed multiprocess browser
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103279538A (en) * 2013-06-03 2013-09-04 北京奇虎科技有限公司 Server, browser client side and method for preloading webpages in visited websites
CN103618936A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN104268221A (en) * 2014-09-25 2015-01-07 车智互联(北京)科技有限公司 Page turning method and page turning system based on Ios system WebView
CN104461632A (en) * 2014-12-09 2015-03-25 东软集团股份有限公司 Web App loading method and device
CN105512254A (en) * 2015-12-01 2016-04-20 上海携程商务有限公司 Terminal, webpage information preloading method and system
CN105653585A (en) * 2015-12-21 2016-06-08 北京奇虎科技有限公司 Method and device for switching webpages in browser labels
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965969A (en) * 2018-06-28 2018-12-07 烽火通信科技股份有限公司 Method for page jump and system for IPTV set top box
CN108965969B (en) * 2018-06-28 2020-08-14 烽火通信科技股份有限公司 Page skipping method and system for IPTV set top box
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium
CN109753617B (en) * 2019-01-14 2021-08-31 广州虎牙信息科技有限公司 Page display method, equipment and storage medium
CN113590995A (en) * 2019-01-14 2021-11-02 广州虎牙信息科技有限公司 Page display method, equipment and storage medium
CN113590995B (en) * 2019-01-14 2023-08-01 广州虎牙信息科技有限公司 Page display method, device and storage medium
CN110716867A (en) * 2019-09-12 2020-01-21 香港乐蜜有限公司 Method, device and equipment for detecting multi-page jump pressure
CN110716867B (en) * 2019-09-12 2023-06-20 卓米私人有限公司 Method, device and equipment for detecting multi-page jump pressure
CN112685666A (en) * 2020-12-28 2021-04-20 北京三快在线科技有限公司 Page loading method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108073610B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN108538291A (en) Sound control method, terminal device, cloud server and system
CN108073610A (en) Realize the method and device of Webpage loading
CN108829856A (en) The resource of web application preloads method and device in display terminal
CN104978267A (en) Web page testing method, terminal and server
CN111273899B (en) Code processing method, device, electronic equipment and storage medium
CN106603667A (en) Screen information sharing method and device
CN107526605A (en) The method and apparatus for realizing application program loading serviced component
CN106658079A (en) Customized expression image generation method and device
CN105549876B (en) The method and device inputted in input frame
CN103246666B (en) Web access method and device
CN104932712A (en) Text input method and device
CN104898914A (en) Multi-page display method and device
CN104657201A (en) Method, device, equipment and system for pushing application program
CN106547904A (en) Across account information sharing method and device
CN104965842A (en) Search recommending method and apparatus
CN104539476A (en) Data package obtaining method and device
CN104636170A (en) Application acquiring method and device and electronic device
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN104616241A (en) Video screen-shot method and device
CN105159524A (en) Interface display method and apparatus
CN109684571A (en) Data acquisition method and device and storage medium
CN105183493A (en) Display method and device of network information
CN105653195B (en) Screenshotss method and mobile terminal
CN106294707A (en) A kind of countdown information output intent and device
CN104268162A (en) Data storage method and device

Legal Events

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