Movatterモバイル変換


[0]ホーム

URL:


CN103530160A - Page loading method and device - Google Patents

Page loading method and device
Download PDF

Info

Publication number
CN103530160A
CN103530160ACN201310495965.8ACN201310495965ACN103530160ACN 103530160 ACN103530160 ACN 103530160ACN 201310495965 ACN201310495965 ACN 201310495965ACN 103530160 ACN103530160 ACN 103530160A
Authority
CN
China
Prior art keywords
page
code
current page
functional module
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.)
Pending
Application number
CN201310495965.8A
Other languages
Chinese (zh)
Inventor
朱臣
邓鹏�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co LtdfiledCriticalMaipu Communication Technology Co Ltd
Priority to CN201310495965.8ApriorityCriticalpatent/CN103530160A/en
Publication of CN103530160ApublicationCriticalpatent/CN103530160A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention provides a page loading method and device, and relates to the technical field of networks. The page loading method and device are used for solving the problem that in the prior art, the page loading speed is low due to the fact that interface codes required to be loaded are multiple when pages are loaded is solved. According to the scheme, the page loading method comprises the steps of enabling a terminal to obtain interface codes and service codes of display pages according to received first obtaining commands, loading the interface codes and the service codes of the display pages to display the display pages, obtaining relevance interface codes of a relevance page, saving the relevance interface codes in a local device, enabling the relevance page and the display pages to have a link relationship, enabling the terminal to obtain relevance service codes of the relevance interface according to received second obtaining commands, and enabling the terminal to load the relevance service codes and the relevance interface codes saved in the local device to display the relevance interface. The page loading method and device are applied to page loading display.

Description

The method and apparatus that a kind of page loads
Technical field
The present invention relates to networking technology area, relate in particular to the method and apparatus that a kind of page loads.
Background technology
WEB page loading technique is applied to internet system.Along with the development of WEB page technology, the application based on WEB is more and more, and size of code also increases increasingly.For normal display page, the contents such as the third party library that terminal need to be associated to current page and data code load.Third party library is a kind of for developing the page framework storehouse of Webpage, and data code comprises frame data code and the concrete business datum code that forms page framework.
In current load mode, when user terminal loads the page first, terminal can load the third party library that this page is relevant to web server requests, afterwards relevant page code is loaded, and finally presents the page to user.User can be switched the page when browsing pages, and now, terminal can load the to be switched page according to the mode of load page first, presents the page after switching.
In the process by the way page being loaded, there is following problem.If the third party library that the page of current loading is associated is many, the data code amount that page comprises also can be very large, caused page loading velocity slack-off, if the inadequate resource of network side also can cause the terminal server cannot load page while loading.
Summary of the invention
The method and apparatus that embodiments of the invention provide a kind of page to load, the slow problem of page formation speed that the interface code loading due to needs when solving prior art load page causes more.
For reaching above-mentioned, embodiments of the invention adopt following technical scheme:
The method that the page loads, comprising:
Terminal is obtained instruction according to receive first, obtains interface code and the service code of display page.
Load interface code and the service code of described display page, to show described display interface.
Obtain the associated interface code of the associated page and be kept at this locality; The described associated page and described display page have linking relationship.
Described terminal is obtained instruction according to receive second, obtains the associated services code of the described associated page.
Described in described terminal loads associated services code be kept at local associated interface code, to show described associated interface.
The device that the page loads, comprising:
The first acquiring unit, for obtaining instruction according to receive first, obtains interface code and the service code of display page;
The first loading unit, for loading interface code and the service code of the described display page that described the first acquiring unit obtains, to show described display interface;
Second acquisition unit, for obtaining the associated interface code of the associated page and being kept at this locality; The described associated page and described display page have linking relationship;
The 3rd acquiring unit, for obtaining instruction according to receive second, obtains the associated services code of the described associated page;
The second loading unit, for loading the local associated interface code that is kept at that described associated services code that described second acquisition unit obtains obtains with described the 3rd acquiring unit, to show described associated interface.
The method and apparatus that the embodiment of the present invention provides a kind of page to load, terminal receives after the load instructions of current page, obtains and load the code of current page, and the common framework partial code that obtains the associated page of current page loads; After this when terminal is received the load instructions of administration page, obtain the functional module code of the associated page and load, realizing the demonstration of the associated page.Compared with prior art, when loading the code of current page, obtain in advance and load the common framework partial code of the associated page, thereby when receiving the load instructions of the associated page, show faster the associated page.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the method that a kind of page that Fig. 1 provides for the embodiment of the present invention loads;
The process flow diagram of the method that the another kind of page that Fig. 2 provides for the embodiment of the present invention loads;
The structural representation of the device that a kind of page that Fig. 3 provides for the embodiment of the present invention loads;
The structural representation of the device that the another kind of page that Fig. 4 provides for the embodiment of the present invention loads.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
At present, the mode that terminal loads the page is: receive user's load instructions, according to load instructions, to server request response data, also load, and then show the page that user needs, there will be the data of a large amount of repeatability to load in said process.For this reason, following examples provide the load mode that can avoid occurring a large amount of repeated data loadings, so that data loading efficiency and page formation speed are improved.
Below in conjunction with drawings and Examples, describe above process in detail, and some details descriptions are in order to make those skilled in the art more understand technical scheme, advantage and the effect of the embodiment of the present invention, not in order to limit the present invention below.
As shown in Figure 1, a kind of method that the embodiment of the present invention provides page to load, comprising:
101, when terminal receives the load instructions of the described terminal loads current page of indication, obtain the code of described current page and load, to show described current page.
102, obtain with described current page have linking relationship the associated page common framework partial code and load.
For display page, common framework partial code and functional module code need to be obtained and load to terminal.Terminal receives after the load instructions that indication loads current page, obtains the code of described current page and loads on the one hand, also obtain on the other hand with current page have linking relationship the associated page common framework partial code and load.By obtaining in advance and the common framework partial code that loads the associated page, when the associated page of follow-up demonstration, needn't remove again to load this part common framework partial code, but thereby the functional module code that directly loads the associated page is realized the normal demonstration of the associated page, improved the speed that the page shows.
103, when described in terminal receives the described terminal loads of indication during the load instructions of the associated page, obtain the functional module code of the described associated page.
104, the functional module code of the associated page described in described terminal loads, to coordinate the common framework partial code of the described associated page having loaded to show the described associated page.
Instep 102, terminal has loaded the common framework partial code of the associated page, and the functional module code of the associated page ofstep 104 terminal loads, can show the whole associated page to user thus normally.
According to such scheme, describe, a kind of method that the embodiment of the present invention provides page to load, terminal receives after the load instructions of current page, obtains and load the code of current page, and the common framework partial code that obtains the associated page of current page loads; After this when terminal is received the load instructions of administration page, obtain the functional module code of the associated page and load, realizing the demonstration of the associated page.Compared with prior art, when loading the code of current page, obtain in advance and load the common framework partial code of the associated page, thereby when receiving the load instructions of the associated page, show faster the associated page.
Scheme for a better understanding of the present invention, existing describes according to above, in conjunction with the following drawings and embodiment the present invention program is further described.
As shown in Figure 2, a kind of method that the embodiment of the present invention provides page to load, comprising:
201, terminal receives load instructions.
User controls terminal, sends the load instructions that loads current page to terminal.Described terminal can be specifically desktop computer, notebook computer, the equipment that smart mobile phone etc. are Internet enabled.
202, terminal is obtained common framework partial code and the functional module code of current page.
In the embodiment scene shown in Fig. 2, the first page that described current page is terminal loads.When terminal does not have in pre-stored any page correlative code situation in this locality, terminal need to load common framework partial code and the functional module code of current page.
203, load common framework partial code and the functional module code of current page.
204, obtain the common framework partial code with current page with the associated page of linking relationship.
205, load the common framework partial code of the associated page.
In terminal, receive after load instructions, obtain and load on the one hand common framework partial code and the functional module code of current page.On the other hand, also obtain and loading and current page have the common framework partial code of the associated page of linking relationship.
206, show current page.
207, terminal receives load instructions.
The load instructions ofstep 207 is indicated the associated page described in described terminal loads.
208, obtain the functional module code of the associated page.
Becauseabovementioned steps 205 has loaded the common framework partial code of the associated page, sostep 208 is only obtained the functional module code of the associated page.
In practical operation, when user wishes to browse certain webpage, to terminal, send user operation (such as mouse clickable icon, or touch operation icon).User operation is converted to load instructions and is received by terminal, through above-mentioned 202 to 206, finally shows that user wishes the page of browsing.
209, the functional module code of the associated page described in terminal loads.
210, show the associated page.
User, when browsing current page, may open by the icon on the click page the associated page of current page.The common framework partial code of the associated page is loaded, and now terminal is only obtained the functional module code of the associated page and loaded, and then shows the associated page.
The first page that the current page that Fig. 2 describes is terminal loads.In more general situation, if current page is not the first page (being assumed to be the K page) of terminal loads, the common framework partial code of the K page is acquired and loads when loading the K-1 page, when receiving the load instructions that loads the K page, the functional module code of the K page is obtained and loaded to terminal on the one hand, thereby can show the K page, the common framework code of the K+1 page will be obtained and load to terminal also on the other hand, to prepare for subsequent user may require to show the K+1 page.
In addition, terminal records the URL(uniform resource locator) (URL, Uniform Resource Locator) of the current page showing.By URL coding is obtained to page iden-tity, and store this page iden-tity.
In the specific implementation of such scheme, terminal can create a manager process, and at least two embedded frameworks are set in manager process, referred to herein as Iframe1 and Iframe2, for loading code and logic, and generates display interface.If terminal is received load instructions, suppose all loading code not of Iframe1 and Iframe2, be now first load page.An optional embedded framework (selecting Iframe1) loads current page and is shown to user, and Iframe2 loads the common framework partial code of the associated page of current page simultaneously.If receive that afterwards another load instructions requires to load the associated page, call Iframe2 and load the functional module code of another page and show the associated page, hide the page that Iframe1 loads simultaneously.
A kind of method that the embodiment of the present invention provides the page to load, terminal receives after the load instructions of current page, obtains and load the code of current page, and the common framework partial code that obtains the associated page of current page loads; After this when terminal is received the load instructions of administration page, obtain the functional module code of the associated page and load, realizing the demonstration of the associated page.Compared with prior art, when loading the code of current page, obtain in advance and load the common framework partial code of the associated page, thereby when receiving the load instructions of the associated page, show faster the associated page.
The device that the embodiment of the present invention also provides a kind of page to load, as shown in Figure 3, comprising:
The first acquiringunit 31, when receiving the load instructions of the described terminal loads current page of indication when terminal, obtains the code of described current page.
Thefirst loading unit 32, for loading the code of described current page, to show described current page.
The first acquiringunit 31 is also for obtaining the common framework partial code with described current page with the associated page of linking relationship.
Thefirst loading unit 32 is also for loading the common framework partial code with described current page with the associated page of linking relationship.
Second acquisition unit 33, when receiving described in the described terminal loads of indication the load instructions of the associated page when terminal, obtains the functional module code of the described associated page.
Thesecond loading unit 34, for loading the functional module code of the described associated page, to coordinate the common framework partial code of the described associated page that described thefirst loading unit 32 loaded to show the described associated page.
Further, if during the first page that current page is terminal loads, the first acquiringunit 31 is specifically for obtaining common framework partial code and the functional module code of current page;
Thefirst loading unit 32 is specifically for loading common framework partial code and the functional module code of current page.
If during the K page that current page is terminal loads, the first acquiringunit 31 is specifically for obtaining the functional module code of the described K page;
Thefirst loading unit 32 is specifically for loading the functional module code of the described K page; K wherein > 1, the common framework partial code of the described K page loads when the described terminal loads K-1 page.
Further, as shown in Figure 4, this device also comprises:
Record cell 35, for recording the URL of the page of current demonstration.
Coding unit 36, encodes for the URL to described recording unit records, obtains page iden-tity.
Signstorage unit 37, the described page iden-tity obtaining for storing described coding unit.
Further, the first acquiringunit 31 is specifically for obtaining the code of current page from server.Described the first acquiringunit 31 is concrete also for obtain the common framework partial code with described current page with the associated page of linking relationship from server.Describedsecond acquisition unit 33 is specifically for obtaining the functional module code of the described associated page from server.
The device that the embodiment of the present invention provides a kind of page to load, terminal receives after the load instructions of current page, obtains and load the code of current page, and the common framework partial code that obtains the associated page of current page loads; After this when terminal is received the load instructions of administration page, obtain the functional module code of the associated page and load, realizing the demonstration of the associated page.Compared with prior art, when loading the code of current page, obtain in advance and load the common framework partial code of the associated page, thereby when receiving the load instructions of the associated page, show faster the associated page.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection domain with claim.

