CN104991916A - Webpage loading method and apparatus - Google Patents
Webpage loading method and apparatus Download PDFInfo
- Publication number
- CN104991916A CN104991916A CN201510353557.8A CN201510353557A CN104991916A CN 104991916 A CN104991916 A CN 104991916A CN 201510353557 A CN201510353557 A CN 201510353557A CN 104991916 A CN104991916 A CN 104991916A
- Authority
- CN
- China
- Prior art keywords
- predeterminable event
- prestrain
- module
- web page
- page contents
- 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/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
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 invention relates to a webpage loading method and apparatus. The webpage loading method comprises the steps of: monitoring a first preset event used for determining a to-be-loaded webpage; and when monitoring that the first preset event is triggered, pre-loading the corresponding webpage content bound and linked with the triggered first preset event, and locally storing the pre-loaded webpage content. According to an embodiment of the invention, the first preset event is monitored, the corresponding webpage content bound and linked with the triggered first preset event is pre-loaded when that the first preset event is triggered is monitored, and the pre-loaded webpage content is locally stored; the pre-loaded webpage content is stored in the local of a browser, so that a user can directly obtain the webpage content from the local when clicking to open a corresponding webpage, and the webpage loading speed is increased; and other servers do not need to be used in a realization process, so that the realization is simple.
Description
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of loading method and device of webpage.
Background technology
Browser refers to can HTML (Hypertext Markup Language) (HyperText Mark-up Language, the HTML) file content of display web page server or file system, and allows a kind of software of user and these file interactions.Browser can be used for showing word, image and other information, and these words or image can be the hyperlink connecting other network address, and user can browse various information rapidly and easily.At present, user can pass through a lot of website of browser access, and wishes to accelerate access speed.
Summary of the invention
In order to overcome Problems existing in correlation technique, disclosure embodiment provides a kind of loading method and device of webpage.
According to the first aspect of disclosure embodiment, a kind of loading method of webpage is provided, comprises:
Monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
When listening to described first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
In one embodiment, described method also comprises:
Before described prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, load the script file embedded in Website server return code;
The all-links in current site is obtained by described script file;
By the attribute field of described script file according to link each in described all-links, that determines to carry out with described first predeterminable event to bind links, and described first predeterminable event and the link determined is bound.
In one embodiment, described method also comprises:
Before the script file embedded in described loading Website server return code, send code fetch request to described Website server;
Receive the code that described Website server returns according to described code fetch request, and embed described script file in described code.
In one embodiment, described by the attribute field of described script file according to link each in described all-links, that determines to carry out with described first predeterminable event to bind links, and comprising:
For each link in described all-links, if the value of the attribute field of current link is true, then determine that current link is linking of can carrying out binding with described first predeterminable event.
In one embodiment, described method also comprises:
After described prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, from the web page contents of prestrain, extract multimedia messages;
Load the described multimedia messages extracted.
In one embodiment, described method also comprises:
Described after this locality stores the web page contents of prestrain or the multimedia messages of loading, monitor the second predeterminable event, described second predeterminable event is for determining webpage to be represented;
When listening to described second predeterminable event and being triggered, represent the local web page contents stored.
According to the second aspect of disclosure embodiment, a kind of charger of webpage is provided, comprises:
First monitors module, and be configured to monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
Prestrain memory module, be configured to when described first monitor module listen to described first predeterminable event be triggered time, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and this locality storage prestrain web page contents.
In one embodiment, described device also comprises:
Script file load-on module, is configured to, before the prestrain of described prestrain memory module and the first predeterminable event be triggered are bound and linked corresponding web page contents, load the script file embedded in Website server return code;
Acquisition module, the described script file being configured to be loaded by described script file load-on module obtains the all-links in current site;
Determine binding module, be configured to the attribute field of each link in the all-links that the script file that loaded by described script file load-on module obtained according to described acquisition module, that determines to carry out with described first predeterminable event to bind links, and described first predeterminable event and the link determined is bound.
In one embodiment, described device also comprises:
Sending module, is configured to, before described script file load-on module loads the script file embedded in Website server return code, send code fetch request to described Website server;
Receive merge module, be configured to receive the code that described Website server returns according to the described code fetch request that described sending module sends, and embed described script file in described code.
In one embodiment, describedly determine binding module, be configured to:
For each link in described all-links, if the value of the attribute field of current link is true, then determine that current link is linking of can carrying out binding with described first predeterminable event.
In one embodiment, described device also comprises:
Extraction module, is configured to, after the prestrain of described prestrain memory module and the first predeterminable event be triggered are bound and linked corresponding web page contents, from the web page contents of prestrain, extract multimedia messages;
Load-on module, is configured to load the described multimedia messages that described extraction module extracts.
In one embodiment, described device also comprises:
Second monitors module, and be configured in described prestrain memory module after this locality stores the web page contents of prestrain, monitor the second predeterminable event, described second predeterminable event is for determining webpage to be represented;
Represent module, be configured to when described second monitor module listen to described second predeterminable event be triggered time, represent the local web page contents stored.
According to the third aspect of disclosure embodiment, a kind of charger of webpage is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, processor is configured to:
Monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
When listening to described first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by monitoring the first predeterminable event, and when listening to the first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and the web page contents of prestrain is stored in this locality, web page contents due to prestrain is stored in browser this locality, like this, when user clicks the webpage opening correspondence, directly can obtain web page contents from this locality, thus promote the loading velocity of webpage, and do not need in implementation procedure by other servers, realize simple.
Script file is embedded by the code that returns at Website server, and load this script file, to be obtained the all-links in current site by this script file, and all or part of and the first predeterminable event in all-links is bound, for follow-up when listening to the first predeterminable event and being triggered, prestrain and the first predeterminable event be triggered are bound and are linked corresponding web page contents and provide condition.
Directly obtain code from Website server and can ensure that the content got is consistent with web site contents.
Determine that whether corresponding link carries out the mode of binding with the first predeterminable event according to the attribute field of link, the content and the first predeterminable event of expecting prestrain can be bound, and for the content of undesirably prestrain, then can not bind with the first predeterminable event.
Multimedia messages is extracted from the web page contents of prestrain, and load the mode of corresponding multimedia messages, because the web page contents of prestrain has been stored in browser this locality, so the multimedia messages extracting and load also is stored in browser this locality, like this, when user clicks the webpage opening correspondence, directly can obtain the web page contents that comprise multimedia messages from this locality, thus improve the loading velocity of multimedia messages, and then improve multimedia messages represent speed.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of the loading method of a kind of webpage according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the loading method of another kind of webpage according to an exemplary embodiment;
Fig. 3 is the process flow diagram of the loading method of another webpage according to an exemplary embodiment;
Fig. 4 is the process flow diagram of the loading method of another webpage according to an exemplary embodiment;
Fig. 5 is the block diagram of the charger of a kind of webpage according to an exemplary embodiment;
Fig. 6 is the block diagram of the charger of another kind of webpage according to an exemplary embodiment;
Fig. 7 is the block diagram of the charger of another webpage according to an exemplary embodiment;
Fig. 8 is the block diagram of the charger of another webpage according to an exemplary embodiment;
Fig. 9 is a kind of block diagram being applicable to the charger of webpage according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of the loading method of a kind of webpage according to an exemplary embodiment, and as shown in Figure 1, the loading method of this webpage can be applicable on browser, comprises the following steps S101-S 102:
In step S101, the first predeterminable event is monitored.
First predeterminable event is for determining webpage to be loaded.In this embodiment, the first predeterminable event can include but not limited to mouse-over (hover), mouse presses (Mouse down) and finger is touched (Touch start) etc.
In step s 102, when listening to the first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
In this embodiment, browser is after monitoring the first predeterminable event, if listen to the first predeterminable event such as mouse-over to be triggered, then can know linking of binding with the first predeterminable event be triggered, and the web page contents of this link correspondence of prestrain, such as can adopt the web page contents of asynchronous literal translation formula script and extend markup language (Asynchronous Javascript And XML, AJAX) this link correspondence of prestrain.
The loading method embodiment of above-mentioned webpage, by monitoring the first predeterminable event, and when listening to the first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and the web page contents of prestrain is stored in this locality, web page contents due to prestrain is stored in browser this locality, like this, when user clicks the webpage opening correspondence, directly can obtain web page contents from this locality, thus promote the loading velocity of webpage, and do not need in implementation procedure by other servers, realize simple.
Fig. 2 is the process flow diagram of the loading method of another kind of webpage according to an exemplary embodiment, and as shown in Figure 2, the loading method of this webpage can be applicable to, on browser, comprise the following steps S201-S207:
In step s 201, code fetch request is sent to Website server.
In this embodiment, browser sends code fetch request directly to Website server, such as, can send code fetch request to Sina's server.
In step S202, receive the code that Website server returns according to code fetch request, and embed script file in code.
Website server receive browser send code fetch request after, to browser return code.Such as, Sina's server, after receiving code fetch request, returns web page code to browser.
Directly obtain code from Website server and can ensure that the content got is consistent with web site contents.
Wherein, the web page code form returned is as follows:
<html>
<head>
/ * code 1*/
</head>
<body>
/ * code 2*/
</body>
</html>
Browser, after receiving web page code, embeds script file in this web page code, and the web page code embedded after script file can be as follows:
<html>
<head>
/ * code 1*/
</head>
<body>
/ * code 2*/
<script src="speed.js"></script>
</body>
</html>
Wherein, in above-mentioned code, thickened portion is the script file of embedding, and speed.js is script file name, it should be noted that, speed.js is only example, in actual applications, can embed the script file of different names, different suffix.
In step S203, load the script file embedded in Website server return code.
In step S204, obtain the all-links in current site by script file.
In step S205, by the attribute field of script file according to link each in all-links, that determines to carry out with the first predeterminable event to bind links, and the first predeterminable event and the link determined is bound.
In the present embodiment, browser is loading scripts file first, such as speed.js, then reads the all-links in current site by this script file, and wherein, the link in website exists with the form of A label usually, and the example of an A label is as follows:
<a href="http://mi.com/word"></a>
In addition, above-mentioned link can have attribute field, the value of this attribute field can be true, also can be false, if the value of attribute field is true, then represent that this link can be bound with the first predeterminable event, if the value of attribute field is false, then represent that this link cannot be bound with the first predeterminable event.
Continue for above-mentioned A label, the form increase attribute field in this A label after is as follows:
<a href="http://mi.com/word"data-no-speed></a>
For the label of above-mentioned increase attribute field, speed.js finds data-no-speed (value of attribute field is false) when reading this label, then link corresponding for this label and the first predeterminable event can not be bound, therefore, follow-uply also just prestrain cannot be carried out to this link.
Can will expect that the content of prestrain and the first predeterminable event be bound by the way, and for the content of undesirably prestrain, then can not bind with the first predeterminable event.
In step S206, monitor the first predeterminable event, the first predeterminable event is for determining webpage to be loaded.
In step S207, when listening to the first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
Owing to the first predeterminable event and the link determined being bound in step S205, therefore when browser listens to the first predeterminable event such as mouse down event is triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
The loading method embodiment of above-mentioned webpage, script file is embedded by the code that returns at Website server, and load this script file, to be obtained the all-links in current site by this script file, and all or part of and the first predeterminable event in all-links is bound, for follow-up when listening to the first predeterminable event and being triggered, prestrain and the first predeterminable event be triggered are bound and are linked corresponding web page contents and provide condition.
Fig. 3 is the process flow diagram of the loading method of another webpage according to an exemplary embodiment, and this embodiment, on basis embodiment illustrated in fig. 2, namely after step S207, can also perform lower step S208-209:
In step S208, from the web page contents of prestrain, extract multimedia messages.
In this embodiment, in the web page contents of prestrain except content of text, the multimedia messagess such as picture, animation, video can also be comprised, therefore, after prestrain web page contents, the multimedia messagess such as picture, animation, video can be extracted from the web page contents of prestrain.
In step S209, load the multimedia messages extracted.
After extracting multimedia messages, load the multimedia messages extracted.
The loading method embodiment of above-mentioned webpage, by extracting multimedia messages from the web page contents of prestrain, and load corresponding multimedia messages, because the web page contents of prestrain has been stored in browser this locality, so the multimedia messages extracting and load also is stored in browser this locality, like this, when user clicks the webpage opening correspondence, directly can obtain the web page contents comprising multimedia messages from this locality, thus improve the loading velocity of multimedia messages, and then improve multimedia messages represent speed.
In addition, after step S102 in FIG, also can comprise above-mentioned steps S208-209, not shown.
After step S102 in FIG, the method can also comprise S103-S104, as shown in Figure 4:
In step s 103, monitor the second predeterminable event, the second predeterminable event is for determining webpage to be represented.
Under normal circumstances, before user clicks a link, multiple event can be had, such as, mouse-over, mouse are pressed and are pointed touching etc., and, usually poor for some time between they and (click) event of click, such as, the delay of about 200ms is had between hover->click, have the delay of about 100ms between mousedown->click, between touch start->click, have the delay etc. of about 100ms.
In this embodiment, mouse-over, mouse are pressed and pointed touching and be called the first predeterminable event, (click) event of clicking is called the second predeterminable event.It should be noted that, above-mentioned event is only the example of the first predeterminable event and the second predeterminable event, and the present embodiment does not limit the first predeterminable event and the second predeterminable event.
In step S104, when listening to the second predeterminable event and being triggered, represent the local web page contents stored.
Because the web page contents of prestrain is stored in this locality, therefore, when listening to the second predeterminable event and being triggered, the local web page contents stored is represented.
After step S207 in fig. 2, the method also can comprise above-mentioned S103-S 104, not shown.Further, after step S209 in figure 3, the method also can comprise above-mentioned S103-S104, not shown.
It should be noted that, shown in above-mentioned Fig. 1-Fig. 4, method not only may be used for the content in the websites such as prestrain Sina, also can web page interlinkage in preloaded applications program (APP) such as Android APP, such as may be used for the web page interlinkage in similar micro-letter " circle of friends " in certain APP of prestrain, thus improve the loading velocity of corresponding content.
Wherein, in prestrain APP, the process of content can be: when user clicks the module comprising multiple web page interlinkage in certain APP, the server of this APP can to browser return code, script file is embedded in the code that browser returns at the server of this APP, the form of this script file can the corresponding part of embodiment shown in Figure 2, then by script file, all or part of link in this module and the first predeterminable event are bound, and when monitoring the first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and the web page contents of prestrain is stored in this locality, then, when monitoring the second predeterminable event and being triggered, directly represent the web page contents of the local prestrain stored, thus improve the loading velocity of web page interlinkage in this APP.
Corresponding with the loading method embodiment of aforementioned webpage, the disclosure additionally provides the charger embodiment of webpage.
Fig. 5 is the block diagram of the charger of a kind of webpage according to an exemplary embodiment, and as shown in Figure 5, the charger of this webpage comprises: first monitors module 51 and prestrain memory module 52.
First monitors module 51, and be configured to monitor the first predeterminable event, the first predeterminable event is for determining webpage to be loaded.
Prestrain memory module 52, be configured to when first monitor module 51 listen to the first predeterminable event be triggered time, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and this locality storage prestrain web page contents.
Device is as shown in Figure 5 for realizing above-mentioned method flow as shown in Figure 1, and the related content related to describes identical, does not repeat herein.
The charger embodiment of above-mentioned webpage, monitor module by first to monitor the first predeterminable event, and when listening to the first predeterminable event and being triggered, to be bound with the first predeterminable event be triggered by the prestrain of prestrain memory module and link corresponding web page contents, and the web page contents of prestrain is stored in this locality, web page contents due to prestrain is stored in browser this locality, like this, when user clicks the webpage opening correspondence, directly can obtain web page contents from this locality, thus promote the loading velocity of webpage, and do not need in implementation procedure by other servers, realize simple.
Fig. 6 is the block diagram of the charger of another kind of webpage according to an exemplary embodiment, and as shown in Figure 6, on above-mentioned basis embodiment illustrated in fig. 5, this device also can comprise script file load-on module 53, acquisition module 54 and determine binding module 55.
Script file load-on module 53, is configured to, before prestrain memory module 52 prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, load the script file embedded in Website server return code.
Acquisition module 54, the script file being configured to be loaded by script file load-on module 53 obtains the all-links in current site.
Determine binding module 55, the attribute field of each link in the all-links that the script file being configured to be loaded by script file load-on module 53 is obtained according to acquisition module 54, that determines to carry out with the first predeterminable event to bind links, and the first predeterminable event and the link determined is bound.
In this embodiment, determine that binding module 55 can be configured to: for each link in all-links, if the value of the attribute field of current link is true, then determine that current link is linking of can carrying out binding with the first predeterminable event.
In addition, this device also can comprise: sending module 56 and reception merge module 57.
Sending module 56, is configured to before script file load-on module 53 loads the script file embedded in Website server return code, sends code fetch request to Website server;
Receive merge module 57, be configured to the code that reception Website server returns according to the code fetch request that sending module 56 sends, and embed script file in code.
Device is as shown in Figure 6 for realizing above-mentioned method flow as shown in Figure 2, and the related content related to describes identical, does not repeat herein.
The charger embodiment of above-mentioned webpage, code fetch request is sent to Website server by sending module, script file is embedded by receiving in code that merge module returns at Website server, this script file is loaded by script file load-on module, and by acquisition module by the all-links in this script file acquisition current site, by determining that all or part of and the first predeterminable event in all-links is bound by binding module, for follow-up when listening to the first predeterminable event and being triggered, prestrain and the first predeterminable event be triggered are bound and are linked corresponding web page contents and provide condition.
Fig. 7 is the block diagram of the charger of another webpage according to an exemplary embodiment, and as shown in Figure 7, on above-mentioned basis embodiment illustrated in fig. 6, this device also can comprise extraction module 58 and load-on module 59.
Extraction module 58, is configured to, after prestrain memory module 52 prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, from the web page contents of prestrain, extract multimedia messages.
Load-on module 59, is configured to the multimedia messages that loading extraction module 58 extracts.
Device is as shown in Figure 7 for realizing above-mentioned method flow as shown in Figure 3, and the related content related to describes identical, does not repeat herein.
The charger embodiment of above-mentioned webpage, from the web page contents of prestrain, multimedia messages is extracted by extraction module, and load corresponding multimedia messages, thus the loading velocity of multimedia messages can be improved, so improve multimedia messages represent speed.
In addition, on basis embodiment illustrated in fig. 5, namely prestrain memory module 52 this locality store prestrain web page contents after, this device also can comprise extraction module 58 and load-on module 59, not shown.
Fig. 8 is the block diagram of the charger of another webpage according to an exemplary embodiment, and as shown in Figure 8, on above-mentioned basis embodiment illustrated in fig. 5, this device also can comprise: second monitors module 81 and represent module 82.
Second monitors module 81, and be configured in prestrain memory module 52 after this locality stores the web page contents of prestrain, monitor the second predeterminable event, the second predeterminable event is for determining webpage to be represented.
Represent module 82, be configured to when second monitor module 81 listen to the second predeterminable event be triggered time, represent the local web page contents stored.
Device is as shown in Figure 8 for realizing above-mentioned method flow as shown in Figure 4, and the related content related to describes identical, does not repeat herein.
The charger embodiment of above-mentioned webpage, monitor module by first to monitor the first predeterminable event, and when listening to the first predeterminable event and being triggered, to be bound with the first predeterminable event be triggered by the prestrain of prestrain memory module and link corresponding web page contents, and the web page contents of prestrain is stored in this locality, then monitor module by first to monitor the second predeterminable event, and when listening to the second predeterminable event and being triggered, the local web page contents stored is represented by representing module, thus improve the loading velocity of webpage and represent speed, and then improve the access speed of website and the experience of user.
In addition, on basis embodiment illustrated in fig. 6, this device also can comprise above-mentioned second and monitors module 81 and represent module 82, not shown.Further, on basis embodiment illustrated in fig. 7, this device also can comprise above-mentioned second and monitors module 81 and represent module 82, not shown.
It should be noted that, above-mentioned Fig. 5-Fig. 8 shown device not only may be used for the content in the websites such as prestrain Sina, also can content in prestrain APP such as Android APP, such as may be used for the web page interlinkage in similar micro-letter " circle of friends " in certain APP of prestrain, thus improve the loading velocity of corresponding content, specific implementation process see embodiment of the method part, can not repeat herein.
About the device in above-described embodiment, wherein the concrete mode of modules, submodule executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is a kind of block diagram being applicable to the charger of webpage according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant, aircraft etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing element 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is device 900 provide electric power.Electric power assembly 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
1. a loading method for webpage, is characterized in that, described method comprises:
Monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
When listening to described first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
2. the loading method of webpage according to claim 1, is characterized in that, described method also comprises:
Before described prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, load the script file embedded in Website server return code;
The all-links in current site is obtained by described script file;
By the attribute field of described script file according to link each in described all-links, that determines to carry out with described first predeterminable event to bind links, and described first predeterminable event and the link determined is bound.
3. the loading method of webpage according to claim 2, is characterized in that, described method also comprises:
Before the script file embedded in described loading Website server return code, send code fetch request to described Website server;
Receive the code that described Website server returns according to described code fetch request, and embed described script file in described code.
4. the loading method of webpage according to claim 2, is characterized in that, described by the attribute field of described script file according to link each in described all-links, and that determines to carry out with described first predeterminable event to bind links, and comprising:
For each link in described all-links, if the value of the attribute field of current link is true, then determine that current link is linking of can carrying out binding with described first predeterminable event.
5. the loading method of webpage according to claim 1, is characterized in that, described method also comprises:
After described prestrain and the first predeterminable event be triggered are bound and linked corresponding web page contents, from the web page contents of prestrain, extract multimedia messages;
Load the described multimedia messages extracted.
6. the loading method of the webpage according to any one of claim 1-5, is characterized in that, described method also comprises:
Described after this locality stores the web page contents of prestrain or the multimedia messages of loading, monitor the second predeterminable event, described second predeterminable event is for determining webpage to be represented;
When listening to described second predeterminable event and being triggered, represent the local web page contents stored.
7. a charger for webpage, is characterized in that, described device comprises:
First monitors module, and be configured to monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
Prestrain memory module, be configured to when described first monitor module listen to described first predeterminable event be triggered time, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and this locality storage prestrain web page contents.
8. the charger of webpage according to claim 7, is characterized in that, described device also comprises:
Script file load-on module, is configured to, before the prestrain of described prestrain memory module and the first predeterminable event be triggered are bound and linked corresponding web page contents, load the script file embedded in Website server return code;
Acquisition module, the described script file being configured to be loaded by described script file load-on module obtains the all-links in current site;
Determine binding module, be configured to the attribute field of each link in the all-links that the script file that loaded by described script file load-on module obtained according to described acquisition module, that determines to carry out with described first predeterminable event to bind links, and described first predeterminable event and the link determined is bound.
9. the charger of webpage according to claim 8, is characterized in that, described device also comprises:
Sending module, is configured to, before described script file load-on module loads the script file embedded in Website server return code, send code fetch request to described Website server;
Receive merge module, be configured to receive the code that described Website server returns according to the described code fetch request that described sending module sends, and embed described script file in described code.
10. the charger of webpage according to claim 8, is characterized in that, describedly determines binding module, is configured to:
For each link in described all-links, if the value of the attribute field of current link is true, then determine that current link is linking of can carrying out binding with described first predeterminable event.
The charger of 11. webpages according to claim 7, is characterized in that, described device also comprises:
Extraction module, is configured to, after the prestrain of described prestrain memory module and the first predeterminable event be triggered are bound and linked corresponding web page contents, from the web page contents of prestrain, extract multimedia messages;
Load-on module, is configured to load the described multimedia messages that described extraction module extracts.
The charger of 12. webpages according to any one of claim 7-11, it is characterized in that, described device also comprises:
Second monitors module, and be configured in described prestrain memory module after this locality stores the web page contents of prestrain, monitor the second predeterminable event, described second predeterminable event is for determining webpage to be represented;
Represent module, be configured to when described second monitor module listen to described second predeterminable event be triggered time, represent the local web page contents stored.
The charger of 13. 1 kinds of webpages, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Monitor the first predeterminable event, described first predeterminable event is for determining webpage to be loaded;
When listening to described first predeterminable event and being triggered, prestrain is bound with the first predeterminable event be triggered and is linked corresponding web page contents, and stores the web page contents of prestrain in this locality.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353557.8A CN104991916B (en) | 2015-06-24 | 2015-06-24 | The loading method and device of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353557.8A CN104991916B (en) | 2015-06-24 | 2015-06-24 | The loading method and device of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104991916A true CN104991916A (en) | 2015-10-21 |
CN104991916B CN104991916B (en) | 2019-03-01 |
Family
ID=54303732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510353557.8A Active CN104991916B (en) | 2015-06-24 | 2015-06-24 | The loading method and device of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104991916B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105488200A (en) * | 2015-12-08 | 2016-04-13 | 小米科技有限责任公司 | Webpage display method and device |
CN105701246A (en) * | 2015-11-25 | 2016-06-22 | 青岛海信电器股份有限公司 | Terminal information loading method and device based on web application |
CN106844451A (en) * | 2016-12-19 | 2017-06-13 | 福建中金在线信息科技有限公司 | The method and device that a kind of multimedia messages are preloaded |
CN106897347A (en) * | 2016-08-15 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of web page display method, Action Events recording method and device |
CN107102937A (en) * | 2016-02-19 | 2017-08-29 | 腾讯科技(深圳)有限公司 | A kind of ui testing method and apparatus |
CN107153650A (en) * | 2016-03-03 | 2017-09-12 | 滴滴(中国)科技有限公司 | A kind of picture loading method and device |
CN107844501A (en) * | 2016-09-20 | 2018-03-27 | 天脉聚源(北京)科技有限公司 | A kind of method and system of mobile terminal processing web page popup window |
CN109213952A (en) * | 2018-08-02 | 2019-01-15 | 平安科技(深圳)有限公司 | Page access processing method, device, computer equipment and storage medium |
CN109857473A (en) * | 2017-11-29 | 2019-06-07 | 北京京东尚科信息技术有限公司 | A kind of loading method and device of page data |
CN111859077A (en) * | 2019-04-24 | 2020-10-30 | 北京沃东天骏信息技术有限公司 | Data processing method, device, system and computer readable storage medium |
CN113065083A (en) * | 2021-02-26 | 2021-07-02 | 北京达佳互联信息技术有限公司 | Page processing method and device, electronic equipment and storage medium |
CN115098180A (en) * | 2022-05-23 | 2022-09-23 | 深圳市大头兄弟科技有限公司 | Webpage loading speed increasing method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375882A (en) * | 2011-09-19 | 2012-03-14 | 奇智软件(北京)有限公司 | Method, device and browser for rapidly accessing webpage |
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN104239480A (en) * | 2011-09-19 | 2014-12-24 | 北京奇虎科技有限公司 | Method and device for quick access to webpage |
CN104516889A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, webpage loading browser and proxy server |
-
2015
- 2015-06-24 CN CN201510353557.8A patent/CN104991916B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375882A (en) * | 2011-09-19 | 2012-03-14 | 奇智软件(北京)有限公司 | Method, device and browser for rapidly accessing webpage |
CN104239480A (en) * | 2011-09-19 | 2014-12-24 | 北京奇虎科技有限公司 | Method and device for quick access to webpage |
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN104516889A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, webpage loading browser and proxy server |
Non-Patent Citations (1)
Title |
---|
WEBHEK: ""【第 54期】使用HTML5的页面资源预加载(link prefetch)功能加速你的页面加载速度"", 《HTTP://WWW.10TIAO.COM/HTML/293/201405/200153364/1.HTML》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105701246A (en) * | 2015-11-25 | 2016-06-22 | 青岛海信电器股份有限公司 | Terminal information loading method and device based on web application |
CN105488200A (en) * | 2015-12-08 | 2016-04-13 | 小米科技有限责任公司 | Webpage display method and device |
CN107102937A (en) * | 2016-02-19 | 2017-08-29 | 腾讯科技(深圳)有限公司 | A kind of ui testing method and apparatus |
CN107153650A (en) * | 2016-03-03 | 2017-09-12 | 滴滴(中国)科技有限公司 | A kind of picture loading method and device |
CN106897347A (en) * | 2016-08-15 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of web page display method, Action Events recording method and device |
CN107844501A (en) * | 2016-09-20 | 2018-03-27 | 天脉聚源(北京)科技有限公司 | A kind of method and system of mobile terminal processing web page popup window |
CN106844451A (en) * | 2016-12-19 | 2017-06-13 | 福建中金在线信息科技有限公司 | The method and device that a kind of multimedia messages are preloaded |
CN109857473A (en) * | 2017-11-29 | 2019-06-07 | 北京京东尚科信息技术有限公司 | A kind of loading method and device of page data |
CN109213952A (en) * | 2018-08-02 | 2019-01-15 | 平安科技(深圳)有限公司 | Page access processing method, device, computer equipment and storage medium |
CN111859077A (en) * | 2019-04-24 | 2020-10-30 | 北京沃东天骏信息技术有限公司 | Data processing method, device, system and computer readable storage medium |
CN111859077B (en) * | 2019-04-24 | 2024-09-20 | 北京沃东天骏信息技术有限公司 | Data processing method, device, system and computer readable storage medium |
CN113065083A (en) * | 2021-02-26 | 2021-07-02 | 北京达佳互联信息技术有限公司 | Page processing method and device, electronic equipment and storage medium |
CN113065083B (en) * | 2021-02-26 | 2023-10-31 | 北京达佳互联信息技术有限公司 | Page processing method and device, electronic equipment and storage medium |
CN115098180A (en) * | 2022-05-23 | 2022-09-23 | 深圳市大头兄弟科技有限公司 | Webpage loading speed increasing method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN104991916B (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104991916A (en) | Webpage loading method and apparatus | |
CN104778063A (en) | Method and device for updating resource | |
CN104050266B (en) | User behavior recording method, device and web browser | |
CN103914523A (en) | Page rollback controlling method and page rollback controlling device | |
CN104238875A (en) | Application corner mark addition method and device | |
CN104427395A (en) | Electronic device and method for using captured image in electronic device | |
CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
CN104156401A (en) | Webpage loading method, device and equipment | |
CN104731868A (en) | Method and device for intercepting advertisements | |
CN104778405A (en) | Method and device for blocking advertisements | |
CN105491048A (en) | Account management method and apparatus | |
CN104731688A (en) | Method and device for prompting reading schedule | |
CN105159524A (en) | Interface display method and apparatus | |
CN104391878A (en) | Book search method and book search device | |
CN104536787A (en) | Resource preloading method and device | |
CN104361021A (en) | Webpage encoding identifying method and device | |
CN105183493A (en) | Display method and device of network information | |
CN104636170A (en) | Application acquiring method and device and electronic device | |
CN104951184A (en) | Application program downloading method and device | |
CN104572875A (en) | Popularization information putting effectiveness determining method and device | |
CN104035977A (en) | Webpage loading method and device | |
CN104376075A (en) | Data storage method and device | |
CN105488200A (en) | Webpage display method and device | |
CN105468417A (en) | Application software installation method and device | |
CN105488065A (en) | Webpage access method and device, and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |