CN105868319B - Webpage loading method and device - Google Patents
Webpage loading method and device Download PDFInfo
- Publication number
- CN105868319B CN105868319B CN201610179925.6A CN201610179925A CN105868319B CN 105868319 B CN105868319 B CN 105868319B CN 201610179925 A CN201610179925 A CN 201610179925A CN 105868319 B CN105868319 B CN 105868319B
- Authority
- CN
- China
- Prior art keywords
- page
- webpage
- web page
- named web
- load
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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 invention discloses a kind of webpage loading method and devices, belong to network technique field.The described method includes: when browser starting, from the basic framework that middle acquisition named web page is locally stored;Load the basic framework of the named web page;When detecting the page load operation to the named web page, load request is sent to server, the load request is used to obtain the page elements of the named web page;Receive the page elements for the named web page that the server returns;The basic framework is filled according to the page elements, to load the named web page.The present invention enables to server to the page elements for storing the specified page, reduce the storage burden of server, increase the extendible capacity of server, and the basic framework since the named web page has been locally stored, the page elements of the named web page need to be only obtained when load from server, therefore user can also be reduced, the page is waited to load duration.
Description
Technical field
The present invention relates to network technique field, in particular to a kind of webpage loading method and device.
Background technique
With the continuous development of network technology, webpage using more more and more universal, when user needs to access a certain webpage,
Linked according to the address of the webpage, load the webpage to requesting page server face data, and based on page data, with terminal into
Row display.
Currently, webpage loading method can be with are as follows: terminal to server sends the page load request of webpage, so that service
Device obtains the page data of the webpage according to the page load request, which includes page framework and page elements, is somebody's turn to do
Page elements are for filling the page framework, which is sent to the terminal by server, and terminal receives the page number
According to rear, the page framework is filled by the page elements, and the filled page is shown on the terminal.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
In above-mentioned webpage loading method, server needs memory page frame simultaneously and for filling the page framework
Page elements cause occupancy server memory larger, aggravate server burden.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of webpage loading method and devices.It is described
Technical solution is as follows:
On the one hand, a kind of webpage loading method is provided, which comprises
When browser starting, from the basic framework that middle acquisition named web page is locally stored;
Load the basic framework of the named web page;
When detecting the page load operation to the named web page, load request, the load are sent to server
Request the page elements for obtaining the named web page;
Receive the page elements for the named web page that the server returns;
The basic framework is filled according to the page elements, to load the named web page.
In the first possible implementation of the first aspect of the present invention, the named web page is opened using asynchronous system
Hair.
In second of possible implementation of the first aspect of the present invention, the basic framework of the specified page uses base
It is created in the method for NODE.JS.
In the third possible implementation of the first aspect of the present invention, the load request is AJAX request.
In the 4th kind of possible implementation of the first aspect of the present invention, when detecting the page to the named web page
When load operation, sending load request to server includes:
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated word
Symbol string, if including designated character string, it is determined that detect the page load operation to the named web page, Xiang Suoshu server
Send the load request.
On the other hand, a kind of webpage loading device is provided, described device includes:
Module is obtained, is used for when browser starting, from the basic framework that middle acquisition named web page is locally stored;
Loading module, for loading the basic framework of the named web page;
Sending module, for sending and loading to server when detecting the page load operation to the named web page
Request, the load request are used to obtain the page elements of the named web page;
Receiving module, for receiving the page elements for the named web page that the server returns;
Module is filled, for being filled according to the page elements to the basic framework, to load the specified net
Page.
In the first possible implementation of the second aspect of the present invention, the named web page is opened using asynchronous system
Hair.
In second of possible implementation of the second aspect of the present invention, the basic framework of the specified page uses base
It is created in the method for NODE.JS.
In the third possible implementation of the second aspect of the present invention, the load request is AJAX request.
In the 4th kind of possible implementation of the second aspect of the present invention, the sending module is used for:
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated word
Symbol string, if including designated character string, it is determined that detect the page load operation to the named web page, Xiang Suoshu server
Send the load request.
Technical solution provided in an embodiment of the present invention has the benefit that
By from middle acquisition is locally stored and loads the basic framework of named web page, when detecting the page to the named web page
When the load operation of face, load request is sent to server, to obtain the page elements for filling the basic framework, and according to this
Page elements are filled the basic framework, to load the named web page, enable to server to storing the specified page
Page elements, reduce the storage burden of server, increase the extendible capacity of server, and since the specified net has been locally stored
The basic framework of page, when load, need to only obtain the page elements of the named web page from server, therefore can also reduce user etc.
Duration is loaded to the page;Further, the named web page is developed by using asynchronous development mode, opening for basic framework can be made
The exploitation of hair and page elements is carried out in front and back ends simultaneously respectively, and then can be improved the development efficiency of webpage.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of webpage loading method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of webpage loading method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of webpage loading device block diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of webpage loading method flow chart provided in an embodiment of the present invention, as shown in Figure 1, comprising the following steps:
101, when browser starts, from the basic framework that middle acquisition named web page is locally stored.
102, the basic framework of the named web page is loaded.
103, when detecting the page load operation to the named web page, load request is sent to server, it is described
Load request is used to obtain the page elements of the named web page.
104, the page elements for the named web page that the server returns are received.
105, the basic framework is filled according to the page elements, to load the named web page.
Method provided in an embodiment of the present invention, by from middle acquisition is locally stored and loads the basic framework of named web page,
When detecting the page load operation to the named web page, load request is sent to server, to obtain for filling the base
The page elements of plinth frame, and the basic framework is filled according to the page elements, to load the named web page, can make
Server to the page elements for storing the specified page, reduce the storage burden of server, increase the extendible capacity of server,
And the basic framework since the named web page has been locally stored, when load, need to only obtain the page member of the named web page from server
Element, therefore user can also be reduced, the page is waited to load duration.
In the possible implementation of the first of the invention, the named web page is developed using asynchronous system.
In of the invention second possible implementation, the basic framework of the specified page, which uses, is based on NODE.JS
Method creation.
In the third possible implementation of the invention, the load request is AJAX request.
In the 4th kind of possible implementation of the invention, operated when detecting that the page to the named web page loads
When, sending load request to server includes:
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated word
Symbol string, if including designated character string, it is determined that detect the page load operation to the named web page, Xiang Suoshu server
Send the load request.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination
It repeats one by one.
Fig. 2 is a kind of webpage loading method flow chart provided in an embodiment of the present invention, and the executing subject of this method is terminal,
Referring to fig. 2, this method comprises:
201, when browser starts, from the basic framework that middle acquisition named web page is locally stored.
The named web page can be the pre-set navigation page of user, be also possible to the homepage of any search website, or
Other webpages, the embodiment of the present invention are not construed as limiting this.The basic framework of the named web page is HTML (HyperText Markup
Language, hypertext markup language) frame.
It should be noted that the basic framework of the named web page and the AJAX for obtaining page elements
(Asynchronous JavaScript And XML is based on asynchronous JavaScript and XML) request can add for the first time in terminal
When carrying the named web page, store to the correspondence storage region of the terminal;It can also be installed in the terminal and be used to open the specified net
When the browser of page, store to the correspondence storage region of the terminal, for example, the browser can be built in any client, when
When the client is net cast client, when terminal installs the browser, multiple basic frameworks are carried in installation kit, this is more
A basic framework corresponds to the multiclass page that the browser is able to access that, as live video searched page and live video play the page
Deng;It is of course also possible to other times or under the conditions of store the basic framework of the named web page and for obtaining page elements
AJAX request, the present invention is not especially limit this.
In an alternative embodiment of the invention, which is developed using asynchronous system.Specifically, which opens
Give out a contract for a project and includes the exploitation of basic framework and the exploitation of the page elements for filling the basic framework, the basic framework of the specified page
Using the method creation based on NODE.JS, for example, creating basic framework using the CASPER.JS based on NODE.JS;The page
The exploitation of element includes at least: creation AJAX request, which is used to request the page member of the named web page to server
Element, to fill the basic framework, the exploitation of the page elements can also include other processes, and the embodiment of the present invention does not limit this
It is fixed.
By the way that the basic framework of the named web page is stored in terminal, so that server only needs to store corresponding page member
Element is conducive to server expansion so as to reduce the storage burden of server.This is developed by using asynchronous development mode to refer to
Determine webpage, the exploitation of the exploitation and page elements that can make basic framework in front and back ends while carrying out respectively, and then can be improved
The development efficiency of webpage;The page is grabbed by using the basic framework of the CASPER.JS creation based on NODE.JS, due to
CASPER.JS can grab the full content of page framework and AJAX backfill, therefore can grab a complete page
Face, so as to achieve the purpose that the synchronous load of asynchronous development.
202, the basic framework of the named web page is loaded.
By loading the basic framework of the locally stored named web page, it can be avoided and detecting to the named web page
Page when loading operation, then when obtaining the basic framework from server, user is caused to wait load time longer problem.
203, when detecting the page load operation to the named web page, load request, the load are sent to server
Request the page elements for obtaining the named web page.
Page load operation can be after the address link input for detecting named web page to access web page selection
Trigger action, or can also be it to the trigger action of search option after the input for detecting search key word
He can trigger the operation of page load, and the embodiment of the present invention is not construed as limiting this.
Specifically, when detecting the page load operation to the named web page, the side of load request is sent to server
Whether method can be with are as follows: when detecting the page load operation to webpage, judge in the address link of the webpage comprising designated word
Symbol string, if including designated character string, it is determined that detect the page load operation to the named web page, sent to the server
The load request.By judging that whether the address of the webpage links comprising designated character string, it can guarantee that the named web page is real
Now while synchronous load, other webpages also being capable of normal load.
By being sent for obtaining the specified net to server when detecting the page load operation to the named web page
The load request of the page elements of page, can reduce volume of transmitted data, improve loading velocity, and then can reduce user etc. and is to be added
Carry the time.
In an alternative embodiment of the invention, which is AJAX request, due to the locally stored specified page
Basic framework, and the AJAX request can be used in obtain page elements, therefore can reduce it is unnecessary between server and terminal
Data transmission, and then reduce bandwidth occupancy.
204, the page elements of the named web page of server return are received.
In an alternative embodiment of the invention, when detecting the page load operation to webpage, and the address chain of the webpage
Do not include designated character string in connecing, then detects and locally whether be stored with the basic framework of the webpage, if the net has been locally stored
The basic framework of page executes step 201 and its later step, realizes the load to the webpage;If locally not stored have the net
The basic framework of page, the load request of the webpage is sent to server, and the load request of the webpage is used for while obtaining the webpage
Basic framework and page elements, the synchronous of the webpage is loaded with realizing, reduces period of reservation of number in page loading procedure.
205, the basic framework is filled according to the page elements, to load the named web page.
According to the difference of the basic framework and the page elements, the basic framework can be filled out in different ways
It fills;For example, text information to be first first filled into the correspondence position of the basic framework when in the page elements including a large amount of pictures
It sets, refills pictorial information, so that user, can be first clear in waiting picture loading procedure when network state is bad
Look at the text information loaded;When only including text information in the page elements, directly text information is sequentially filled
The basic framework.It is of course also possible to use other methods fill the basic framework, the embodiment of the present invention is not construed as limiting this.
206, the named web page is shown.
In an alternative embodiment of the invention, when the named web page is user in the browser that live video client embeds
When pre-set live streaming webpage, terminal not only can store the basic framework of the named web page, can also store the live streaming net
The page elements of page from being locally stored while obtaining the base of the live streaming webpage when detecting the start-up operation of the browser
Plinth frame and page elements, and loaded and filled simultaneously, to show the live streaming webpage.It, can by above-mentioned loading method
When browser is opened, quickly display live streaming webpage, waits the page to load duration to further decrease user.
Method provided in this embodiment, by working as inspection from the middle basic framework obtained and load named web page is locally stored
When measuring the page load operation to the named web page, load request is sent to server, to obtain for filling the basis frame
The page elements of frame, and the basic framework is filled according to the page elements, to load the named web page, enable to take
Device be engaged in the page elements for storing the specified page, reduces the storage burden of server, increases the extendible capacity of server, and by
The page elements of the named web page need to be only obtained from server when the basic framework that the named web page has been locally stored, load,
Therefore can also reduce user waits the page to load duration;Further, the specified net is developed by using asynchronous development mode
Page, the exploitation of the exploitation and page elements that can make basic framework in front and back ends while carrying out respectively, and then can be improved webpage
Development efficiency.
Fig. 3 is a kind of webpage loading device block diagram provided in an embodiment of the present invention.Referring to Fig. 3, which includes obtaining mould
Block 301, loading module 302, sending module 303, receiving module 304 and filling module 305.
Module 301 is obtained, is used for when browser starting, from the basic framework that middle acquisition named web page is locally stored;
Loading module 302, for loading the basic framework of the named web page;
Sending module 303, for sending and adding to server when detecting the page load operation to the named web page
Request is carried, the load request is used to obtain the page elements of the named web page;
Receiving module 304, for receiving the page elements for the named web page that the server returns;
Module 305 is filled, it is described specified to load for being filled according to the page elements to the basic framework
Webpage.
In the first possible implementation provided by the invention, the named web page is developed using asynchronous system.
In second provided by the invention possible implementation, the basic framework of the specified page, which uses, to be based on
The method of NODE.JS creates.
In the third possible implementation provided by the invention, the load request is AJAX request.
In the 4th kind of possible implementation provided by the invention, the sending module 303 is used for:
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated word
Symbol string, if including designated character string, it is determined that detect the page load operation to the named web page, Xiang Suoshu server
Send the load request.
It should be understood that webpage loading device provided by the above embodiment is when loading webpage, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above
Energy.In addition, webpage loading device provided by the above embodiment and webpage loading method embodiment belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and which is not described herein again.
A kind of terminal is present embodiments provided, which can be used for executing the webpage provided in above-mentioned each embodiment and add
Support method.Referring to fig. 4, which includes:
Terminal 400 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter
The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (Wireless Fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core
The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 4 is not constituted pair
The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short
Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 400
According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory
120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 400 that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal
Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby
After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event
Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 4
Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display
Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 400 is moved in one's ear
Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 400 can also configure, herein
It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 400.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110
End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone Yu terminal 400.
WiFi belongs to short range wireless transmission technology, and terminal 400 can help user's transceiver electronics by WiFi module 170
Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 is shown
WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 400, it can according to need completely
Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 400, utilizes each portion of various interfaces and connection whole mobile phone
Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120
Interior data execute the various functions and processing data of terminal 400, to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 400 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 400 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality
It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one
Program, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of them
Device executes.The one or more programs include instructions for performing the following operations:
When browser starting, from the basic framework that middle acquisition named web page is locally stored;
Load the basic framework of the named web page;
When detecting the page load operation to the named web page, load request, the load are sent to server
Request the page elements for obtaining the named web page;
Receive the page elements for the named web page that the server returns;
The basic framework is filled according to the page elements, to load the named web page.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of webpage loading method, which is characterized in that the described method includes:
When browser starting, from the basic framework that middle acquisition named web page is locally stored;
Load the basic framework of the named web page;
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated character
String;
If not including designated character string, the basic frame of the local webpage for whether being stored with the address link guiding is detected
Frame;If the basic framework of the local not stored webpage for having the address chain to connect guiding sends the address chain to server
The load request of the webpage of guiding is connect, the load request of the webpage of the address link guiding is used for while obtaining the address chain
Connect the basic framework and page elements of the webpage of guiding;Receive the webpage for the address link guiding that the server returns
Basic framework and page elements;According to the page elements of the webpage of address link guiding to the net of address link guiding
The basic framework of page is filled, to load the webpage of the address link guiding;
If including designated character string, it is determined that detect the page load operation to the named web page, sent to server
The load request of the named web page, the load request of the named web page are used to obtain the page elements of the named web page;
Receive the page elements for the named web page that the server returns;According to the page elements of the named web page to the finger
The basic framework for determining webpage is filled, to load the named web page.
2. the method according to claim 1, wherein the named web page is developed using asynchronous system.
3. according to the method described in claim 2, it is characterized in that, the basic framework of the specified page is using being based on
The method of NODE.JS creates.
4. the method according to claim 1, wherein the load request of the named web page is AJAX request.
5. a kind of webpage loading device, which is characterized in that described device includes:
Module is obtained, is used for when browser starting, from the basic framework that middle acquisition named web page is locally stored;
Loading module, for loading the basic framework of the named web page;
Sending module, for when detecting to the load operation of the page of webpage, judge in the address link of the webpage whether
Comprising designated character string, if including designated character string, it is determined that detect the page load operation to the named web page, to
Server sends the load request of the named web page, and the load request of the named web page is for obtaining the named web page
Page elements;
Receiving module, for receiving the page elements for the named web page that the server returns;
Module is filled, for being filled according to the page elements of the named web page to the basic framework of the named web page,
To load the named web page;
Wherein, described device is also used to:
When detecting the page load operation to webpage, whether judge in the address link of the webpage comprising designated character
String detects the basic framework of the local webpage for whether being stored with the address link guiding if not including designated character string,
If the basic framework of the local not stored webpage for having the address chain to connect guiding, the address link is sent to server and is led
To webpage load request, the load request of the webpage of address link guiding links for obtaining the address simultaneously and leads
To webpage basic framework and page elements;Receive the basis of the webpage for the address link guiding that the server returns
Frame and page elements;The webpage being oriented to is linked to the address according to the page elements of the webpage of address link guiding
Basic framework is filled, to load the webpage of the address link guiding.
6. device according to claim 5, which is characterized in that the named web page is developed using asynchronous system.
7. device according to claim 6, which is characterized in that the basic framework of the specified page is used and is based on
The method of NODE.JS creates.
8. device according to claim 5, which is characterized in that the named web page load request is AJAX request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610179925.6A CN105868319B (en) | 2016-03-25 | 2016-03-25 | Webpage loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610179925.6A CN105868319B (en) | 2016-03-25 | 2016-03-25 | Webpage loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105868319A CN105868319A (en) | 2016-08-17 |
CN105868319B true CN105868319B (en) | 2019-09-20 |
Family
ID=56626204
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610179925.6A Active CN105868319B (en) | 2016-03-25 | 2016-03-25 | Webpage loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105868319B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598640A (en) * | 2016-11-01 | 2017-04-26 | 努比亚技术有限公司 | Method and device for starting application program |
CN106776961B (en) * | 2016-12-05 | 2020-03-20 | 广州阿里巴巴文学信息技术有限公司 | Webpage local storage space expansion method, browser client and electronic equipment |
CN107015801B (en) * | 2017-03-15 | 2021-01-08 | 腾讯科技(深圳)有限公司 | Webpage display method and application terminal |
CN108845801A (en) * | 2018-05-29 | 2018-11-20 | 北京五八信息技术有限公司 | Dissemination method, device, equipment and the storage medium of client executing file |
CN111177539A (en) * | 2019-12-16 | 2020-05-19 | 北京百度网讯科技有限公司 | Search result page generation method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104573025A (en) * | 2015-01-12 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
CN104750793A (en) * | 2015-03-12 | 2015-07-01 | 小米科技有限责任公司 | Method and device for generating page tables |
-
2016
- 2016-03-25 CN CN201610179925.6A patent/CN105868319B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104573025A (en) * | 2015-01-12 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
CN104750793A (en) * | 2015-03-12 | 2015-07-01 | 小米科技有限责任公司 | Method and device for generating page tables |
Non-Patent Citations (1)
Title |
---|
一种服务器端模板引擎的改进与实现;姬一文 等;《计算机应用研究》;20110315;第28卷(第3期);1077-1079,1087 * |
Also Published As
Publication number | Publication date |
---|---|
CN105868319A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104850434B (en) | Multimedia resource method for down loading and device | |
CN104978176B (en) | Application programming interfaces call method, device and computer readable storage medium | |
CN105868319B (en) | Webpage loading method and device | |
CN106933525B (en) | A kind of method and apparatus showing image | |
CN103279574A (en) | Method, device and terminal device for loading explorer pictures | |
CN104519404B (en) | The player method and device of graphic interchange format file | |
CN104572690B (en) | A kind of methods, devices and systems obtaining web data | |
CN104093123B (en) | The information-pushing method of application program, device and system, mobile terminal | |
CN103390034B (en) | Method, device, terminal and the server of picture presentation | |
CN104104711B (en) | Reading histories treating method and apparatus | |
CN104077211B (en) | A kind of test method and test system of mobile terminal software | |
CN105530239B (en) | Multi-medium data acquisition methods and device | |
CN105022616A (en) | Method and device for generating web page | |
CN105955597B (en) | Information display method and device | |
CN104699501B (en) | A kind of method and device for running application program | |
CN103336838B (en) | A kind of processing method of webpage, device and terminal device | |
CN104951215A (en) | Processing method and device for page operation | |
CN110020293A (en) | Multi-medium data methods of exhibiting, device and storage medium | |
CN107396193B (en) | The method and apparatus of video playing | |
CN109992337A (en) | Webpage methods of exhibiting, device and storage medium | |
CN104123308B (en) | Webpage generating method and auto-building html files device | |
CN104166899B (en) | The method and terminal of voice interface | |
CN103455601A (en) | Webpage processing method and device, and terminal equipment | |
CN105094872B (en) | A kind of method and apparatus showing web application | |
CN104346128B (en) | The execution method and apparatus of sound event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |