CN107943803A - A kind of method and apparatus for realizing that webpage quickly loads based on big data - Google Patents

A kind of method and apparatus for realizing that webpage quickly loads based on big data Download PDF

Info

Publication number
CN107943803A
CN107943803A CN201610890412.6A CN201610890412A CN107943803A CN 107943803 A CN107943803 A CN 107943803A CN 201610890412 A CN201610890412 A CN 201610890412A CN 107943803 A CN107943803 A CN 107943803A
Authority
CN
China
Prior art keywords
page
link
redirected link
state
redirected
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.)
Pending
Application number
CN201610890412.6A
Other languages
Chinese (zh)
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.)
Ocean University of China
Original Assignee
Ocean University of China
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 Ocean University of China filed Critical Ocean University of China
Priority to CN201610890412.6A priority Critical patent/CN107943803A/en
Publication of CN107943803A publication Critical patent/CN107943803A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the present invention provides a kind of method and apparatus for realizing that webpage quickly loads based on big data, and this method includes:Current page is parsed for the first preset control of visible state by current state, determines that hot value is more than the target redirected link of preset heat value in the current page;Loaded by current state for the second preset control of invisible mode and cache the corresponding page info of the target redirected link, so that the corresponding jump page of the page info is hidden state;When the target redirected link is triggered, according to the page info of caching, the jump page is shown.For improving the efficiency loaded to the page.

Description