Claims (10)

CN201310495965.8A2013-10-212013-10-21Page loading method and devicePendingCN103530160A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310495965.8ACN103530160A (en)2013-10-212013-10-21Page loading method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310495965.8ACN103530160A (en)2013-10-212013-10-21Page loading method and device

Publications (1)

Publication NumberPublication Date
CN103530160Atrue CN103530160A (en)2014-01-22

Family

ID=49932200

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310495965.8APendingCN103530160A (en)2013-10-212013-10-21Page loading method and device

Country Status (1)

CountryLink
CN (1)CN103530160A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104267989A (en)*2014-09-262015-01-07可牛网络技术(北京)有限公司Updating method and device of browser home page
WO2016095733A1 (en)*2014-12-162016-06-23北京京东尚科信息技术有限公司Network data display processing method and device
CN105989091A (en)*2015-02-122016-10-05阿里巴巴集团控股有限公司JS (JavaScript) file loading method, device and system used for page display
CN106325874A (en)*2016-08-272017-01-11乐视控股(北京)有限公司Acquisition method and device of interface to be displayed and electronic equipment
CN106406846A (en)*2015-08-032017-02-15腾讯科技(深圳)有限公司A display interface creating method and device
CN106528587A (en)*2016-09-122017-03-22腾讯科技(深圳)有限公司Page display method and apparatus in composite webpage system
CN106569900A (en)*2016-10-282017-04-19腾讯科技(深圳)有限公司Application processing method and device
WO2017152752A1 (en)*2016-03-072017-09-14阿里巴巴集团控股有限公司Resource loading method, and service function implementing method and device for application (app)
CN108108205A (en)*2016-11-252018-06-01腾讯科技(深圳)有限公司Application page surface treatment method and apparatus
CN108427731A (en)*2018-02-262018-08-21平安普惠企业管理有限公司Processing method, device, terminal device and the medium of page code
CN109740085A (en)*2019-01-102019-05-10北京字节跳动网络技术有限公司A kind of methods of exhibiting of content of pages, device, equipment and storage medium
WO2019228090A1 (en)*2018-05-302019-12-05中兴通讯股份有限公司Method and apparatus for accelerating application interface loading
CN110716764A (en)*2019-09-092020-01-21深圳壹账通智能科技有限公司 Public configuration sharing method, apparatus, computer equipment and storage medium
CN111314454A (en)*2020-02-122020-06-19深圳市信锐网科技术有限公司Application access method and device, electronic equipment and storage medium
CN113553522A (en)*2020-04-242021-10-26北京金山云网络技术有限公司Page display method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040199603A1 (en)*2001-07-092004-10-07Sivan TaflaMethod and system for allowing cross-communication between first and second areas of a primary web page
CN1635734A (en)*2003-12-292005-07-06北京中视联数字系统有限公司A method for receiving network pages by using buffer in digital television data broadcasting system
CN102033935A (en)*2010-12-202011-04-27深圳市五巨科技有限公司Preloading method, preloading device and preloading system of mobile terminal browser
CN102446222A (en)*2011-12-222012-05-09华为技术有限公司 A web page content preloading method, device and system
CN102622376A (en)*2011-01-282012-08-01北京千橡网景科技发展有限公司Method and equipment used for merging cascading style sheet files
CN103118007A (en)*2013-01-062013-05-22瑞斯康达科技发展股份有限公司Method and system of acquiring user access behavior

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040199603A1 (en)*2001-07-092004-10-07Sivan TaflaMethod and system for allowing cross-communication between first and second areas of a primary web page
CN1635734A (en)*2003-12-292005-07-06北京中视联数字系统有限公司A method for receiving network pages by using buffer in digital television data broadcasting system
CN102033935A (en)*2010-12-202011-04-27深圳市五巨科技有限公司Preloading method, preloading device and preloading system of mobile terminal browser
CN102622376A (en)*2011-01-282012-08-01北京千橡网景科技发展有限公司Method and equipment used for merging cascading style sheet files
CN102446222A (en)*2011-12-222012-05-09华为技术有限公司 A web page content preloading method, device and system
CN103118007A (en)*2013-01-062013-05-22瑞斯康达科技发展股份有限公司Method and system of acquiring user access behavior

