CN107066632A - The method and device that a kind of info web is preloaded - Google Patents
The method and device that a kind of info web is preloaded Download PDFInfo
- Publication number
- CN107066632A CN107066632A CN201710413818.XA CN201710413818A CN107066632A CN 107066632 A CN107066632 A CN 107066632A CN 201710413818 A CN201710413818 A CN 201710413818A CN 107066632 A CN107066632 A CN 107066632A
- Authority
- CN
- China
- Prior art keywords
- data entries
- details
- web page
- information entry
- display area
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure discloses the method and device that a kind of info web is preloaded, and this method includes:The screen sliding event of web page display area internal trigger is monitored, the translational speed of data entries in web page display area is determined according to the screen sliding event;According to the translational speed of described information entry and the size of the web page display area, the preloading scope that data entries details preloading is carried out in the web page display area is calculated;By the data entries execution information entry details preload operation included in the range of the preloading.The technical scheme that the disclosure is provided is by estimating the scope that user may click on, the data entries details in the range of this are preloaded in advance, so as to when the data entries in the range of this is clicked in family, data quickly can be obtained from caching to be shown, without carrying out data download temporarily, accelerate web page contents loading velocity, it is to avoid webpage interim card.
Description
Technical field
This disclosure relates to technical field of Internet information, the method and device that more particularly to a kind of info web is preloaded.
Background technology
With developing rapidly for Internet technology, application of the browser in daily life, working and learning is more next
It is more frequent.User is when browsing or selecting corresponding data entries based on display information on the page, it is necessary to by corresponding informance bar
Purpose content is shown again after being loaded, and the page info amount, it is necessary to load is on the increase with information data amount
It is increasing.
The data entries that prior art is selected due to unpredictable user, so data can not be loaded in advance.Receiving
When user clicks on a certain data entries position, just load the details of the data entries and shown.Due to information
The detail information data amount of entry is larger, it usually needs the regular hour loads details displayed page, particularly in transmission
Under the conditions of the weak net that speed is relatively slow, the response time is longer or in the poor smart machine of configuration lower-performance, load time meeting
It is longer, cause it is longer as the interval time needed for data entries displayed page switches to details displayed page, and then influence
Consumer's Experience effect.
The content of the invention
In order to solve the data entries selected present in correlation technique due to unpredictable user, thus it can not add in advance
Data are carried, cause the problem of details of data entries load time-consuming longer, present disclose provides a kind of info web pre-add
The method of load.
On the one hand, present disclose provides a kind of method that info web is preloaded, methods described includes:
The screen sliding event of web page display area internal trigger is monitored, is determined to believe in web page display area according to the screen sliding event
Cease the translational speed of entry;
According to the translational speed of described information entry and the size of the web page display area, the web displaying is calculated
The preloading scope of data entries details preloading is carried out in region;
By the data entries execution information entry details preload operation included in the range of the preloading.
On the other hand, the disclosure additionally provides the device that a kind of info web is preloaded, and the device includes:
Speed determination module, the screen sliding event for monitoring web page display area internal trigger is true according to the screen sliding event
Determine the translational speed of data entries in web page display area;
Range determination module, for the translational speed according to described information entry and the chi of the web page display area
It is very little, calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components, for the data entries execution information entry details pre-add by being included in the range of the preloading
Carry operation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method and device that the info web that the disclosure is provided is preloaded, by determining data entries in web page display area
Translational speed, according to the translational speed of data entries and the size of web page display area, estimate in web page display area
The preloading scope of data entries details preloading is carried out, letter is performed for the data entries in the range of preloading so as in advance
Cease entry details preload operation.It is detailed to the data entries in the range of this in advance by estimating the scope that user may click on
Feelings are preloaded, so as to when the data entries in the range of this is clicked in family, quickly can obtain data from caching and carry out
It has been shown that, carry out data download without interim, accelerate web page contents loading velocity, it is to avoid webpage interim card.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention
Example, and in specification together for explaining principle of the invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of block diagram of device according to an exemplary embodiment;
Fig. 3 is the flow chart for the method that a kind of info web according to an exemplary embodiment is preloaded;
Fig. 4 is a kind of schematic diagram of data entries display mode according to an exemplary embodiment;
Flow charts Fig. 3 correspondence embodiment on the basis of of the Fig. 5 according to another exemplary embodiment;
Fig. 6 is the detail flowchart for the method that a kind of info web according to another exemplary embodiment is preloaded;
Fig. 7 is that the progress data entries on the basis of Fig. 3 correspondence embodiments according to another exemplary embodiment are detailed
The detail flowchart that feelings are shown;
Fig. 8 is the block diagram for the device that a kind of info web according to an exemplary embodiment is preloaded;
Fig. 9 is that a kind of info web on the basis of Fig. 8 correspondence embodiments according to another exemplary embodiment is pre-
The block diagram of the device of loading;
Figure 10 is that a kind of info web on the basis of Fig. 8 correspondence embodiments according to further example embodiment is pre-
The block diagram of the device of loading.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key 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 be described in detail in claims, the present invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure.The implementation environment includes:The He of mobile terminal 1 10
Server 120.
Interrelational form between mobile terminal 1 10 and server 120, includes the network associate mode and/or agreement of hardware,
And the data correlation mode come and gone therebetween.The software applications such as browser can be installed in mobile terminal 1 10, it is mobile
Terminal 110 can call these software applications to perform the method that disclosure info web is preloaded.Mobile terminal 1 10 passes through
Call software application that the preloading of info web from the downloading data of server 120, can be carried out.
Fig. 2 is a kind of block diagram of device 200 according to an exemplary embodiment.For example, device 200 can be Fig. 1
Mobile terminal in shown implementation environment.Mobile terminal such as can be smart mobile phone, tablet personal computer.
Reference picture 2, device 200 can include following one or more assemblies:Processing assembly 202, memory 204, power supply
Component 206, multimedia groupware 208, audio-frequency assembly 210, sensor cluster 214 and communication component 216.
The integrated operation of the usual control device 200 of processing assembly 202, such as with display, call, data communication, phase
Operation that machine is operated and record operation is associated etc..Processing assembly 202 can include one or more processors 218 to perform
Instruction, to complete all or part of step of following methods.In addition, processing assembly 202 can include one or more modules,
It is easy to the interaction between processing assembly 202 and other assemblies.For example, processing assembly 202 can include multi-media module, with convenient
Interaction between multimedia groupware 208 and processing assembly 202.
Memory 204 is configured as storing various types of data supporting the operation in device 200.These data are shown
Example includes the instruction of any application program or method for operating on the device 200.Memory 204 can be by any kind of
Volatibility or non-volatile memory device or combinations thereof realization, such as static RAM (Static Random
Access Memory, abbreviation SRAM), Electrically Erasable Read Only Memory (Electrically Erasable
Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red-
Only Memory, abbreviation PROM), read-only storage (Read-Only Memory, abbreviation ROM), magnetic memory, flash
Device, disk or CD.Also be stored with one or more modules in memory 204, and one or more modules are configured to by this
One or more processors 218 are performed, to complete the whole in any shown method of following Fig. 3, Fig. 5, Fig. 6 and Fig. 7 or portion
Step by step.
Power supply module 206 provides electric power for the various assemblies of device 200.Power supply module 206 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 200.
Multimedia groupware 208 is included in the screen of one output interface of offer between described device 200 and user.One
In a little embodiments, screen can include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel.
If screen includes touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel
Including one or more touch sensors with the gesture on sensing touch, slip and touch panel.The touch sensor can be with
The not only border of sensing touch or sliding action, but also the detection duration related to the touch or slide and pressure
Power.Screen can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio-frequency assembly 210 is configured as output and/or input audio signal.For example, audio-frequency assembly 210 includes a Mike
Wind (Microphone, abbreviation MIC), when device 200 is in operator scheme, such as call model, logging mode and speech recognition mould
During formula, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory
204 or sent via communication component 216.In certain embodiments, audio-frequency assembly 210 also includes a loudspeaker, for exporting
Audio signal.
Sensor cluster 214 includes one or more sensors, and the state for providing various aspects for device 200 is commented
Estimate.For example, sensor cluster 214 can detect opening/closed mode of device 200, the relative positioning of component, sensor group
Part 214 can be with the position change of 200 1 components of detection means 200 or device and the temperature change of device 200.At some
In embodiment, the sensor cluster 214 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 216 is configured to facilitate the communication of wired or wireless way between device 200 and other equipment.Device
200 can access the wireless network based on communication standard, such as WiFi (WIreless-Fidelity, Wireless Fidelity).Show at one
In example property embodiment, communication component 216 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 216 also includes near-field communication (Near Field
Communication, abbreviation NFC) module, to promote junction service.For example, radio frequency identification (Radio can be based in NFC module
Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data
Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills
Art is realized.
In the exemplary embodiment, device 200 can be by one or more application specific integrated circuit (Application
Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable
Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for performing
Following methods.
Fig. 3 is the flow chart for the method that a kind of info web according to an exemplary embodiment is preloaded.The webpage
The scope of application and executive agent for the method that information is preloaded, for example, this method is used for the mobile terminal of implementation environment shown in Fig. 1
110.As shown in figure 3, this method can be performed by mobile terminal 1 10, it may comprise steps of.
In step S310, the screen sliding event of web page display area internal trigger is monitored, net is determined according to the screen sliding event
The translational speed of data entries in page viewing area;
Specifically, mobile terminal 1 10 monitors the screen sliding event of web page display area internal trigger, screen sliding event refers to that user is led to
Cross finger or stylus and the event that webpage is triggered is slided in the web page display area of screen.By monitoring the screen sliding event,
It can obtain whether user is sliding screen, the direction for sliding screen etc., can be by calculating when listening to the screen sliding event
The displacement that some control occurs after user slides screen 1 second in web page display area, obtains the translational speed of control, that is,
The translational speed of data entries.
As an example it is assumed that the y-coordinate of a control is 0, user is slided after 1s, and control y-coordinate goes to 500, then control
The translational speed of part is exactly 500 pixels/second, obtains the translational speed of control by calculating the displacement of control, that is, believe
Cease the translational speed of entry.
Wherein, data entries refer in one direction can be continuously slipping information unit, also referred to as information flow.Fig. 4 is
A kind of display format of data entries in web page display area.As shown in figure 4, several can be seen in web page display area
Data entries.When user's finger slides screen, each data entries can be moved up or down.Generally, an information bar
Mesh only shows a title, main summary or the crucial words of a piece of news, and the detailed content on the data entries is then needed
Click on and shown after the data entries.
In step S330, according to the translational speed of described information entry and the size of the web page display area, meter
Calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Wherein, preload and refer to before display information entry details (i.e. the detailed contents of data entries), in advance to letter
Breath entry details are cached, so that when user selects some data entries, the information can be quickly got from caching
The detailed content of entry is shown, improves content loading velocity, it is to avoid page interim card.
It is to be understood that when user's finger does not slide screen, i.e., the translational speed of data entries is 0, represents this
When user browsing data entries in web page display area, all data entries in web page display area can be preloaded
Detailed content.Now, whole web page display area is exactly to preload scope.And sliding screen when user's finger makes data entries
Translational speed it is very fast when (for example translational speed be more than threshold value a), it is believed that user now targetedly searches corresponding information
Entry, sight is hardly stopped, and in other words the scope at this moment preloaded, now needs close to 0 without data entries details
Carry out preload operation.
And when user's finger slip screen is slow, i.e., when the translational speed of data entries is more than 0 less than threshold value a, recognize
Data entries are checked without target for user, because the visual field of user is general in the centre of web page display area, thus pre-add
It is also one piece region of the web page display area center to edge-diffusion to carry scope, that is, preloads the central point of scope preferably and webpage
The central point of viewing area is overlapped, and the size of translational speed and web page display area thus according to data entries can limit pre-
The scope of loading area.
Optionally, above-mentioned steps S330 is according to the translational speed of data entries and the size of the web page display area,
The preloading scope that data entries details preloading is carried out in the web page display area is calculated, below equation can be specifically used
Calculated:
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,To preload the ratio that scope accounts for whole web page display area.
It is to be understood that web page display area is exactly the visible information flow scope of user, as shown in Figure 4 including information bar
A mesh 1-3 region, wherein, the size of web page display area can highly be obtained by calculating the control of web page display area
.Web page display area is normally close to whole screen, and it is exactly the translational speed S according to current information entry to calculate and preload scope
The larger region T of user's clicking rate is calculated, so that the content to the region is preloaded.Because user typically uses thumb
Operation, the central area clicking rate of web page display area is higher, thus preloads central area of the scope by web page display area
To edge-diffusion.
It can be seen that from formula (1)Value in [0-1] interval range, T values are in [0-K] interval range
Interior, user slides that faster i.e. data entries translational speed S is bigger, and T values more level off to 0, i.e., preloading scope is smaller levels off to 0.
When user slide it is slower i.e. S it is smaller, T values closer to K, preloading scope be exactly web page display area scope.Wherein, pre-add
Scope central point is carried to overlap with web page display area central point.
In step S350, preloaded by the data entries execution information entry details included in the range of the preloading
Operation.
Just it is the data entries cache information entry details in the range of preloading after preloading scope has been obtained.Specifically
, preload operation can be performed to intersecting data entries by calculating with preloading the data entries control that scope intersects.
Wherein it is possible to intersecting data entries data are sent into content download manager, by content download manager according to laggard elder generation
Go out principle, data entries details are preloaded.
Wherein, the formula of preloading is as follows:
Wherein, n represents the data entries number in the range of preloading, and k represents k-th of data entries, f4(Rk) represent to believe
Cease entry data and add content download manager, content download manager can be detailed to data entries according to the rule that last in, first out
Feelings are downloaded, and without downloading if the details data of the data entries, otherwise download the details of the data entries
Data are simultaneously cached, CkIndicate whether successfully to preload.
Above-mentioned formula (2) represents that traversal needs the data entries data preloaded, then will be held in corresponding data addition
Carry in manager, the download for carrying out data entries details by content download manager completes the slow of data entries details with parsing
Deposit.So as to which when user clicks on corresponding data entries, the detailed content of the data entries can be quickly got from caching,
Then quickly shown, improve information content loading velocity.
With application scenarios shown in Fig. 1 as an example it is assumed that mobile terminal 1 10 is smart mobile phone, the browser of smart mobile phone
When showing webpage, it usually needs just start to load the detailed content of the title in specified title in user's webpage clicking, when detailed
Carefully the data volume of content is much, network environment is bad or device hardware is not advanced enough, is easily caused when loading detailed content
Page interim card and loading are slow.
The method that the info web that disclosure above-mentioned example embodiment is provided is preloaded, by determining web page display area
The translational speed of interior data entries, according to the translational speed of data entries and the size of web page display area, estimates webpage
The preloading scope of data entries details preloading is carried out in viewing area, is the information in the range of preloading so as in advance
Entry execution information entry details preload operation.By estimating the scope that user may click on, in advance in the range of this
Data entries details are preloaded, so as to when the data entries in the range of this is clicked in family, quickly can be obtained from caching
Access without interim progress data download, accelerates web page contents loading velocity according to being shown, it is to avoid webpage interim card.
Optionally, letter is performed by the data entries included in the range of preloading in above-mentioned example embodiment step S350
Cease before entry details preload operation, the info web pre-add support method that disclosure exemplary embodiment is provided also includes following
Step:
Obtain current residual electricity;
Judge whether the dump energy is more than or equal to preset value, if it is, being included in the range of the preloading
Data entries execution information entry details preload operation.
Assuming that mobile terminal 1 10 is illustrates exemplified by smart mobile phone, and when smart mobile phone is in low battery state, first
Demand should be the stand-by time for extending smart mobile phone.Thus, smart mobile phone current residual electricity is obtained, when dump energy is less than
During preset value (such as 20%), to save electricity extension stand-by time, no longer it can be performed using the method described in above-described embodiment
Preload operation.And when dump energy is more than or equal to preset value (such as 20%), can be using the method described in above-described embodiment
Perform preload operation.
Further, as shown in figure 5, in above-mentioned example embodiment step S350 by the letter that is included in the range of preloading
Before breath entry execution information entry details preload operation, the info web preloading side that disclosure exemplary embodiment is provided
Method is further comprising the steps of:
In step S501:Acquisition is presently in network environment information and device hardware information;
Specifically, the network environment information and mobile terminal residing for mobile terminal 1 10 can be obtained by operating system
110 device hardware information.Wherein, network environment information refers to 4G networks, Wifi networks or other networks, i.e., current connected
Network type.Device hardware information refers to CPU (central processing unit) check figures and running memory size (the i.e. byte of running memory
Number).
It should be noted that because the CPU of different model and the calculating performance of running memory are different, in high performance equipment
In, the speed of preloading can be improved by high concurrent number, the equipment of low performance can only be reduced simultaneously due to computing resource anxiety
Number is sent out, from without influenceing other operations of equipment.Wherein, number of concurrent refers to the data entries number while being preloaded.
As shown in fig. 6, after user's slip information stream, judging dump energy, if electricity does not have very few, equipment is obtained
Hardware information and network environment information, the number of concurrent of content download manager is limited according to these information.Afterwards using above-mentioned
The step S310-S350 of exemplary embodiment is according to information flow indication range (i.e. web page display area), information flow sliding speed
(i.e. data entries translational speed), calculates information flow and preloads scope, obtains the data entries in the range of information flow preloading, so
Afterwards by content download manager according to the number of concurrent limited, set up download queue for the data entries in the range of preloading and believed
Cease entry details caching.
In step S502:Network environment information and device hardware information are presently according to described, calculating is concurrently held
The data entries number that row information entry details are preloaded;
Need what is explained, when the network environment residing for mobile terminal 1 10 is Wifi networks, represent residing network environment compared with
It is good, number of concurrent can be improved, that is, improves the data entries number that concurrent execution information entry details are preloaded.According to equipment
CPU core number and running memory can also select suitable number of concurrent.It is possible thereby to the network environment according to residing for mobile terminal 1 10
And hardware condition, suitable number of concurrent can be calculated to improve the speed of preloading.
Specifically, the number of concurrent preloaded can be calculated using below equation (3):
M=Min (f1(D)*f2(N), 6) (3)
Wherein, f1(D) CPU core number+memory size (unit GB), f is represented2(N) represent to return to 2, Wifi networks under 4G networks
Lower to return to 3, other networks return to 1, Min (f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) it is smaller " and in both " 6 "
Person, will maximum concurrent quantity to be limited to 6, M be the data entries that required concurrent execution information entry details are preloaded
Number, i.e. number of concurrent.
It should be noted that f1(D) computing unit is represented, because each CPU core number has single computing capability, operation
The calculating space of internal memory greatly is also big, it is possible to the computing unit of hardware is represented by CPU core number and memory size phase Calais.By
It is different in different network environments bandwidth, while the ability downloaded is different, it is assumed that Wifi environment can complete 3 datas in lower 1 second
Loading, and 2G environment can be only done the loading of 1 data, so f2(N) directly value Wifi can be represented respectively for 3,2,1
Network, 4G networks and other networks.Hardware condition is multiplied with network condition, is because each computing unit can be independent
Using the network bandwidth, the number of concurrent of preloading is thus calculated.Because the displayable data entries quantity of a screen is about 6
It is individual, it is possible to which that limiting concurrent number is 6 to the maximum, i.e., the visible data entries of user need to only be preloaded.
In step S503:The data entries number preloaded according to the concurrent execution information entry details, to be matched somebody with somebody
The content download manager put sets the data entries number that concurrent execution information entry details are preloaded.
Specifically, after step S502 calculating obtains suitable number of concurrent, number of concurrent being set and arrives content download management
In device.Thus content download manager can according to setting number of concurrent, be the data entries in the range of preloading from server
120 download information entry details are simultaneously cached.
For example, the data entries in the range of preloading are 4, and the concurrent execution information entry details set are pre-
When the data entries number of loading is 2, it is 2 to represent the maximum data entries quantity preloaded simultaneously, thus can be first
For 2 data entries download information entry details and cache, be further continued for as remaining 2 data entries download information entry details
And cache.
Further, in step S350 by the data entries execution information entry details pre-add that is included in the range of preloading
Carry after operation, the method that the disclosure is provided is further comprising the steps of:
The click event of the web page display area internal trigger is monitored, according to the trigger position of the click event, it is determined that
Data entries corresponding to the trigger position;
Specifically, the click event of the data entries in the monitoring users webpage clicking viewing area of mobile terminal 1 10, according to
The trigger position of the click event, it may be determined that the selected data entries of user, the i.e. corresponding data entries of trigger position.Should
The corresponding data entries of trigger position are exactly that user needs to check the data entries of details, in other words need to load the information bar
Purpose detailed content.
Judge whether to have cached the data entries details of described information entry, if cached, downloaded from the content
Manager obtains the data entries details of described information entry, carries out the display of described information entry details;
If do not cached, judge whether to download the data entries details of described information entry, if downloaded,
After the completion of then waiting for downloads, the display of described information entry details is carried out.
If, can be with zero it should be noted that internal memory download manager has cached the detailed content of the data entries
The detailed content for directly displaying data entries is waited, the time downloaded from server is eliminated.
In one exemplary embodiment, as shown in fig. 7, user is clicked on after selected data entries, mobile terminal 1 10
Judge whether the data entries detailed content it is data cached;If it does, directly displaying the detailed interior of data entries
Hold.If it does not, judging whether to download the detailed content of the data entries, readjustment is downloaded if it is, merging, is waited
After the completion of download, the detailed content for the data entries downloaded is shown, the stand-by period is reduced.If be both not present or not under
Carry, then download and the caching of the detailed content of data entries are carried out by content download manager.
Following is disclosure device embodiment, can be used for performing a kind of net that the above-mentioned mobile terminal 1 10 of the disclosure is performed
The embodiment of the method that page information is preloaded.For the details not disclosed in disclosure device embodiment, the disclosure refer to a kind of
The embodiment of the method that info web is preloaded.
Fig. 8 is the block diagram for the device that a kind of info web according to an exemplary embodiment is preloaded, webpage letter
The device that breath is preloaded can be used in the mobile terminal 1 10 of implementation environment shown in Fig. 1, perform Fig. 3, Fig. 5, Fig. 6 and Fig. 7 any
The all or part of step for the method that shown info web is preloaded.As shown in figure 8, the device includes but is not limited to:Speed
Spend determining module 810, range determination module 830 and preloaded components 850.
Speed determination module 810, the screen sliding event for monitoring web page display area internal trigger, according to the screen sliding event
Determine the translational speed of data entries in web page display area;
Range determination module 830, for the translational speed according to described information entry and the web page display area
Size, calculates the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components 850, for the data entries execution information entry details by being included in the range of the preloading
Preload operation.
The function of modules and the implementation process of effect specifically refer to correspondence step in above-mentioned xx methods in said apparatus
Implementation process, will not be repeated here.
Speed determination module 810 such as can be some physical arrangement sensor cluster 214 in Fig. 2.
Range determination module 830 and preloaded components 850 can also be functional modules, for performing above-mentioned info web
Corresponding step in pre-add support method.It is appreciated that these modules can be realized by hardware, software or the two combination.When
When realizing in hardware, these modules may be embodied as one or more hardware modules, such as one or more special integrated
Circuit.When being realized with software mode, these modules may be embodied as one performed on the one or more processors or many
The program of storage in memory 204 performed by the processor 218 of individual computer program, such as Fig. 2.
Optionally, the device that the info web is preloaded can also include but is not limited to:
Electricity acquisition module, for obtaining current residual electricity;
Electricity judges, for judging whether the dump energy is more than or equal to preset value, if it is, being the preloading model
Enclose interior included data entries execution information entry details preload operation.
Optionally, as shown in figure 9, the device that the info web is preloaded can also include but is not limited to:
Data obtaining module 901, network environment information and device hardware information are presently in for obtaining;
Number of concurrent determining module 902 is used to be presently in network environment information and device hardware information according to, counts
Calculate the data entries number that concurrent execution information entry details are preloaded;
Number of concurrent setup module 903 is used for the data entries preloaded according to the concurrent execution information entry details
Number, is the data entries number that configured content download manager sets concurrent execution information entry details to preload.
Optionally, described information acquisition module 901 includes:
Information acquisition unit, CPU core number, memory size and the current connected network class of equipment where for obtaining
Type.
Optionally, the number of concurrent determining module 902 is according to being presently in network environment information and device hardware information,
The data entries number that concurrent execution information entry details are preloaded is calculated, is calculated using below equation:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented;f2(N) represent to return under 4G networks to return to 3 under 2, Wifi networks,
Other networks return to 1;Min(f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) " and the smaller in both " 6 ", M is represented simultaneously
Send out the data entries number that execution information entry details are preloaded.
Further, as shown in Figure 10, the device that the info web is preloaded can also include but is not limited to:
Click on entry determining module 1001, the click event for monitoring the web page display area internal trigger, according to institute
The trigger position of click event is stated, the data entries corresponding to the trigger position are determined;
Judge cache module 1002, the data entries details for judging whether to have cached described information entry, if
Caching, then obtain the data entries details of described information entry from the content download manager, carries out described information entry detailed
The display of feelings;
Judge module 1003 is downloaded, the information for when not caching, judging whether to download described information entry
Entry details, if downloaded, after the completion of waiting for downloads, carry out the display of described information entry details.
Further, translational speed and the web displaying area of the range determination module 830 according to data entries
The size in domain, calculates the preloading scope that data entries details preloading is carried out in the web page display area specifically using following
Formula is calculated:
T=K*f3(K, S)
f3(K, S)=Max (0,1-, S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,To preload the ratio that scope accounts for whole web page display area.
Optionally, the central point for preloading scope is overlapped with the central point of the web page display area.
Optionally, the disclosure also provides a kind of electronic equipment, the electronic equipment for implementation environment shown in Fig. 1 movement
In terminal 110, all or part of step for the method that any shown info web of Fig. 3, Fig. 5, Fig. 6 and Fig. 7 is preloaded is performed
Suddenly.Described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as performing:
The screen sliding event of web page display area internal trigger is monitored, is determined to believe in web page display area according to the screen sliding event
Cease the translational speed of entry;
According to the translational speed of described information entry and the size of the web page display area, the web displaying is calculated
The preloading scope of data entries details preloading is carried out in region;
By the data entries execution information entry details preload operation included in the range of the preloading.
The concrete mode of the computing device operation of device in the embodiment is preloaded in the relevant info web
Method embodiment in perform detailed description, explanation will be not set forth in detail herein.
In the exemplary embodiment, a kind of storage medium is additionally provided, the storage medium is computer-readable recording medium,
For example can be to include the provisional and non-transitorycomputer readable storage medium of instruction.The storage medium is for example including instruction
Memory 204, above-mentioned instruction can perform to complete the method that above-mentioned info web is preloaded by the processor 218 of device 200.
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 changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (16)
1. a kind of method that info web is preloaded, it is characterised in that including:
The screen sliding event of web page display area internal trigger is monitored, information bar in web page display area is determined according to the screen sliding event
Purpose translational speed;
According to the translational speed of described information entry and the size of the web page display area, the web page display area is calculated
The interior preloading scope for carrying out data entries details preloading;
By the data entries execution information entry details preload operation included in the range of the preloading.
2. according to the method described in claim 1, it is characterised in that the data entries described to be included in the range of preloading
Before execution information entry details preload operation, methods described also includes:
Obtain current residual electricity;
Judge whether the dump energy is more than or equal to preset value, if it is, by the information included in the range of the preloading
Entry execution information entry details preload operation.
3. according to the method described in claim 1, it is characterised in that the data entries described to be included in the range of preloading
Before execution information entry details preload operation, methods described also includes:
Acquisition is presently in network environment information and device hardware information;
Network environment information and device hardware information are presently according to described, concurrent execution information entry details pre-add is calculated
The data entries number of load;
The data entries number preloaded according to the concurrent execution information entry details, is configured content download manager
The data entries number for setting concurrent execution information entry details to preload.
4. method according to claim 3, it is characterised in that the acquisition is presently in network environment information and equipment
Hardware information includes:
CPU core number, memory size and the current connected network type of equipment where obtaining.
5. method according to claim 3, it is characterised in that the basis is presently in network environment information and equipment
Hardware information, is calculated the data entries number that concurrent execution information entry details are preloaded, is calculated using below equation:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented;f2(N) represent to return under 4G networks to return to 3 under 2, Wifi networks, other
Network returns to 1;Min(f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) " and the smaller in both " 6 ", M represents concurrently to hold
The data entries number that row information entry details are preloaded.
6. method according to claim 3, it is characterised in that the data entries described to be included in the range of preloading
After execution information entry details preload operation, methods described also includes:
The click event of the web page display area internal trigger is monitored, according to the trigger position of the click event, it is determined that described
Data entries corresponding to trigger position;
Judge whether to have cached the data entries details of described information entry, if cached, from the content download management
Device obtains the data entries details of described information entry, carries out the display of described information entry details;
If do not cached, judge whether to download the data entries details of described information entry, if downloaded, etc.
After the completion of to be downloaded, the display of described information entry details is carried out.
7. according to the method described in claim 1, it is characterised in that the translational speed and the net according to data entries
The size of page viewing area, calculates the preloading scope that data entries details preloading is carried out in the web page display area, tool
Body is calculated using below equation:
T=K*f3(K, S)
f3(K, S)=Max (0,1-S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries, f3 (K,S)To be pre-
Loading range accounts for the ratio of whole web page display area.
8. according to the method described in claim 1, it is characterised in that the central point for preloading scope and the web displaying
The central point in region is overlapped.
9. the device that a kind of info web is preloaded, it is characterised in that including:
Speed determination module, the screen sliding event for monitoring web page display area internal trigger, net is determined according to the screen sliding event
The translational speed of data entries in page viewing area;
Range determination module, for the translational speed according to described information entry and the size of the web page display area, meter
Calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components, are grasped for being preloaded by the data entries execution information entry details included in the range of the preloading
Make.
10. device according to claim 9, it is characterised in that described device also includes:
Electricity acquisition module, for obtaining current residual electricity;
Electricity judges, for judging whether the dump energy is more than or equal to preset value, if it is, in the range of the preloading
Comprising data entries execution information entry details preload operation.
11. device according to claim 9, it is characterised in that described device also includes:
Data obtaining module, network environment information and device hardware information are presently in for obtaining;
Number of concurrent determining module, for being presently in network environment information and device hardware information according to, calculates concurrent
The data entries number that execution information entry details are preloaded;
Number of concurrent setup module, is institute for the data entries number preloaded according to the concurrent execution information entry details
The content download manager of configuration sets the data entries number that concurrent execution information entry details are preloaded.
12. device according to claim 11, it is characterised in that described information acquisition module includes:
Information acquisition unit, CPU core number, memory size and the current connected network type of equipment where for obtaining.
13. device according to claim 11, it is characterised in that the number of concurrent determining module is according to being presently in network
Environmental information and device hardware information, calculate the data entries number that concurrent execution information entry details are preloaded, use with
Lower formula is calculated:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented;f2(N) represent to return under 4G networks to return to 3 under 2, Wifi networks, other
Network returns to 1;Min(f1(D)*f2(N), 6) represent to take " f1(N)*f2(N) " and the smaller in both " 6 ", M represents concurrently to hold
The data entries number that row information entry details are preloaded.
14. device according to claim 11, it is characterised in that described device also includes:
Click on entry determining module, the click event for monitoring the web page display area internal trigger, according to the click thing
The trigger position of part, determines the data entries corresponding to the trigger position;
Judge cache module, the data entries details for judging whether to have cached described information entry, if cached, from
The content download manager obtains the data entries details of described information entry, carries out the display of described information entry details;
Judge module is downloaded, the data entries details for when not caching, judging whether to download described information entry,
If downloaded, after the completion of waiting for downloads, the display of described information entry details is carried out.
15. device according to claim 9, it is characterised in that the range determination module is according to the movements of data entries
Speed and the size of the web page display area, calculate and data entries details preloading are carried out in the web page display area
Scope is preloaded, it is specific to be calculated using below equation:
T=K*f3(K, S)
f3(K, S)=Max (0,1-S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries, f3 (K,S)To be pre-
Loading range accounts for the ratio of whole web page display area.
16. device according to claim 9, it is characterised in that the central point of the preloading scope shows with the webpage
Show that the central point in region is overlapped.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710413818.XA CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710413818.XA CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107066632A true CN107066632A (en) | 2017-08-18 |
CN107066632B CN107066632B (en) | 2018-03-16 |
Family
ID=59617486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710413818.XA Active CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066632B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563469A (en) * | 2017-10-20 | 2018-09-21 | 五八有限公司 | page loading method, device, storage medium and terminal device |
CN109271581A (en) * | 2018-08-02 | 2019-01-25 | 北京天元创新科技有限公司 | A kind of quick rendering method of big data based on Dashboard |
CN109740081A (en) * | 2018-12-27 | 2019-05-10 | 新华三技术有限公司合肥分公司 | Page loading method and device |
CN109874044A (en) * | 2019-01-30 | 2019-06-11 | 广州华多网络科技有限公司 | A kind of data pre-storage method, system, equipment and computer-readable medium |
CN109948090A (en) * | 2019-03-08 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Webpage loading method and device |
CN109982153A (en) * | 2019-01-30 | 2019-07-05 | 广州华多网络科技有限公司 | A kind of data pre-storage method, system, equipment and computer-readable medium |
CN110018862A (en) * | 2018-01-09 | 2019-07-16 | 龙芯中科技术有限公司 | The data processing method and device of browser |
WO2019205804A1 (en) * | 2018-04-23 | 2019-10-31 | 中兴通讯股份有限公司 | Web page pre-downloading method and device, storage medium and electronic device |
CN110442809A (en) * | 2019-07-10 | 2019-11-12 | 北京天眼查科技有限公司 | Loading method, device, equipment and the storage medium of page data |
CN110457609A (en) * | 2019-08-02 | 2019-11-15 | 广州虎牙科技有限公司 | A kind of method, apparatus, computer equipment and the storage medium of page processing |
WO2020078100A1 (en) * | 2018-10-19 | 2020-04-23 | 北京字节跳动网络技术有限公司 | Method and device for processing webpage operation data, electronic apparatus, and storage medium |
CN111343036A (en) * | 2018-12-19 | 2020-06-26 | 华为技术有限公司 | Data buffering method applied to terminal and terminal |
CN112711726A (en) * | 2020-12-17 | 2021-04-27 | 北京奇艺世纪科技有限公司 | Method and device for caching video data, computer equipment and storage medium |
CN112929711A (en) * | 2021-01-26 | 2021-06-08 | 广州欢网科技有限责任公司 | Short video feed stream dynamic loading method and equipment suitable for smart television |
CN113761410A (en) * | 2020-07-23 | 2021-12-07 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN113821145A (en) * | 2021-09-22 | 2021-12-21 | 北京搜狗科技发展有限公司 | Page processing method, device and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807570B1 (en) * | 1997-01-21 | 2004-10-19 | International Business Machines Corporation | Pre-loading of web pages corresponding to designated links in HTML |
CN104965659A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page information preloading method and apparatus |
CN105389372A (en) * | 2015-11-17 | 2016-03-09 | 杭州九言科技股份有限公司 | Page display method and apparatus |
CN105677327A (en) * | 2015-12-30 | 2016-06-15 | 合一网络技术(北京)有限公司 | Page information preloading method and system |
CN106294609A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | page loading method and device |
-
2017
- 2017-06-05 CN CN201710413818.XA patent/CN107066632B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807570B1 (en) * | 1997-01-21 | 2004-10-19 | International Business Machines Corporation | Pre-loading of web pages corresponding to designated links in HTML |
CN104965659A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page information preloading method and apparatus |
CN105389372A (en) * | 2015-11-17 | 2016-03-09 | 杭州九言科技股份有限公司 | Page display method and apparatus |
CN105677327A (en) * | 2015-12-30 | 2016-06-15 | 合一网络技术(北京)有限公司 | Page information preloading method and system |
CN106294609A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | page loading method and device |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563469A (en) * | 2017-10-20 | 2018-09-21 | 五八有限公司 | page loading method, device, storage medium and terminal device |
CN110018862B (en) * | 2018-01-09 | 2022-09-13 | 龙芯中科技术股份有限公司 | Data processing method and device of browser |
CN110018862A (en) * | 2018-01-09 | 2019-07-16 | 龙芯中科技术有限公司 | The data processing method and device of browser |
WO2019205804A1 (en) * | 2018-04-23 | 2019-10-31 | 中兴通讯股份有限公司 | Web page pre-downloading method and device, storage medium and electronic device |
CN109271581A (en) * | 2018-08-02 | 2019-01-25 | 北京天元创新科技有限公司 | A kind of quick rendering method of big data based on Dashboard |
WO2020078100A1 (en) * | 2018-10-19 | 2020-04-23 | 北京字节跳动网络技术有限公司 | Method and device for processing webpage operation data, electronic apparatus, and storage medium |
CN111343036B (en) * | 2018-12-19 | 2022-05-31 | 华为技术有限公司 | Data buffering method applied to terminal and terminal |
CN111343036A (en) * | 2018-12-19 | 2020-06-26 | 华为技术有限公司 | Data buffering method applied to terminal and terminal |
CN109740081A (en) * | 2018-12-27 | 2019-05-10 | 新华三技术有限公司合肥分公司 | Page loading method and device |
CN109740081B (en) * | 2018-12-27 | 2021-03-09 | 新华三技术有限公司合肥分公司 | Page loading method and device |
CN109982153A (en) * | 2019-01-30 | 2019-07-05 | 广州华多网络科技有限公司 | A kind of data pre-storage method, system, equipment and computer-readable medium |
CN109982153B (en) * | 2019-01-30 | 2021-05-28 | 广州方硅信息技术有限公司 | Data prestoring method, system, equipment and computer readable medium |
CN109874044B (en) * | 2019-01-30 | 2021-07-16 | 广州方硅信息技术有限公司 | Data prestoring method, system, equipment and computer readable medium |
CN109874044A (en) * | 2019-01-30 | 2019-06-11 | 广州华多网络科技有限公司 | A kind of data pre-storage method, system, equipment and computer-readable medium |
CN109948090A (en) * | 2019-03-08 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Webpage loading method and device |
CN110442809A (en) * | 2019-07-10 | 2019-11-12 | 北京天眼查科技有限公司 | Loading method, device, equipment and the storage medium of page data |
CN110457609A (en) * | 2019-08-02 | 2019-11-15 | 广州虎牙科技有限公司 | A kind of method, apparatus, computer equipment and the storage medium of page processing |
CN113761410A (en) * | 2020-07-23 | 2021-12-07 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN112711726A (en) * | 2020-12-17 | 2021-04-27 | 北京奇艺世纪科技有限公司 | Method and device for caching video data, computer equipment and storage medium |
CN112711726B (en) * | 2020-12-17 | 2023-09-01 | 北京奇艺世纪科技有限公司 | Method, device, computer equipment and storage medium for caching video data |
CN112929711A (en) * | 2021-01-26 | 2021-06-08 | 广州欢网科技有限责任公司 | Short video feed stream dynamic loading method and equipment suitable for smart television |
CN113821145A (en) * | 2021-09-22 | 2021-12-21 | 北京搜狗科技发展有限公司 | Page processing method, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107066632B (en) | 2018-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107066632B (en) | The method and device that a kind of info web preloads | |
CN107329743B (en) | Application page display method and device and storage medium | |
RU2616536C2 (en) | Method, device and terminal device to display messages | |
US20180285471A1 (en) | Page caching method and apparatus | |
CN108363792B (en) | Link generation method and device of application page, storage medium and electronic equipment | |
CN108363528B (en) | Application page starting method and device, storage medium and electronic equipment | |
US10643021B2 (en) | Method and device for processing web page content | |
CN113360238A (en) | Message processing method and device, electronic equipment and storage medium | |
CN106896991B (en) | Method and device for updating information | |
CN108345478B (en) | Application processing method and device, storage medium and electronic equipment | |
EP3158475B1 (en) | Intelligent web page content blocking | |
CN112597361B (en) | Ordering processing method and device, electronic equipment and storage medium | |
US20150128033A1 (en) | Method and apparatus for webpage browsing | |
CN112711723A (en) | Malicious website detection method and device and electronic equipment | |
CN105468783B (en) | Information collection method and device | |
CN108563476B (en) | Application program running method and device, storage medium and electronic equipment | |
CN110753914B (en) | Information processing method, storage medium and mobile terminal | |
CN112286611B (en) | Icon display method and device and electronic equipment | |
CN108268507B (en) | Browser-based processing method and device and electronic equipment | |
EP4351117A1 (en) | Information display method and apparatus, and electronic device | |
CN110020346B (en) | Page storage method and device | |
CN110799958A (en) | File management method and device, mobile terminal and computer readable storage medium | |
CN108563712B (en) | Webpage picture viewing method and device and storage equipment | |
CN112765508A (en) | Information display method and device and electronic equipment | |
KR102048990B1 (en) | Mobile terminal and control method for the mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Unit G03, Room 102, 22 Guanri Road, Phase II, Xiamen Software Park, Fujian Province Patentee after: Xiamen Meishao Co., Ltd. Address before: Unit G03, Room 102, 22 Guanri Road, Phase II, Xiamen Software Park, Fujian Province Patentee before: Xiamen Mei You Information technology company limited |