A kind of method and apparatus for realizing that webpage quickly loads based on big data
Technical field
The present embodiments relate to field of computer technology, more particularly to one kind to realize that webpage quickly loads based on big data Method and apparatus.
Background technology
At present, an application program can include multiple Webpages (the hereinafter referred page), can be embedding in a page Enter multiple redirected links, user can carry out clicking operation to the redirected link in the page, so that the page jump currently browsed To the corresponding page of redirected link.
In the prior art, a preset control (such as webview controls) is usually provided with the application, and is passed through The preset control is loaded and shown to the content in webpage.Specifically, when needing to show current page, pass through The preset control carries out current page to the corresponding page info of server acquisition request current page, and according to page info It has been shown that, when user carries out clicking operation to a redirected link in current page, then by the preset control to server Acquisition request redirected link corresponding page information, and the corresponding jump page of redirected link is shown according to page info.
However, since the speed to server acquisition request page info is slower, redirected link is carried out in user , it is necessary to which longer duration can get the corresponding page info of redirected link after click, cause the effect to page loading Rate is relatively low.
The content of the invention
The embodiment of the present invention provides a kind of method and apparatus for realizing that webpage quickly loads based on big data, for improving pair The efficiency that the page is loaded.
In a first aspect, the embodiment of the present invention provides a kind of page loading method, including:
Current page is parsed for the first preset control of visible state by current state, in the current page In determine hot value be more than preset heat value target redirected link;
Loaded by current state for the second preset control of invisible mode and cache the target redirected link and corresponded to Page info so that the corresponding jump page of the page info is hidden state;
When the target redirected link is triggered, according to the page info of caching, the jump page is shown.
In a kind of possible embodiment, according to the page info of caching, the jump page is shown, including:
The state of first preset control is switched to invisible mode, so that the state of the current page is switched to Hidden state;
The state of second preset control is switched to visible state so that the state of the jump page be switched to it is aobvious Show state.
In alternatively possible embodiment, by current state for visible state the first preset control to current page Face is parsed, and determines that hot value is more than the target redirected link of preset heat value in the current page, including:
By first preset control to DOM Document Object Model (the Document Object in the current page Model, abbreviation DOM) element parsed, link DOM element, the chain are determined in the DOM element in the current page Connecing DOM element includes redirected link;
Determine the hot value for the redirected link that each link DOM element includes;
By it is described link DOM element in, hot value be more than the preset heat value redirected link be determined as the target Redirected link.
In alternatively possible embodiment, by first preset control to the DOM members in the current page Element is parsed, and link DOM element is determined in the DOM element in the current page, including:
The DOM element in the current page is parsed by first preset control, obtains the current page The label information of each DOM element in face;
Label information is determined as the DOM element for including redirected link for the DOM element of redirected link label.
In alternatively possible embodiment, the temperature for the redirected link that each link DOM element includes is determined Value, including:
The attribute information of each link DOM element is obtained by first preset control;
The heat for the redirected link that each DOM element includes is obtained in the attribute information of each link DOM element Angle value.
In alternatively possible embodiment, the temperature for the redirected link that each link DOM element includes is determined Value, including:
Obtain each redirected link and be clicked number and each redirected link described current in preset period of time Position in the page;
Number and each redirected link are clicked described current in preset period of time according to each redirected link Position in the page, determines the hot value of each redirected link.
In alternatively possible embodiment, according to each redirected link in preset period of time be clicked number, And position of each redirected link in the current page, determine the hot value of each redirected link, including:
According to position of each redirected link in the current page, determine each redirected link described current Sequencing in the page;
According to sequencing of each redirected link in the current page, the weight of each redirected link is determined Value;
Number is clicked in preset period of time according to the weighted value of each redirected link and each redirected link, Determine the hot value of each redirected link.
In alternatively possible embodiment, first preset control is the first webview controls;
Second preset control is the first webview controls.
Second aspect, the embodiment of the present invention provide a kind of page loading device, including:
Determining module, for being parsed by current state for the first preset control of visible state to current page, Determine that hot value is more than the target redirected link of preset heat value in the current page;
Load-on module, for being loaded by current state for the second preset control of invisible mode and caching the target The corresponding page info of redirected link, so that the corresponding jump page of the page info is hidden state;
Display module, for when the target redirected link is triggered, according to the page info of caching, showing institute State jump page.
In a kind of possible embodiment, the display module is specifically used for:
The state of first preset control is switched to invisible mode, so that the state of the current page is switched to Hidden state;
The state of second preset control is switched to visible state so that the state of the jump page be switched to it is aobvious Show state.
In alternatively possible embodiment, the determining module include the first determination unit, the second determination unit and 3rd determination unit, wherein,
First determination unit is used for, by first preset control to the DOM element in the current page into Row parses, and link DOM element is determined in the DOM element in the current page, and the link DOM element includes skip chain Connect;
Second determination unit is used for, and determines the hot value for the redirected link that each link DOM element includes;
3rd determination unit is used for, by it is described link DOM element in, hot value be more than the preset heat value jump Turn link and be determined as the target redirected link.
In alternatively possible embodiment, first determination unit is specifically used for:
The DOM element in the current page is parsed by first preset control, obtains the current page The label information of each DOM element in face;
Label information is determined as the DOM element for including redirected link for the DOM element of redirected link label.
In alternatively possible embodiment, second determination unit is specifically used for:
The attribute information of each link DOM element is obtained by first preset control;
The heat for the redirected link that each DOM element includes is obtained in the attribute information of each link DOM element Angle value.
In alternatively possible embodiment, second determination unit is specifically used for:
Obtain each redirected link and be clicked number and each redirected link described current in preset period of time Position in the page;
Number and each redirected link are clicked described current in preset period of time according to each redirected link Position in the page, determines the hot value of each redirected link.
In alternatively possible embodiment, second determination unit is specifically used for:
According to position of each redirected link in the current page, determine each redirected link described current Sequencing in the page;
According to sequencing of each redirected link in the current page, the weight of each redirected link is determined Value;
Number is clicked in preset period of time according to the weighted value of each redirected link and each redirected link, Determine the hot value of each redirected link.
In alternatively possible embodiment, first preset control is the first webview controls;
Second preset control is the first webview controls.
The method and apparatus provided in an embodiment of the present invention for realizing that webpage quickly loads based on big data, in user to current During the page is browsed, current page is parsed for the first preset control of visible state by current state, Determine that hot value is more than the target redirected link of preset heat value in current page, control is preset by the second of invisible mode Part preloads the corresponding page of target redirected link, in this way, when target redirected link is triggered, without to server The corresponding page info of acquisition request target redirected link, only need to obtain the corresponding page of target redirected link from local cache Information is simultaneously shown, and then improves the efficiency loaded to the page.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the application scenarios schematic diagram for the page loading method that invention provides;
Fig. 2 is the flow diagram of page loading method provided by the invention;
Fig. 3 is the flow diagram of definite target redirected link method provided by the invention;
Fig. 4 is the flow diagram one of the method for the hot value of definite redirected link provided by the invention;
Fig. 5 is the flow diagram two of the method for the hot value of definite redirected link provided by the invention;
Fig. 6 is the structure diagram one of page loading device provided by the invention;
Fig. 7 is the structure diagram two of page loading device provided by the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Fig. 1 is the application scenarios schematic diagram for the page loading method that invention provides, and refers to Fig. 1, including terminal device 101 With server 102.Terminal device 101 can be the equipment such as mobile phone, computer and TV, and being provided with terminal device 101 has The application program of page display function, is provided with least two preset controls in the application, which is used for realization The loading and display of web page.In actual application, terminal device 101 can be by each preset control to server 102 acquisition request page infos, terminal device 101 can also flexibly set the state of each preset control, to realize same The page info that moment only acquires a preset control is shown.In this application, one is passed through in terminal device During preset control shows current page, terminal device can also pass through another or multiple preset controls pair The corresponding page info of redirected link in current page is preloaded and cached, in this way, being carried out in user to redirected link After clicking operation, terminal device need not be again to the corresponding page info of server acquisition request redirected link, only need to be from local The corresponding page info of redirected link is obtained in caching and is shown, and then improves the effect loaded to the page Rate.
In the following, the technical solution shown in the application is described in detail by specific embodiment.Under it should be noted that These specific embodiments of face can be combined with each other, may be in certain embodiments for the same or similar concept or process Repeat no more.
Fig. 2 is the flow diagram of page loading method provided by the invention, refers to Fig. 2, this method can include:
S201, by current state parse current page for the first preset control of visible state, in current page Determine that hot value is more than the target redirected link of preset heat value in face;
S202, pass through second preset control loading of the current state for invisible mode and caching of target redirected link correspondence Page info so that the corresponding jump page of page info is hidden state;
S203, when target redirected link is triggered, according to the page info of caching, show jump page.
The executive agent of the embodiment of the present invention can be page loading device.Optionally, which can lead to Cross software and/or hardware realization;Optionally, which can be arranged in terminal device.First preset control and Second preset control is used to web page is loaded and shown, optionally, when terminal device is android system, first Preset control is the first webview controls, and the second preset control is webview controls.
In actual application, it is necessary to when being shown to current page, page loading device can pass through current shape State is loaded and shown to current page for the first preset control of visible state, and the state due to the first preset control is can See this state, therefore, the state of the current page shown by first preset control is dispaly state.Optionally, can pass through First preset control is to the corresponding page info of server acquisition request current page, and according to the page info acquired Current page is shown.
After page loading device completes current page loading by the first preset control, pass through the first preset control Current page is parsed, to determine that hot value is more than the target redirected link of preset heat value in current page.Certainly, The highest N number of redirected link of hot value in current page can also be determined as to target redirected link, N is more than or equal to 1 Positive integer.Optionally, all redirected links can be first obtained in current page, obtain the hot value of each redirected link, and The redirected link that hot value is more than to preset heat value is determined as target redirected link.Optionally, the hot value of redirected link is used In the instruction probability that redirected link is clicked in current page, the hot value of redirected link is higher, and the redirected link is current The probability being clicked in the page is higher.Optionally, in actual application, preset heat can be set according to being actually needed Value.
After page loading device determines to obtain target redirected link, by current state be invisible mode second The corresponding page info of preset control loaded targets redirected link, and the page info to acquiring carries out local cache, by It is invisible mode in the state of the second preset control, therefore, the jump page shown by second preset control is hiding State.Optionally, multiple target redirected links may be included in current page, correspondingly, can be each target skip chain Definite corresponding second preset control is connect, and respectively by corresponding second preset control to loading each target redirected link pair The page info answered, optionally, each second preset control can load the corresponding page of corresponding target redirected link at the same time Information, each second preset control can also be according to the corresponding page infos of the corresponding target redirected link of preset order loading. Certainly, if the number of the target redirected link in current page is more than predetermined threshold value, in order to ensure the process performance of terminal device, The corresponding page info of a part of target redirected link can then be loaded by the second preset control.
When target redirected link is triggered, page loading device is directly according to caching, target jump page correspondence Page info, you can jump page is shown.Optionally, the state of the first preset control can be switched to invisible State, so that the state of current page is switched to hidden state;Meanwhile the state of the second preset control is switched to and can be seen this State, so that the state of jump page is switched to dispaly state.In this process, when target redirected link is triggered, without to The corresponding page info of server acquisition request target redirected link, need to only obtain target redirected link correspondence from local cache Page info and shown, and then improve the efficiency loaded to the page.
It should be noted that it is also possible that hot value is less than or equal to the non-targeted of preset heat value in current page Redirected link, in actual application, if non-targeted redirected link is triggered, discharges the second preset control, and delete mesh Mark the corresponding page info of jump page.
In the following, the method shown in Fig. 2 embodiments is described in detail by specific example.
It is exemplary, it is assumed that the system of terminal device is android system, correspondingly, the first preset control and second pre- If control is respectively webview controls.Assume again that and application program 1 is mounted with terminal device, 5 are provided with application program 1 Webview controls, are denoted as webview control 1-webview controls 5 respectively.
When needing to show homepage, the state of webview controls 1 is arranged to see this by page loading device State, invisible mode is arranged to by the state of webview control 2-webview controls 5.Page loading device passes through webview Control 1 loads the page info of homepage, and homepage is shown according to the page info of homepage.
After page loading device loads completion homepage, homepage is parsed by webview controls 1, will The highest redirected link 1 of hot value and redirected link 2 determine target redirected link in current page.Determine that redirected link 1 corresponds to Webview controls be webview controls 2, it is webview controls 3 to determine the corresponding webview controls of redirected link 2.
During user browses homepage, page loading device is loaded and cached by webview controls 2 1 corresponding page info of redirected link, is loaded by webview controls 3 and caches 2 corresponding page info of redirected link, this When, since the state of webview controls 2 and webview controls 3 is invisible mode, redirected link 1 is corresponding to be redirected The page 1 and the corresponding jump page 2 of redirected link 2 are hidden state.Optionally, it is assumed that the hot value of redirected link 1 is more than The hot value of redirected link 2, then can first pass through webview controls 2 and load and cache 1 corresponding page info of redirected link, Loaded to the corresponding page info loaded of redirected link 1 and then by webview controls 3 and cache redirected link 2 Corresponding page info.
After user carries out clicking operation to redirected link 1, redirected link 1 is triggered, then page loading device will The state of webview controls 1 is switched to invisible mode, so that homepage is switched to hidden state so that homepage is invisible; Meanwhile the state of webview controls 2 is switched to visible state, so that the corresponding section of jump page 1 of redirected link 1 is aobvious Show state so that jump page 1 is shown.Optionally, cached by webview controls 3, redirected link 2 can also be deleted Corresponding page info.
In above process, during user browses current page, the of invisible mode can be passed through The two preset controls target redirected link corresponding page higher to hot value preloads, in this way, working as target redirected link When being triggered, without to the corresponding page info of server acquisition request target redirected link, need to only be obtained from local cache The corresponding page info of target redirected link is simultaneously shown, and then improves the efficiency loaded to the page.
On the basis of embodiment illustrated in fig. 2, heat can be determined in current page by following feasible implementation Angle value is more than the target redirected link (S201 in embodiment illustrated in fig. 2) of preset heat value, specifically, shown in Figure 3 Embodiment.
Fig. 3 is the flow diagram of definite target redirected link method provided by the invention, refers to Fig. 3, this method can With including:
S301, by the first preset control parse the DOM element in current page, the DOM in current page Link DOM element is determined in element, link DOM element includes redirected link;
S302, the hot value for determining the redirected link that each link DOM element includes;
S303, will link DOM element in, hot value be more than preset heat value redirected link be determined as target skip chain Connect.
In the embodiment shown in fig. 3, current page is loaded by the first preset control in page loading device and completed Afterwards, current page is shown in terminal device, at this time, the state of the first preset control is visible state.Work as needs When target redirected link is determined in current page, the DOM element in current page is parsed by the first preset control, And link DOM element is determined in the DOM element in current page, each DOM element that links includes a redirected link.It is optional , the DOM element in current page can be parsed by the first preset control, obtain each DOM element in current page Label information, and label information is determined as the DOM element for including redirected link for the DOM element of redirected link label.Can Choosing, label information can indicate the type of DOM element, if for example, the label information of a DOM element is " a ", can be true The fixed DOM element is link DOM element.
After page loading device determines to obtain link DOM element, the skip chain that each link DOM element includes is determined The hot value connect, and will link DOM element in, hot value be more than preset heat value redirected link be determined as target skip chain Connect.
In above process, page loading device parses current page using DOM element as unit, first in current page Link DOM element is determined in face, and target redirected link is determined in DOM element is linked, successively determines target redirected link, into And improve the efficiency for determining target redirected link.
On the basis of embodiment illustrated in fig. 3, optionally, each chain can be determined by the feasible implementation of the following two kinds The hot value (S302 in embodiment illustrated in fig. 3) for the redirected link that DOM element includes is connect, specifically, referring to Fig. 4-Fig. 5 Shown embodiment.
Fig. 4 is the flow diagram one of the method for the hot value of definite redirected link provided by the invention, refers to Fig. 4, This method can include:
S401, the attribute information by each link DOM element of the first preset control acquisition;
S402, obtain each heat for linking the redirected link that DOM element includes in the attribute information of each link DOM element Angle value.
In the embodiment shown in fig. 4, including the link DOM element in the attribute information for linking DOM element includes Redirected link hot value, when page loading device need obtain redirected link hot value when, only need to be in redirected link pair Obtained in attribute information answer, link DOM element.In this way, the efficiency for the hot value for obtaining redirected link can be improved.
In above process, optionally, it can be default set to link the hot value in the attribute information of DOM element; Certainly, in actual application, the hot value in attribute information can also be updated according to actual conditions.
Fig. 5 is the flow diagram two of the method for the hot value of definite redirected link provided by the invention, refers to Fig. 5, This method can include:
S501, each redirected link of acquisition are clicked number and each redirected link in current page in preset period of time Position;
S502, according to each redirected link be clicked number and each redirected link in current page in preset period of time Position, determine the hot value of each redirected link.
In the embodiment shown in fig. 5, when page loading device needs to obtain the hot value of redirected link, first obtain and jump Turn to be linked in preset period of time to be clicked the position of number and redirected link in current page.Optionally, can pass through Special statistical module to multiple users preset period of time in current page, the number of clicks of each redirected link unites Meter, so that page loading device can obtain each redirected link in statistical module and be clicked number in preset period of time.Can Choosing, be clicked number of the redirected link in preset period of time can be that redirected link is clicked the total of number in preset period of time With, or the redirected link number that average every day is clicked in preset period of time.Optionally, which can be Period before current time, for example, preset period of time can be one month before one week before current time, current time Deng.
Be clicked number and each redirected link of each redirected link in preset period of time are obtained in page loading device working as After position in the preceding page, number and each redirected link are clicked current in preset period of time according to each redirected link Position in the page, determines the hot value of each redirected link.
Optionally, the position that page loading device can be according to each redirected link in current page, determines each skip chain The sequencing being connected in current page, according to sequencing of each redirected link in current page, determines each redirected link Weighted value, number is clicked in preset period of time according to the weighted value of each redirected link and each redirected link, determines each jump Turn the hot value of link.Optionally, can be by the weight that is clicked number and redirected link of the redirected link in preset period of time The product of value is determined as the hot value of redirected link.
Optionally, the sequencing that page loading device can occur according to redirected link in current page, to current Redirected link in the page is ranked up, and the weighted value of the more forward redirected link of sorting position is higher.
In the following, by specific example, the method shown in Fig. 5 embodiments is described in detail.
Exemplary, it is assumed that current page includes 5 redirected links, is denoted as redirected link 1- redirected links 5 respectively.Again Assuming that preset period of time is one month before current time.
When page loading device needs to obtain the hot value of 5 redirected links, page loading device first passes through statistics Module obtains redirected link and is clicked number within the previous moon at current time, it is assumed that the redirected link 1- acquired is jumped Turn link 5 within the previous moon at current time to be clicked number as shown in table 1.Page loading device is also to redirected link 1- The sequencing that redirected link 5 occurs in current page is ranked up, to being occurred according to each redirected link in current page Sequencing determine the corresponding weighted value of each redirected link, it is assumed that successively appearance of each redirected link in current page, then It can determine that the corresponding weighted value of each redirected link is as shown in table 1:
Table 1
The mark of redirected link It is clicked number Weighted value
Redirected link 1 3000 1
Redirected link 2 5000 0.8
Redirected link 3 6000 0.6
Redirected link 4 7000 0.5
Redirected link 5 4000 0.4
Each redirected link of the page loading device according to table 1 is corresponding to be clicked number and weighted value, determines each jump The hot value for turning link is as shown in table 2:
Table 2
The mark of redirected link The hot value of redirected link
Redirected link 1 3000*1=3000
Redirected link 2 5000*0.8=4000
Redirected link 3 6000*0.6=3200
Redirected link 4 7000*0.5=3500
Redirected link 5 4000*0.4=1600
In above process, page loading device is clicked number and each according to each redirected link in preset period of time The hot value of each redirected link of location determination of the redirected link in current page, can improve the accuracy of definite hot value.
Fig. 6 is the structure diagram one of page loading device provided by the invention, refers to Fig. 6, which can include:
Determining module 601, for being solved by current state for the first preset control of visible state to current page Analysis, determines that hot value is more than the target redirected link of preset heat value in the current page;
Load-on module 602, it is described for being loaded and being cached for the second preset control of invisible mode by current state The corresponding page info of target redirected link, so that the corresponding jump page of the page info is hidden state;
Display module 603, for when the target redirected link is triggered, according to the page info of caching, showing Show the jump page.
Page loading device provided in an embodiment of the present invention can perform the technical solution shown in above method embodiment, its Realization principle and beneficial effect are similar, are no longer repeated herein.
In a kind of possible embodiment, the display module is specifically used for:
The state of first preset control is switched to invisible mode, so that the state of the current page is switched to Hidden state;
The state of second preset control is switched to visible state so that the state of the jump page be switched to it is aobvious Show state.
Fig. 7 is the structure diagram two of page loading device provided by the invention, on the basis of embodiment illustrated in fig. 6, Fig. 7 is referred to, the determining module 601 includes the first determination unit 6011, the second determination unit 6012 and the 3rd determination unit 6013, wherein,
First determination unit 6011 is used for, by first preset control to the DOM members in the current page Element is parsed, and link DOM element is determined in the DOM element in the current page, and the link DOM element includes jumping Turn link;
Second determination unit 6012 is used for, and determines the temperature for the redirected link that each link DOM element includes Value;
3rd determination unit 6013 is used for, by it is described link DOM element in, hot value be more than the preset heat value Redirected link be determined as the target redirected link.
In alternatively possible embodiment, first determination unit 6011 is specifically used for:
The DOM element in the current page is parsed by first preset control, obtains the current page The label information of each DOM element in face;
Label information is determined as the DOM element for including redirected link for the DOM element of redirected link label.
In alternatively possible embodiment, second determination unit 6012 is specifically used for:
The attribute information of each link DOM element is obtained by first preset control;
The heat for the redirected link that each DOM element includes is obtained in the attribute information of each link DOM element Angle value.
In alternatively possible embodiment, second determination unit 6012 is specifically used for:
Obtain each redirected link and be clicked number and each redirected link described current in preset period of time Position in the page;
Number and each redirected link are clicked described current in preset period of time according to each redirected link Position in the page, determines the hot value of each redirected link.
In alternatively possible embodiment, second determination unit 6012 is specifically used for:
According to position of each redirected link in the current page, determine each redirected link described current Sequencing in the page;
According to sequencing of each redirected link in the current page, the weight of each redirected link is determined Value;
Number is clicked in preset period of time according to the weighted value of each redirected link and each redirected link, Determine the hot value of each redirected link.
In alternatively possible embodiment, first preset control is the first webview controls;
Second preset control is the first webview controls.
Page loading device provided in an embodiment of the present invention can perform the technical solution shown in above method embodiment, its Realization principle and beneficial effect are similar, are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution described in foregoing embodiments, either to which part or all technical characteristic into Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

  1. A kind of 1. page loading method, it is characterised in that including:
    Current page is parsed for the first preset control of visible state by current state, in the current page really Determine the target redirected link that hot value is more than preset heat value;
    Loaded by current state for the second preset control of invisible mode and cache the corresponding page of the target redirected link Face information, so that the corresponding jump page of the page info is hidden state;
    When the target redirected link is triggered, according to the page info of caching, the jump page is shown.
  2. 2. according to the method described in claim 1, it is characterized in that, according to the page info of caching, redirected described in display The page, including:
    The state of first preset control is switched to invisible mode so that the state of the current page be switched to it is hiding State;
    The state of second preset control is switched to visible state, so that the state of the jump page is switched to display shape State.
  3. 3. method according to claim 1 or 2, it is characterised in that preset by current state for the first of visible state Control parses current page, determines that hot value is more than the target skip chain of preset heat value in the current page Connect, including:
    The DOM Document Object Model DOM element in the current page is parsed by first preset control, described Link DOM element is determined in DOM element in current page, the link DOM element includes redirected link;
    Determine the hot value for the redirected link that each link DOM element includes;
    By in the link DOM element, hot value is more than the redirected link of the preset heat value and is determined as the target and redirects Link.
  4. 4. according to the method described in claim 3, it is characterized in that, by first preset control in the current page DOM element parsed, in the DOM element in the current page determine link DOM element, including:
    The DOM element in the current page is parsed by first preset control, is obtained in the current page The label information of each DOM element;
    Label information is determined as the DOM element for including redirected link for the DOM element of redirected link label.
  5. 5. according to the method described in claim 3, it is characterized in that, determine the skip chain that each link DOM element includes The hot value connect, including:
    The attribute information of each link DOM element is obtained by first preset control;
    The hot value for the redirected link that each DOM element includes is obtained in the attribute information of each link DOM element.
  6. 6. according to the method described in claim 3, it is characterized in that, determine the skip chain that each link DOM element includes The hot value connect, including:
    Obtain each redirected link and be clicked number and each redirected link in the current page in preset period of time In position;
    Number and each redirected link are clicked in the current page in preset period of time according to each redirected link In position, determine the hot value of each redirected link.
  7. 7. according to the method described in claim 6, it is characterized in that, according to each redirected link in preset period of time by point The position of number and each redirected link in the current page is hit, determines the hot value of each redirected link, is wrapped Include:
    According to position of each redirected link in the current page, determine each redirected link in the current page In sequencing;
    According to sequencing of each redirected link in the current page, the weighted value of each redirected link is determined;
    Number is clicked in preset period of time according to the weighted value of each redirected link and each redirected link, is determined The hot value of each redirected link.
  8. 8. according to claim 1-3 any one of them methods, it is characterised in that
    First preset control is the first webview controls;
    Second preset control is the first webview controls.
  9. A kind of 9. page loading device, it is characterised in that including:
    Determining module, for being parsed by current state for the first preset control of visible state to current page, in institute State and determine that hot value is more than the target redirected link of preset heat value in current page;
    Load-on module, redirects for loading for the second preset control of invisible mode by current state and caching the target Corresponding page info is linked, so that the corresponding jump page of the page info is hidden state;
    Display module, for when the target redirected link is triggered, according to the page info of caching, showing the jump Blade-rotating face.
  10. 10. device according to claim 9, it is characterised in that the display module is specifically used for:
    The state of first preset control is switched to invisible mode so that the state of the current page be switched to it is hiding State;
    The state of second preset control is switched to visible state, so that the state of the jump page is switched to display shape State.
CN201610890412.6A 2016-10-12 2016-10-12 A kind of method and apparatus for realizing that webpage quickly loads based on big data Pending CN107943803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610890412.6A CN107943803A (en) 2016-10-12 2016-10-12 A kind of method and apparatus for realizing that webpage quickly loads based on big data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610890412.6A CN107943803A (en) 2016-10-12 2016-10-12 A kind of method and apparatus for realizing that webpage quickly loads based on big data

Publications (1)

Publication Number Publication Date
CN107943803A true CN107943803A (en) 2018-04-20

Family

ID=61928279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610890412.6A Pending CN107943803A (en) 2016-10-12 2016-10-12 A kind of method and apparatus for realizing that webpage quickly loads based on big data

Country Status (1)

Country Link
CN (1) CN107943803A (en)

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
CN109800366A (en) * 2018-12-13 2019-05-24 北京字节跳动网络技术有限公司 Promote the method, apparatus and electronic equipment of webpage opening speed
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN113590995A (en) * 2019-01-14 2021-11-02 广州虎牙信息科技有限公司 Page display method, equipment and storage medium
CN114095560A (en) * 2022-01-20 2022-02-25 浙江口碑网络技术有限公司 Service object switching method and equipment
CN114513555A (en) * 2021-12-29 2022-05-17 深圳触海科技有限公司 Jump method and system based on website dynamic link
CN114816639A (en) * 2022-04-24 2022-07-29 招银云创信息技术有限公司 Page display method, device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101460945A (en) * 2004-09-27 2009-06-17 Bt网络解决方案有限责任公司 Method and apparatus for enhanced browsing
CN102737037A (en) * 2011-04-07 2012-10-17 北京搜狗科技发展有限公司 Webpage pre-reading method, device and browser
CN104007990A (en) * 2014-05-30 2014-08-27 北京金山网络科技有限公司 Webpage loading method and browser
CN104268221A (en) * 2014-09-25 2015-01-07 车智互联(北京)科技有限公司 Page turning method and page turning system based on Ios system WebView

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101460945A (en) * 2004-09-27 2009-06-17 Bt网络解决方案有限责任公司 Method and apparatus for enhanced browsing
CN102737037A (en) * 2011-04-07 2012-10-17 北京搜狗科技发展有限公司 Webpage pre-reading method, device and browser
CN104007990A (en) * 2014-05-30 2014-08-27 北京金山网络科技有限公司 Webpage loading method and browser
CN104268221A (en) * 2014-09-25 2015-01-07 车智互联(北京)科技有限公司 Page turning method and page turning system based on Ios system WebView

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965969B (en) * 2018-06-28 2020-08-14 烽火通信科技股份有限公司 Page skipping method and system for IPTV set top box
CN108965969A (en) * 2018-06-28 2018-12-07 烽火通信科技股份有限公司 Method for page jump and system for IPTV set top box
CN109800366A (en) * 2018-12-13 2019-05-24 北京字节跳动网络技术有限公司 Promote the method, apparatus and electronic equipment of webpage opening speed
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
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN110263275B (en) * 2019-06-14 2021-10-29 深圳桔子数字技术有限公司 Method and device for accessing webpage, mobile terminal and storage medium
CN111475750B (en) * 2020-03-04 2021-05-28 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN114513555A (en) * 2021-12-29 2022-05-17 深圳触海科技有限公司 Jump method and system based on website dynamic link
CN114095560A (en) * 2022-01-20 2022-02-25 浙江口碑网络技术有限公司 Service object switching method and equipment
CN114816639A (en) * 2022-04-24 2022-07-29 招银云创信息技术有限公司 Page display method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN107943803A (en) A kind of method and apparatus for realizing that webpage quickly loads based on big data
CN105205157A (en) Page loading method, device and system
CN104462583A (en) Browser device for advertisement blocking processing and mobile terminal
CN104035984B (en) Method for blocking popup windows in browser and device for blocking popup windows
US20110072131A1 (en) System and method for monitoring advertisement assignment
CN108255890B (en) Page processing method and device
CN102831218B (en) Method and device for determining data in thermodynamic chart
CN106021549A (en) Page control method and device of web application program and terminal device
CN103927671A (en) Advertisement putting method and system, advertisement plug-in device and advertisement putting management system
CN104408204A (en) Method and device for obtaining webpage page link address
CN104238897A (en) Menu item displaying method and device
US9357366B2 (en) Auditing of mobile applications
CN105160027B (en) Advertisement data processing method and device
CN106339163B (en) A kind of method that App built-in browser is interacted with embedded webpage rollback
CN101261716A (en) Method and device for identifying mapping relation of advertisement and its distribution site
CN111259284A (en) Page lazy loading method and device, storage medium and processor
CN109918597A (en) Webpage preloads method and apparatus
US20160267499A1 (en) Website personalization based on real-time visitor behavior
CN105553968A (en) Method and device for realizing login by multiple accounts
CN107025237A (en) A kind of page clicks on the generation method and system of distribution map
CN103414693A (en) Dotting method and dotting device
CN105260424A (en) Processing method and apparatus for webpage browsing historical records and most common accesses of user
US9208135B1 (en) Tools to increase site performance
CN105631704A (en) Prompt window advertisement position release control method and device
CN104484104A (en) Page display method and page display 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420

RJ01 Rejection of invention patent application after publication