CN103530292B - Webpage display process and device - Google Patents

Webpage display process and device Download PDF

Info

Publication number
CN103530292B
CN103530292B CN201210228189.0A CN201210228189A CN103530292B CN 103530292 B CN103530292 B CN 103530292B CN 201210228189 A CN201210228189 A CN 201210228189A CN 103530292 B CN103530292 B CN 103530292B
Authority
CN
China
Prior art keywords
instruction
user
access instruction
historical access
current
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
Application number
CN201210228189.0A
Other languages
Chinese (zh)
Other versions
CN103530292A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210228189.0A priority Critical patent/CN103530292B/en
Publication of CN103530292A publication Critical patent/CN103530292A/en
Priority to HK14106709.3A priority patent/HK1193206A1/en
Application granted granted Critical
Publication of CN103530292B publication Critical patent/CN103530292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

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 application discloses a kind of Webpage display process and device, and wherein, the method comprises: the current accessed instruction of recording user on current web page; Instruction by current accessed instruction and user in the historical access instruction on current web page compares; If the instruction in current accessed instruction and historical access instruction matches, the function file that the subsequent access instruction of the instruction of mating with current accessed instruction in loading history access instruction is corresponding; In the time receiving subsequent access instruction, Presentation Function file on current web page. The application has solved that prior art needs all functions file of prestrain webpage and the excessive technical problem of load of the prestrain that causes has reached the technique effect that reduces prestrain load and improve resource utilization.

Description

Webpage display process and device
Technical field
The application relates to internet arena, in particular to a kind of Webpage display process and device.
Background technology
One has the html Webpage of complex interaction, generally can have a large amount of javascript codes, and these codes generally allThereby each function on webpage can be merged into a Webpage of a file composition with a large amount of document forms. For example: hundredDegree map (being merged into a js file), *** map (being divided into multiple js files by function).
In the technology showing at existing front end, adopting maximum is to realize adding of webpage correlation function by javascript languageCarry. For example, present most implementation all adopt onmousedown(mouse slide) or onclick(click) etc. useThe event that householder's movable contact is sent out decides carries out the operation of current web page being carried out to which kind of loading and demonstration, that is, the event that arranges catches to be usedFamily onmousedown or click event are to carry out demonstration or the loading of function file. At present, for various types of webpages,In just opening the page, generally the function on the page all need to be loaded to show, but have many times userDo not need to show these functions, resource is not effectively utilized, and causes webpage loading velocity slow. For example:
Sight 1, describes as an example of the map page example, generally has the selection of regional information on the map page, the side that this function realizesFormula is generally in the time that user's mouse is clicked or slipped over the address of a province, can show immediately this province corresponding each city on the pageList select for user. The realization of this mode has been the generally pre-loaded repertoire file of this function,Therefore when can triggering it during to corresponding position, user's rolling mouse shows. By above-mentioned this mode, the page is needed pre-First record a large amount of function files, thereby make the load of webpage buffer memory larger.
Sight 2., describes browsing as example of webpage taking user, in the time that user opens current web page, will add in advanceCarry all function files on this webpage. But, there is many times user not need to show these functions, or userBefore only browsing in stopping on current page, 1/2 the page will leave this page, and does not need to show this page belowThe page, loads in this case a complete page and there is no need.
For the problems referred to above, effective solution is not yet proposed.
Summary of the invention
The application provides a kind of Webpage display process and device, needs all of prestrain webpage at least to solve in prior artFunction file and the excessive technical problem of load of the prestrain that causes.
According to the application aspect, a kind of Webpage display process is provided, comprising: recording user working as on current web pageFront access instruction; Instruction by current accessed instruction and user in the historical access instruction on current web page compares; IfInstruction in current accessed instruction and historical access instruction matches, and in loading history access instruction, mates with current accessed instructionThe function file corresponding to subsequent access instruction of instruction; In the time receiving subsequent access instruction, Presentation Function on current web pageFile.
The function corresponding to subsequent access instruction of the instruction of preferably, mating with current accessed instruction in loading history access instructionAfter file, said method also comprises: if after the scheduled time, do not receive subsequent access instruction, deletion loadsThe function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction in historical access instruction, and discharge storage meritThe memory space of energy file.
The function literary composition corresponding to subsequent access instruction of the instruction of preferably, mating with current accessed instruction in loading history access instructionThe step of part comprises: in the time that the quantity of the instruction in the historical access instruction mating with current accessed instruction is greater than predetermined threshold,Load all function files that do not show in current page.
Preferably, before the instruction in the historical access instruction on current web page by current accessed instruction and user compares,Said method also comprises: generate in such a way the historical access instruction of this user on current web page: obtain user at webpageOn historical access log; From the historical access instruction of determining this user record of browsing of historical access log; By this user'sHistorical access instruction is stored in database according to the sequencing of carrying out.
Preferably, the step that the instruction in the historical access instruction on current web page compares by current accessed instruction and userComprise: judge whether identical with current accessed instruction of execution sequence between instruction and the instruction in historical access instruction; AsFruit is identical, determines that the current access instruction of user and user's historical access instruction match.
Preferably, function file is the front end js code file that subsequent action is corresponding.
According to the application aspect, a kind of Web page display apparatus is provided, comprising: record cell, exists for recording userCurrent accessed instruction on current web page; Comparing unit, for the history visit on current web page by current accessed instruction and userAsk that the instruction in instruction compares; Loading unit, for matching when the instruction of current accessed instruction and historical access instructionTime, the function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction in loading history access instruction; ShowUnit, in the time receiving subsequent access instruction, Presentation Function file on current web page.
Preferably, said apparatus also comprises: releasing unit, for after the scheduled time, do not receive subsequent access instruction,Delete the function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction in the historical access instruction loading, andDischarge the memory space of memory function file.
Preferably, loading unit comprises: load-on module, and for the finger when the historical access instruction mating with current accessed instructionWhen the quantity of order is greater than predetermined threshold, load all function files that do not show in current page.
Preferably, said apparatus also comprises: acquiring unit, for obtaining the historical access log of user on webpage; Determine singleUnit, for the historical access instruction of browsing definite this user of record from historical access log; Memory cell, for by this useThe historical access instruction at family is stored in database according to the sequencing of carrying out.
In this application, determine the content corresponding to this user's prestrain by user's historical access instruction, and do not needAll functions file in prestrain current web page, thus all functions file that needs prestrain webpage in prior art solvedAnd the excessive technical problem of the load of the prestrain causing has reached the technology effect that reduces prestrain load and improve resource utilizationReally.
Brief description of the drawings
Accompanying drawing described herein is used to provide further understanding of the present application, forms the application's a part, and the application showsMeaning property embodiment and explanation thereof are used for explaining the application, do not form the improper restriction to the application. In the accompanying drawings:
Fig. 1 is a kind of preferred structure block diagram according to the webpage display system of the embodiment of the present application;
Fig. 2 is a kind of preferred structure block diagram according to the Web page display apparatus of the embodiment of the present application;
Fig. 3 is the another kind of preferred structure block diagram according to the Web page display apparatus of the embodiment of the present application;
Fig. 4 is another the preferred structure block diagram according to the Web page display apparatus of the embodiment of the present application;
Fig. 5 is a kind of preferred flow charts according to the Webpage display process of the embodiment of the present application;
Fig. 6 is the another kind of preferred flow charts according to the Webpage display process of the embodiment of the present application;
Fig. 7 is another preferred flow charts according to the Webpage display process of the embodiment of the present application.
Detailed description of the invention
Hereinafter also describe the application in detail with reference to accompanying drawing in conjunction with the embodiments. It should be noted that, in the situation that not conflicting,Feature in embodiment and embodiment in the application can combine mutually.
Before the further details of each embodiment of describing the application, describe and can be used for realizing the former of the application with reference to Fig. 1A suitable counting system structure of reason. In the following description, except as otherwise noted, otherwise with reference to by one or more metersThe action that calculation machine is carried out and the symbol of operation represent to describe each embodiment of the application. Thus, be appreciated that sometimes and be called asThe processing unit that this class action that computer is carried out and operation comprise computer is to representing the behaviour of the signal of telecommunication of data with structured formVertical. This manipulation transforms data or the position in the accumulator system of computer, this all understands with those skilled in the artMode reshuffle or changed the operation of computer. The data structure of service data is that to have the form of data defined specificThe physical location of the memory of attribute. But although describe the application in above-mentioned context, it does not also mean that restricted, as understood by those skilled in the art, the each side of hereinafter described action and operation also available hardware realizes.
Turn to accompanying drawing, wherein identical Reference numeral refers to identical element, and the application's principle is shown in a suitable meterCalculate in environment and realize. Below describe the embodiment of the application based on described, and should not think about clearly do not describe hereinAlternative embodiment and limit the application.
Fig. 1 shows the schematic diagram of an example computer architecture that can be used for these equipment. For purposes of illustration, instituteThe architecture of painting is only an example of proper environment, and not the scope of application or the function to the application proposes any limitation. AlsoThis computing system should be interpreted as to the arbitrary assembly shown in Fig. 1 or its combination are had to any dependence or demand.
The application's principle can or configure with other universal or special calculating or communication environment and operate. Be applicable to the application'sThe example of well-known computing system, environment and configuration includes but not limited to, personal computer, server, multiprocessor systemSystem, system, minicomputer, mainframe computer based on micro-processing and comprise the Distributed Calculation of arbitrary said system or equipmentEnvironment.
In its most basic configuration, the webpage display system 100 in Fig. 1 at least comprises: the server 102 of a website withAnd one or more clients 104. Server 102 can include but not limited to Micro-processor MCV or PLDThe treating apparatus of FPGA etc., for storing the storage device of data and the transmitting device with client communication; Client 104 canTo comprise: Micro-processor MCV, with the transmitting device of server communication, with the display unit of user interactions. At this description andAny hardware group that in claims, " system " also can be defined as can executive software, firmware or microcode carry out practical functionThe combination webpage display system 100 of part or nextport hardware component NextPort can be even distributed, to realize distributed function.
As used in this application, term " module ", " assembly " or " unit " can refer to hold on webpage display system 100Software object or the routine of row. Different assembly described herein, module, unit, engine and service can be implemented as at webpageIn display system 100, carry out object or the process of (for example,, as independent thread). Although system described herein and sideMethod preferably realizes with software, but the realization of the combination of hardware or software and hardware also may and be conceived.
Embodiment 1
Fig. 2 is according to the preferred structural representation of the one of the embodiment of the present application Web page display apparatus, preferred, in the present embodimentSystem be positioned on server 102 or in client 104.
Preferably, Web page display apparatus 200 as shown in Figure 2 can comprise:
1) record cell 202, the current accessed instruction for recording user on current web page; For example, obtain user currentThe click of mouse or the slide of mouse on webpage, or touch panel device user's finger touch or slide etc.,And these are operated to corresponding instruction carry out record.
2) comparing unit 204, enters for the instruction of the historical access instruction on current web page by current accessed instruction and userRow relatively;
Obtain the historical access instruction of this user on this page, the namely operation on this webpage before user, thus canTo determine that this user may need the content loading, the finiteness of considering the load of server at this webpage, user's history is visitedAsk in the local memory cell that instruction can be stored in this user terminal that (do not get rid of can be by user's history for the embodiment of the present application certainlyAccess instruction is stored in the scheme of server end), in the time browsing to this page, obtain the historical access instruction of its correspondence from subscriber's localRecord. Preferably, user's historical access instruction can be stored according to predetermined rule one rule so that storage andFollow-up comparison match.
3) loading unit 206, in the time that the instruction of current accessed instruction and historical access instruction matches, loading history is visitedAsk the function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction in instruction;
When the user of record some on this page or instruction action that some is historical current access instruction and this userAfter joining, that is, the instruction of current record just can be true in the time that the content of carrying out DISPLAY ORDER or execution is identical with historical instructionSurely match corresponding instruction, now just can determine the content that needs prestrain according to user's history access record, wherein,Subsequent access instruction is exactly the follow-up action executing on current web page before this user after the above-mentioned action matching.
For example, this user is after the current content of having browsed on webpage, and down sliding mouse, shows that user wishes to browse this pageFace is positioned at the content of below, so just can load the content of this webpage below in advance. Or, for similar map thisPlant the more page of expanded function, the order of clicking in historical record as user is first to have put " municipality directly under the Central Government ", has selected again " northCapital ", click so after " municipality directly under the Central Government " user and historical record of this user has matched, just can determine that user is follow-up canCan select " Beijing " in concrete municipality directly under the Central Government's information, this is the phase of prestrain on the map page in advance " Beijing " justClose the function file of map function, and do not need the information of all provinces and cities all to carry out prestrain.
4) display unit 208 in the time receiving subsequent access instruction, shows corresponding function file on current web page.
In the time that the follow-up access of user matches with historical access really, just can directly the function file of prestrain be carried outShown, for example, user is by mouse down sliding really, and can be directly by the merit of the page of pre-loaded subsequent web pagesCan file show, if or user really selecting to have selected Beijing after municipality directly under the Central Government, just can be directly on the page in advanceThe Pekinese's cartographic information loading shows.
The present embodiment loading unit 206 and display unit 208 also can be in the time of a certain webpages of user's initial access, according to website serviceThe default loading rule of device loads partial content or the function in this webpage and shows, for example: when user is by the address of browserThe reference address of a certain webpage is inputted and while initiating request of access in hurdle, the loading rule that loading unit 206 is default according to Website serverOnly load partial content or function in this webpage, and do not load full content or the function in this webpage, and by showingUnit 208 shows corresponding content. Wherein, in Website server default loading rule can be only load user access essentialBasic function.
In this preferred embodiment, determine the content corresponding to this user's prestrain by user's historical access instruction,And do not need all functions file in prestrain current web page, in prior art, need all of prestrain webpage thereby solvedFunction file and the excessive technical problem of load of the prestrain that causes has reached minimizing prestrain load and improved resource utilizationTechnique effect.
Consider that custom that user may be in this browsing page is with historical different, that is, user is browsing histories no longerFollow-up webpage in access instruction, in this case, for the more effective cache resources that utilizes, can set a prestrainThe expired treatment mechanism of buffer memory of content, for example, if set after 5 minutes user not yet according to the history access record matching andSubsequent instructions operates, and the content of prestrain in buffer memory can be deleted, to reduce the burden of buffer memory. Preferably implement at oneIn mode, said apparatus also comprises: releasing unit, for after the scheduled time, do not receive subsequent access instruction, and deleteExcept function file corresponding to the subsequent access instruction of the instruction of mating with current accessed instruction in the historical access instruction loading, and releasePut the memory space of memory function file.
Some webpage possibility user is many at the historical access instruction of this webpage, and the each function user of possibility is in history access recordIn all used, or this user of all the elements of this webpage browsed, and just could like this in the time adopting the mode of coupling prestrainMatching a lot of subsequent operation instructions, under the circumstances, can be the threshold value that each coupling configures a matching result,If just show function file or web page contents in this webpage when the number of results matching is greater than this threshold value, this user is follow-upAll likely browse, in this case, just can no longer mate, be direct this webpage of prestrain all functions file withAnd corresponding web page contents. In a preferred embodiment, loading unit comprises: load-on module, and for working as and current visitWhen the quantity of asking the instruction in the historical access instruction of instruction coupling is greater than predetermined threshold, loads and allly in current page do not showFunction file.
Preferably, for obtaining of above-mentioned historical access instruction, can be to obtain from this user's historical access log,The file of the historical operation instruction that so-called historical access log is recording user. In a preferred embodiment, as Fig. 3 instituteShow, said apparatus also comprises:
Acquiring unit 302, for obtaining the historical access log of user on webpage;
Determining unit 304, for the historical access instruction of browsing definite this user of record from historical access log;
Memory cell 306, for being stored in database by this user's historical access instruction according to the sequencing of carrying out.
For example, whole this access log is extracted, can obtain a lot of this detailed user's access sequence information, underFace represents that with offerResult.xhtml user A has carried out product search, and companyResult.xhtml represents that user has carried out companySearch, after offerDetail.xhtml is illustrated in above-mentioned two steps, user has carried out the details that clicking operation is checked product.
Browsing of this user A recorded to list and be saved in database tableA table by priority sequence, can be according to following content formatStore:
id userid action time
1 A offerResult 11/Apr/2012:00:10:32
2 A companyResult 11/Apr/2012:00:10:33
3 A companyResult 11/Apr/2012:00:10:35
4 A offerResult 11/Apr/2012:00:10:35
5 A offerDetail 11/Apr/2012:00:10:35
That is, carry out record according to the time of carrying out in historical operation instruction and action, so that coupling.
In a preferred embodiment, as shown in Figure 4, comparing unit comprises: determination module 402, and for determining the use of storageAnd between current access instruction and instruction whether the sequencing of carrying out between the historical access instruction at family and instruction, carry outSequencing identical; Matching module 404, for when determining when identical, determines access instruction that user is current and user's historyAccess instruction matches. That is, determine in historical access instruction, whether there be the instruction identical with current access instruction, and judgement refers toThe sequencing of carrying out between order, if had, by the follow-up finger of the access instruction mating with it in the historical access instruction of couplingMake as the follow-up operation that may carry out of user, thereby load corresponding file.
For example, after the data in user's historical access instruction are processed according to the form of above-mentioned sequence, be extracted into oneLine command form, forms function generation of party A-subscriber pre-loaded offerDetail after offerResult and companyResultCode, form can be: AofferResult, companyResult, offerDetail; The data of this form are saved in to dataIn the tableB table in storehouse, wherein A represents user id, unique value that can identifying user, offerResult, companyResulRepresent the sequencing of operation behavior, in front end code script name or front end script that offerDetail represents carry outHold.
Preferably, can be also rule of thumb or the artificial input of demand for user's historical access instruction, and do not need byHistorical access instruction according to user is determined.
Embodiment 2
On the basis of the system shown in Fig. 2-Fig. 4, the application provides a kind of preferred Webpage display process. As shown in Figure 5,The method can comprise the steps:
Step S502: the current accessed instruction of recording user on current web page; For example, obtain user's mouse on current web pageClick or the slide of mouse, or touch panel device user's finger touch or slide etc., and to these behaviourDo corresponding instruction and carry out record.
Step S504: the instruction by current accessed instruction and user in the historical access instruction on current web page compares;
Obtain the historical access instruction of this user on this page, the namely operation on this webpage before user, thus canTo determine that this user may need the content loading, the finiteness of considering the load of server at this webpage, user's history is visitedAsk in the local memory cell that instruction can be stored in this user terminal that (do not get rid of can be by user's history for the embodiment of the present application certainlyAccess instruction is stored in the scheme of server end), in the time browsing to this page, obtain the historical access instruction of its correspondence from subscriber's localRecord. Preferably, user's historical access instruction can be stored according to predetermined rule one rule so that storage andFollow-up comparison match.
Step S506: if the instruction in current accessed instruction and historical access instruction matches, in loading history access instructionThe function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction;
When the user of record some on this page or instruction action that some is historical current access instruction and this userAfter joining, that is, the instruction of current record just can be true in the time that the content of carrying out DISPLAY ORDER or execution is identical with historical instructionSurely match corresponding instruction, now just can determine the content that needs prestrain according to user's history access record, wherein,Subsequent access instruction is exactly the follow-up action executing on current web page before this user after the above-mentioned action matching.
For example, this user is after the current content of having browsed on webpage, and down sliding mouse, shows that user wishes to browse this pageFace is positioned at the content of below, so just can load the content of this webpage below in advance. Or, for similar map thisPlant the more page of expanded function, the order of clicking in historical record as user is first to have put " municipality directly under the Central Government ", has selected again " northCapital ", click so after " municipality directly under the Central Government " user and historical record of this user has matched, just can determine that user is follow-up canCan select " Beijing " in concrete municipality directly under the Central Government's information, this is the phase of prestrain on the map page in advance " Beijing " justClose the function file of map function, and do not need the information of all provinces and cities all to carry out prestrain.
Step S508: in the time receiving subsequent access instruction, show corresponding function file on current web page.
In the time that the follow-up access of user matches with historical access really, just can directly the function file of prestrain be carried outShown, that is, user is by mouse down sliding really, and can be directly by the function of the page of pre-loaded subsequent web pagesFile shows, if or user really selecting to have selected Beijing after municipality directly under the Central Government, just can be directly on the page to adding in advanceThe Pekinese's cartographic information carrying shows.
The present embodiment, in the time of a certain webpage of user's initial access, loads in this webpage according to the default loading rule of Website serverPartial content or function demonstration, for example: when the reference address that user inputs a certain webpage by the address field of browser is initiatedWhen request of access, only load and show partial content or the function in this webpage according to the default loading rule of Website server, andDo not load full content or function in this webpage. Wherein, in Website server, default loading rule can be only to load useEssential basic function is accessed at family.
In this preferred embodiment, determine the content corresponding to this user's prestrain by user's historical access instruction,And do not need all functions file in prestrain current web page, in prior art, need all of prestrain webpage thereby solvedFunction file and the excessive technical problem of load of the prestrain that causes has reached minimizing prestrain load and improved resource utilizationTechnique effect.
Consider that custom that user may be in this browsing page is with historical different, that is, user is browsing histories no longerFollow-up webpage in access instruction, in this case, for the more effective cache resources that utilizes, can set a prestrainThe expired treatment mechanism of buffer memory of content, for example, if set after 5 minutes user not yet according to the history access record matching andSubsequent instructions operates, and the content of prestrain in buffer memory can be deleted, to reduce the burden of buffer memory. Preferably implement at oneIn mode, the function file that the subsequent access instruction of the instruction of mating with current accessed instruction in loading history access instruction is correspondingAfterwards, said method also comprises: if after the scheduled time, do not receive subsequent access instruction, discharge historical access and refer toThe function file corresponding to subsequent access instruction of the instruction of mating with current accessed instruction in order.
Some webpage possibility user is many at the historical access instruction of this webpage, and the each function user of possibility is in history access recordIn all used, or this user of all the elements of this webpage browsed, and just could like this in the time adopting the mode of coupling prestrainMatching a lot of subsequent operation instructions, under the circumstances, can be the threshold value that each coupling configures a matching result,If just show function file or web page contents in this webpage when the number of results matching is greater than this threshold value, this user is follow-upAll likely browse, in this case, just can no longer mate, be direct this webpage of prestrain all functions file withAnd corresponding web page contents. In a preferred embodiment, the step of the current accessed action of recording user on current web pageSuddenly comprise: in the time that the instruction number of the instruction in the historical access instruction mating with current accessed instruction is greater than predetermined threshold, addCarry all function files that do not show in current page.
Preferably, for obtaining of above-mentioned historical access instruction, can be to obtain from this user's historical access log,The file of the historical operation instruction that so-called historical access log is recording user. In a preferred embodiment, as Fig. 6 instituteShow, before the instruction in the historical access instruction on current web page by current accessed instruction and user compares, above-mentioned sideMethod also comprises: generate the historical access instruction of this user on current web page according to mode as shown in the figure, comprise the following steps:
Step S602: obtain the historical access log of user on webpage;
Step S604: from the historical access instruction of determining this user record of browsing of historical access log;
Step S606: this user's historical access instruction is stored in database according to the sequencing of carrying out.
For example, whole this access log is extracted, can obtain a lot of this detailed user's access sequence information, underFace represents that with offerResult.xhtml user A has carried out product search, and companyResult.xhtml represents that user has carried out companySearch, after offerDetail.xhtml is illustrated in above-mentioned two steps, user has carried out the details that clicking operation is checked product.
Browsing of this user A recorded to list and be saved in database tableA table by priority sequence, can be according to following content formatStore:
id userid action time
1 A offerResult 11/Apr/2012:00:10:32
2 A companyResult 11/Apr/2012:00:10:33
3 A companyResult 11/Apr/2012:00:10:35
4 A offerResult 11/Apr/2012:00:10:35
5 A offerDetail 11/Apr/2012:00:10:35
That is, carry out record according to the time of carrying out in historical operation instruction and action, so that coupling.
In a preferred embodiment, the instruction by current accessed instruction and user in the historical access instruction on current web pageThe step comparing comprises: judge execution sequence between instruction and the instruction in historical access instruction whether with current accessedInstruction identical; If identical, determine that the current access instruction of user and user's historical access instruction match. , trueIn fixed historical access instruction, whether there is the instruction identical with current access instruction, and the sequencing of carrying out between decision instruction,If had, the subsequent instructions of the access instruction mating with it in the historical access instruction of coupling may be carried out as user is follow-upOperation, thereby load corresponding file.
For example, after the data in user's historical access instruction are processed according to the form of above-mentioned sequence, be extracted into oneLine command form, forms function generation of party A-subscriber pre-loaded offerDetail after offerResult and companyResultCode, form can be: AofferResult, companyResult, offerDetail; The data of this form are saved in to dataIn the tableB table in storehouse, wherein A represents user id, unique value that can identifying user, offerResult, companyResulRepresent the sequencing of operation behavior, in front end code script name or front end script that offerDetail represents carry outHold.
Preferably, function file is the front end js code file that subsequent action is corresponding. Historical access instruction for user is also passableBe rule of thumb or demand artificial input, and need to do not determine according to user's historical access instruction.
Embodiment 3
The application provides a kind of preferred embodiment to come further the application to be made an explanation, but it should be noted that this is excellentSelect embodiment just in order better to describe the application, do not form the application is limited improperly.
In the present embodiment, the loading method of webpage as shown in Figure 7, mainly comprises the following steps:
Step S702: data pretreatment;
Step S704: front end page processing.
For step S702, specifically can carry out in such a way, according to user's access log, extract the institute of user ABrowse and record list, every record in access log can represent that what content user is seeing or carrying out what kind of operation,The particularly website of map style or other complex interaction pages, each of this record all represents that user is current performedOperation.
For example: taking the map page as example, the browsing of access recorded list and can be:
110.73.188.109---[11/Apr/2012:00:10:32+0800]"GET/ditu.alibaba.com/rpc/company/offerResult.xhtml?keywords=%E5%B0%81%E5%8C%85%E6%9C%BA%E7%BA%BF%E5%9B%A2&categoryId=&latitude=2941039.2229720703~3001034.633383046&longitude=11896976.810639072~12023594.242279697&beginPage=1&pageSize=10&encode=utf-8&province=&city=HTTP/1.1"200136160168"http://ditu.alibaba.com/k-B7E2B0FCBBFACFDFCDC5_e-y.html""Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;360SE)"--"a=-;b=-;c=-"-
110.73.188.109---[11/Apr/2012:00:10:33+0800]"GET/ditu.alibaba.com/rpc/company/companyResult.xhtml?keywords=%E5%B0%81%E5%8C%85%E6%9C%BA%E7%BA%BF%E5%9B%A2&categoryId=&latitude=2941039.2229720703~3001034.633383046&longitude=11896976.810639072~12023594.242279697&beginPage=1&pageSize=10&encode=utf-8&province=&city=HTTP/1.1"200137109293"http://ditu.alibaba.com/k-B7E2B0FCBBFACFDFCDC5_e-y.html""Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;360SE)"--"a=-;b=-;c=-"-
110.73.188.109---[11/Apr/2012:00:10:35+0800]"GET/ditu.alibaba.com/rpc/company/companyResult.xhtml?keywords=%E5%B0%81%E5%8C%85%E6%9C%BA%E7%BA%BF%E5%9B%A2&categoryId=&latitude=2964459.76554949~3024315.153572817&longitude=11927601.20028751~12054218.631928134&pageSize=10&encode=utf-8&beginPage=1&province=&city=HTTP/1.1"20013715813"http://ditu.alibaba.com/k-B7E2B0FCBBFACFDFCDC5_e-y.html""Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;360SE)"--"a=-;b=-;c=-"-
110.73.188.109---[11/Apr/2012:00:10:35+0800]"GET/ditu.alibaba.com/rpc/company/offerResult.xhtml?keywords=%E5%B0%81%E5%8C%85%E6%9C%BA%E7%BA%BF%E5%9B%A2&categoryId=&latitude=2964459.76554949~3024315.153572817&longitude=11927601.20028751~12054218.631928134&pageSize=10&encode=utf-8&beginPage=1&province=&city=HTTP/1.1"20088344566"http://ditu.alibaba.com/k-B7E2B0FCBBFACFDFCDC5_e-y.html""Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;360SE)"--"a=-;b=-;c=-"-
110.73.188.109---[11/Apr/2012:00:10:35+0800]"GET/ditu.alibaba.com/rpc/offer/offerDetail.xhtml?memberIds=hzxulian&fromOfferId=1127143184HTTP/1.1"200111926076"http://ditu.alibaba.com/k-B7E2B0FCBBFACFDFCDC5_e-y.html""Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;360SE)"--"a=-;b=-;c=-"–
Suppose that 110.73.188.109 is designated as user A, above-mentioned offerResult.xhtml, companyResult.xhtml,OfferDetail.xhtml access sequence shows that user A has carried out product search (offerResult) and company's search (companyResult)After behavior, click the details (offerDetail) of having checked product.
By the way whole this access log is extracted, can obtain a lot of similarly access sequence information of user.
Preferably, browsing of user A above can be recorded to list and deposit sequentially in database tableA table, be saved inThe sequence content form of data:
id userid action time
1 A offerResult 11/Apr/2012:00:10:32
2 A companyResult 11/Apr/2012:00:10:33
3 A companyResult 11/Apr/2012:00:10:35
4 A offerResult 11/Apr/2012:00:10:35
5 A offerDetail 11/Apr/2012:00:10:35
6 B getProvince ……
7 C …… ……
Above-mentioned list of obtaining is processed, can be extracted into a line command format: party A-subscriber through offerResult andThe function code of pre-loaded offerDetail after companyResult, its corresponding formatted file is: AofferResult,CompanyResult, offerDetail; The data of this form are saved in the tableB table of database, wherein, represent with AUser id, unique value that can identifying user; OfferResult and companyResul represent the sequencing of operation behavior;OfferDetail represents front end code script name or the front end content for script that carry out.
The pretreated process of data can be descended long-play online, as long as user's Visitor Logs is processed into the number of tableB formAccording to, also can be according to the situation of application, by the analysis to historical access instruction, but manual mode add similar thisPlant the sequence data of form. For example, the function of manual mode for example: mouse scaling map zooms to province rank from city rankTime, automatically loading region statistical function, its corresponding formatted file is: Bsrollcity, scrollprovince, regionStata.Or drag scroll bar when the page is below 2/3, the content of load page bottom automatically, corresponding formatted file is: Bscrolldown2/3、content。
For step S704, the front end page is processed and specifically can be carried out in such a way:
When the page entering as user A has just been opened, ajax mode is initiated request to the tableB in background data base and is worked as to obtainFront viewer's historical access instruction, if get data C, is saved in these data in the page or or browser internal memoryIn.
Current accessed instruction by user on the page is also preserved according to above-mentioned formatted file, is designated as record data D,Check in this sequence (data D) whether have the content comprising in data C, for example: when occurring in data D: ...,CompanyResult, offerResult, companyResult, so just can detect and in C, have corresponding operationThe data of instruction, this time the just front end js code literary composition of request of loading offerDetail function from remote server automaticallyPart is also carried out.
In above-mentioned preferred embodiment, by analysis user access log, according to user current on the page operation behavior andHistory access record, decides the specific function of prestrain when initializing the page to this user, or even each userThe different function of prestrain, and function that can also prestrain may use in user's operating process. By soonAfter the complicated user behavior in speed location operates, carry out again the loading of dynamic script, and do not need all dynamic scripts of recording in advance,Reduce the load of prestrain, improved the utilization rate of resource. Also obviously promote by the way the efficiency of front end exploitation,And to more clear on the management maintenance of event relation, by prestrain in user's operating process some this user may from now onThe function using, has also improved user's access and has experienced.
Known by above description, the application has following advantage: the historical access instruction by user is determined corresponding to thisThe content of user's prestrain, and do not need all functions file in prestrain current web page, thus solve in prior artThe excessive technical problem of load of the prestrain that needs all functions file of prestrain webpage and cause, has reached minimizing prestrainThe technique effect of load and raising resource utilization.
Obviously, it is apparent to those skilled in the art that each module of above-mentioned the application or each step can be with general calculatingDevice is realized, and they can concentrate on single calculation element, or is distributed on the network that multiple calculation elements form,Alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in to storage deviceIn carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from hereinSuddenly, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into singleIntegrated circuit modules is realized. Like this, the application is not restricted to any specific hardware and software combination.
The preferred embodiment that the foregoing is only the application, is not limited to the application, for those skilled in the art, the application can have various modifications and variations. All within the application's spirit and principle, any amendment of doing, etc.With replacement, improvement etc., within all should being included in the application's protection domain.

Claims (9)

1. a Webpage display process, is characterized in that, comprising:
The current accessed instruction of recording user on current web page;
Instruction by described current accessed instruction and described user in the historical access instruction on current web page compares;
If the instruction in described current accessed instruction and described historical access instruction matches, load described historical accessThe function file corresponding to subsequent access instruction of the instruction of mating with described current accessed instruction in instruction;
In the time receiving described subsequent access instruction, on described current web page, show described function file;
Wherein, described function file is the front end js code file that subsequent action is corresponding.
2. method according to claim 1, is characterized in that, loading in described historical access instruction and described current accessedAfter function file corresponding to the subsequent access instruction of the instruction of instruction coupling, described method also comprises:
If after the scheduled time, do not receive described subsequent access instruction, delete the described historical access loading and refer toThe function file corresponding to subsequent access instruction of the instruction of mating with described current accessed instruction in order, and discharge described in storageThe memory space of function file.
3. method according to claim 1, is characterized in that, loads in described historical access instruction and refers to described current accessedThe step of function file corresponding to the subsequent access instruction of the instruction of order coupling comprises:
In the time that the quantity of the instruction in the described historical access instruction mating with described current accessed instruction is greater than predetermined threshold,Load all function files that do not show in current page.
4. method according to claim 1, is characterized in that, by described current accessed instruction and described user at current netBefore instruction in historical access instruction on page compares, described method also comprises: generate in such a way this useThe historical access instruction of family on current web page:
Obtain the historical access log of user on described webpage;
From the historical access instruction of determining this user record of browsing of described historical access log;
This user's historical access instruction is stored in database according to the sequencing of carrying out.
5. method according to claim 1, is characterized in that, by described current accessed instruction and described user at current web pageOn historical access instruction in the step that compares of instruction comprise:
Judge the instruction in described historical access instruction and the execution sequence between instruction whether with described current accessed instructionIdentical;
If identical, determine that the current access instruction of user and user's historical access instruction match.
6. a Web page display apparatus, is characterized in that, comprising:
Record cell, the current accessed instruction for recording user on current web page;
Comparing unit, for the historical access instruction on current web page by described current accessed instruction and described userInstruction compares;
Loading unit, in the time that the instruction of described current accessed instruction and described historical access instruction matches, loadsThe function file corresponding to subsequent access instruction of the instruction of mating with described current accessed instruction in described historical access instruction;
Display unit in the time receiving described subsequent access instruction, shows described function literary composition on described current web pagePart;
Wherein, described function file is the front end js code file that subsequent action is corresponding.
7. device according to claim 6, is characterized in that, also comprises:
Releasing unit, for after the scheduled time, does not receive described subsequent access instruction, delete load described in go throughThe function file corresponding to subsequent access instruction of the instruction of mating with described current accessed instruction in history access instruction, and dischargeStore the memory space of described function file.
8. device according to claim 6, is characterized in that, described loading unit comprises:
Load-on module is large for the quantity of the instruction when the described historical access instruction mating with described current accessed instructionIn the time of predetermined threshold, load all function files that do not show in current page.
9. device according to claim 6, is characterized in that, also comprises:
Acquiring unit, for obtaining the historical access log of user on described webpage;
Determining unit, for the historical access instruction of browsing definite this user of record from described historical access log;
Memory cell, for being stored in database by this user's historical access instruction according to the sequencing of carrying out.
CN201210228189.0A 2012-07-02 2012-07-02 Webpage display process and device Active CN103530292B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210228189.0A CN103530292B (en) 2012-07-02 2012-07-02 Webpage display process and device
HK14106709.3A HK1193206A1 (en) 2012-07-02 2014-07-03 Method and apparatus for displaying webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210228189.0A CN103530292B (en) 2012-07-02 2012-07-02 Webpage display process and device

Publications (2)

Publication Number Publication Date
CN103530292A CN103530292A (en) 2014-01-22
CN103530292B true CN103530292B (en) 2016-05-25

Family

ID=49932314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210228189.0A Active CN103530292B (en) 2012-07-02 2012-07-02 Webpage display process and device

Country Status (2)

Country Link
CN (1) CN103530292B (en)
HK (1) HK1193206A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995852B (en) * 2014-05-12 2018-01-09 百度在线网络技术(北京)有限公司 Data processing method and device
CN105824830B (en) * 2015-01-06 2020-01-17 阿里巴巴集团控股有限公司 Method, client and equipment for displaying page
CN104915845B (en) * 2015-06-18 2019-07-02 北京京东尚科信息技术有限公司 For the merchandise news display methods and device of window
WO2017000102A1 (en) * 2015-06-29 2017-01-05 冯旋宇 Set-top box data-loading method and system
CN105303101B (en) * 2015-09-25 2018-06-26 维沃移动通信有限公司 A kind of method and terminal for controlling application operating
CN106802902A (en) * 2015-11-26 2017-06-06 北京国双科技有限公司 User-association operating method and device
CN105550356B (en) * 2015-12-28 2019-07-16 魅族科技(中国)有限公司 A kind of browsing content pre-add support method and terminal
CN107145219B (en) * 2016-03-01 2020-07-03 腾讯科技(深圳)有限公司 Display adjustment method and display adjustment device
CN107295044A (en) 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and apparatus for carrying out application program management
CN105893618A (en) * 2016-04-28 2016-08-24 东莞市华睿电子科技有限公司 Data loading method
CN106095460B (en) * 2016-06-21 2019-05-07 上海联彤网络通讯技术有限公司 Realize that terminal embeds the system and method for browser optimization webpage load
CN111324202A (en) * 2020-02-19 2020-06-23 中国第一汽车股份有限公司 Interaction method, device, equipment and storage medium
CN114461897A (en) * 2021-12-21 2022-05-10 北京达佳互联信息技术有限公司 Information processing method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN101632071A (en) * 2007-02-20 2010-01-20 雅虎公司 System and method for preloading content on the basis of user context
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060061751A1 (en) * 2004-09-21 2006-03-23 Ting-Chien Teng Stage assembly including a stage having increased vertical stroke

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101632071A (en) * 2007-02-20 2010-01-20 雅虎公司 System and method for preloading content on the basis of user context
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading

Also Published As

Publication number Publication date
HK1193206A1 (en) 2014-09-12
CN103530292A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN103530292B (en) Webpage display process and device
US20220116407A1 (en) Facilitating cross-platform content access
CN107948314B (en) Business processing method and device based on rule file and server
US20190005025A1 (en) Performing semantic graph search
US11003731B2 (en) Method and apparatus for generating information
US20120290637A1 (en) Personalized news feed based on peer and personal activity
US20170235726A1 (en) Information identification and extraction
CN110413867B (en) Method and system for content recommendation
CN104182506A (en) Log management method
CN103618774A (en) Resource recommending method, device and system based on network behaviors
CN113220657B (en) Data processing method and device and computer equipment
CN105468737A (en) Web service big data analysis method, cloud computing platform and mining system
CN105515836A (en) Log processing method, device and server
US10909170B2 (en) Method for processing and rendering feed-like based images for mobile devices
US11500953B2 (en) Indexing native application data
CN114265981A (en) Recommendation word determining method, device, equipment and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN113656737B (en) Webpage content display method and device, electronic equipment and storage medium
CN108604241B (en) Search system
CN115080154A (en) Page display method and device, storage medium and electronic equipment
CN113792232A (en) Page feature calculation method, device, electronic equipment, medium and program product
CN112560938A (en) Model training method and device and computer equipment
US10298516B2 (en) System and methods for sharing resources among application modules
CN112016017A (en) Method and device for determining characteristic data
Raut et al. Research on Web Log Mining to Predicting User Behavior through Session

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1193206

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1193206

Country of ref document: HK