Cited By (27)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104267989A (en)*2014-09-262015-01-07可牛网络技术(北京)有限公司Updating method and device of browser home page
WO2016095733A1 (en)*2014-12-162016-06-23北京京东尚科信息技术有限公司Network data display processing method and device
US10831853B2 (en)2014-12-162020-11-10Beijing Jingdong Shangke Information Technology Co., Ltd.Method and device for exhibition process of network data
CN105989091A (en)*2015-02-122016-10-05阿里巴巴集团控股有限公司JS (JavaScript) file loading method, device and system used for page display
CN105989091B (en)*2015-02-122019-12-24阿里巴巴集团控股有限公司JS file loading method, device and system for page display
CN106406846A (en)*2015-08-032017-02-15腾讯科技(深圳)有限公司A display interface creating method and device
CN106406846B (en)*2015-08-032020-02-07腾讯科技(深圳)有限公司Display interface creating method and device
WO2017152752A1 (en)*2016-03-072017-09-14阿里巴巴集团控股有限公司Resource loading method, and service function implementing method and device for application (app)
CN107172110A (en)*2016-03-072017-09-15阿里巴巴集团控股有限公司A kind of application APP resource loading method, business function implementation method and device
US11693704B2 (en)2016-03-072023-07-04Advanced New Technologies Co., Ltd.Resource loading and a service function for a software application
US11249806B2 (en)2016-03-072022-02-15Advanced New Technologies Co., Ltd.Resource loading and a service function for a software application
US11132232B2 (en)2016-03-072021-09-28Advanced New Technologies Co., Ltd.Resource loading and a service function for a software application
TWI726976B (en)*2016-03-072021-05-11開曼群島商創新先進技術有限公司 Resource loading method, business function realization method and device using AP
CN106325874A (en)*2016-08-272017-01-11乐视控股(北京)有限公司Acquisition method and device of interface to be displayed and electronic equipment
CN106528587A (en)*2016-09-122017-03-22腾讯科技(深圳)有限公司Page display method and apparatus in composite webpage system
CN106528587B (en)*2016-09-122020-12-08腾讯科技(深圳)有限公司Page display method and device in composite webpage system
CN106569900A (en)*2016-10-282017-04-19腾讯科技(深圳)有限公司Application processing method and device
CN106569900B (en)*2016-10-282019-08-23腾讯科技(深圳)有限公司Applied program processing method and device
CN108108205B (en)*2016-11-252019-07-05腾讯科技(深圳)有限公司Application page surface treatment method and apparatus
US11119812B2 (en)2016-11-252021-09-14Tencent Technology (Shenzhen) Company LimitedMethod and device for processing application program page according to a common interface container
CN108108205A (en)*2016-11-252018-06-01腾讯科技(深圳)有限公司Application page surface treatment method and apparatus
CN108427731A (en)*2018-02-262018-08-21平安普惠企业管理有限公司Processing method, device, terminal device and the medium of page code
WO2019228090A1 (en)*2018-05-302019-12-05中兴通讯股份有限公司Method and apparatus for accelerating application interface loading
CN109740085A (en)*2019-01-102019-05-10北京字节跳动网络技术有限公司A kind of methods of exhibiting of content of pages, device, equipment and storage medium
CN110716764A (en)*2019-09-092020-01-21深圳壹账通智能科技有限公司 Public configuration sharing method, apparatus, computer equipment and storage medium
CN111314454A (en)*2020-02-122020-06-19深圳市信锐网科技术有限公司Application access method and device, electronic equipment and storage medium
CN113553522A (en)*2020-04-242021-10-26北京金山云网络技术有限公司Page display method and device, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN103530160A (en)Page loading method and device
US20120317172A1 (en)Mobile web app infrastructure
CA3058070A1 (en)Page switching method and device, electronic device and storage medium
CN103916373A (en)Data updating method, server, client side and system
CN103631958A (en)Method for multi-screen content display in automatic page matching mode
WO2017211190A1 (en)Data processing method and device
US11080322B2 (en)Search methods, servers, and systems
CN104113567A (en)Content distribution network data processing method, device and system
CN107329785A (en)A kind of method and system of dynamic load JavaScript modules
CN104268229A (en)Resource obtaining method and device based on multi-process browser
CN112214250B (en)Application program component loading method and device
CN103699635A (en)Information processing method and device
CN107798064A (en)Page processing method, electronic equipment and computer-readable recording medium
CN110020242A (en)A kind of document reading progress synchronous method and device based on Web
US11477158B2 (en)Method and apparatus for advertisement anti-blocking
CN111783010B (en)Webpage blank page monitoring method, device, terminal and storage medium
CN103473035A (en)Screen capturing method and device
CN111723309B (en)Method and device for web page searching
CN102646054A (en)Terminal assembly management method and terminal
CN110020320A (en)The method and apparatus for caching page pictures
CN103368907A (en)Event report request system, method thereof, client device and report request method thereof
CN105025367A (en) A page loading method based on digital set-top box
US20160224553A1 (en)Search methods and terminals
CN104156372B (en)A kind of methods, devices and systems for opening webpage
US20140331117A1 (en)Application-based dependency graph

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20140122


[8]ページ先頭

©2009-2025 Movatter.jp