CN108549726A - Web page contents loading method, device, computer readable storage medium and terminal - Google Patents

Web page contents loading method, device, computer readable storage medium and terminal Download PDF

Info

Publication number
CN108549726A
CN108549726A CN201810404882.6A CN201810404882A CN108549726A CN 108549726 A CN108549726 A CN 108549726A CN 201810404882 A CN201810404882 A CN 201810404882A CN 108549726 A CN108549726 A CN 108549726A
Authority
CN
China
Prior art keywords
configuration information
embedded
target
content
code
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
CN201810404882.6A
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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision 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 Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201810404882.6A priority Critical patent/CN108549726A/en
Publication of CN108549726A publication Critical patent/CN108549726A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (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 web page contents loading method, device, computer readable storage medium and terminals.Wherein, which includes the corresponding target configuration information in target position to be embedded obtained in webpage, wherein target configuration information includes preset data structure, and preset data structure includes the code address and loading type of target content to be embedded;According to code address, the code of target content to be embedded is obtained;According to loading type and the code of target content to be embedded, by target content load to be embedded in target position to be embedded.The embodiment of the present invention can also be controlled and administration web page content by taking the technical solution solves the technical issues of how universal asynchronous load corresponds to the web page contents of different code.

Description

Web page contents loading method, device, computer readable storage medium and terminal
Technical field
The present invention relates to a kind of Internet technical fields, more particularly to a kind of web page contents loading method, device, calculating Machine readable storage medium storing program for executing and terminal.
Background technology
With the continuous development of Internet technology, some network platforms are wished in the other network platform to its webpage Content is shown.
However, codes that above-mentioned each businessman is provided, web page contents to be presented will be different.By each businessman institute The code of offer is different, so, the configuration information of web page contents will be different.Configuration information may include the load time, add The information such as type are carried, the information that load script includes according to configuration information executes embedded code, waits for embedded code is corresponding Embedded content is loaded into position to be embedded.Different embedded codes, corresponding load time, loading type etc. may be different, This just needs to write different load scripts for different embedded codes.The prior art is needed for different configuration informations as a result, Different modes is taken to carry out the load of web page contents.
Therefore, the prior art because handled code is different exists can not universal asynchronous load correspond to different code The defect of web page contents.
Invention content
The technical problem to be solved by the present invention is to provide a kind of web page contents loading method, device, computer-readable storage mediums Matter and terminal, the technical issues of how universal asynchronous load corresponds to the web page contents of different code solved.
To achieve the goals above, in a first aspect, providing following technical scheme:
A kind of web page contents loading method, the method includes:
Obtain the corresponding target configuration information in target position to be embedded in webpage, wherein the target configuration information packet Preset data structure is included, the preset data structure includes the code address and loading type of target content to be embedded;
According to the code address, the code of target content to be embedded is obtained;
According to the loading type and the code of target content to be embedded, target content to be embedded is added It is loaded in target position to be embedded.
Further, the step of corresponding target configuration information in target position to be embedded obtained in webpage, specifically Including:
Obtain at least one first configuration information corresponding with target position to be embedded;
According to default line rule up and down, at least one first configuration information, determine that at least one second matches Confidence ceases, wherein each second configuration information is the configuration information reached the standard grade;
According to default display rule, at least one second configuration information, the target configuration information is determined.
Further, the step for obtaining at least one first configuration information corresponding with target position to be embedded Suddenly, it specifically includes:
According to the correspondence of preset position to be embedded and group names, determine and target position pair to be embedded The targeted packets title answered;
Obtain at least one configuration information, wherein each configuration information includes group names;
According to the group names that at least one configuration information includes, and according to the targeted packets title, determine Go out at least one first configuration information, wherein the group names that each first configuration information includes and the targeted packets Title is identical.
Further, first configuration information includes the title of content to be embedded;
The default line rule up and down of the basis determines at least one at least one first configuration information The step of two configuration informations, specifically includes:
Obtain the corresponding default line rule up and down of title of each content to be embedded;
According to the corresponding default line rule up and down of the title of each content to be embedded, at least one first configuration In information, at least one second configuration information is determined.
Further, second configuration information includes display rate of specific gravity;The default display rule includes random letter Number;
The default display rule of the basis determines the target configuration at least one second configuration information The step of information, specifically includes:
According to the display rate of specific gravity, the display scale of at least one second configuration information is determined;
According to the random function and the display scale, the target configuration information is determined.
Further, further include caching mechanism in the target configuration information;
It is described according to the code address, the step of obtaining the code of target content to be embedded, specifically include:
According to the caching mechanism and the loading type, judge whether the generation for needing to cache target content to be embedded Code;
If the determination result is YES, then according to the code address, obtain and cache the code of target content to be embedded.
Further, further include call back function in the target configuration information;
It is described according to the loading type and the code of target content to be embedded, the target is to be embedded After step of the content load in target position to be embedded, the method further includes:
According to the call back function, target content load progress information to be embedded is returned.
Further, further include monitoring rules in the target configuration information;
It is described according to the loading type and the code of target content to be embedded, the target is to be embedded After step of the content load in target position to be embedded, the method further includes:
According to the monitoring rules, the number that target content to be embedded is shown and/or clicks is obtained.
To achieve the goals above, second aspect additionally provides following technical scheme:
A kind of web page contents loading device, described device include:
First acquisition module, for obtaining the corresponding target configuration information in the position to be embedded of the target in webpage, wherein institute It includes preset data structure to state target configuration information, the preset data structure include target content to be embedded code address and Loading type;
Second acquisition module, for according to the code address, obtaining the code of target content to be embedded;
Load-on module, for the code according to the loading type and target content to be embedded, by the target Content load to be embedded is in target position to be embedded.
Further, first acquisition module is specifically used for:
Obtain at least one first configuration information corresponding with target position to be embedded;
According to default line rule up and down, at least one first configuration information, determine that at least one second matches Confidence ceases, wherein each second configuration information is the configuration information reached the standard grade;
According to default display rule, at least one second configuration information, the target configuration information is determined.
Further, first acquisition module is specifically additionally operable to:
According to the correspondence of preset position to be embedded and group names, determine and target position pair to be embedded The targeted packets title answered;
Obtain at least one configuration information, wherein each configuration information includes group names;
According to the group names that at least one configuration information includes, and according to the targeted packets title, determine Go out at least one first configuration information, wherein the group names that each first configuration information includes and the targeted packets Title is identical.
Further, each configuration information includes the title of content to be embedded;
First acquisition module is specifically additionally operable to:
Obtain the corresponding default line rule up and down of title of each content to be embedded;
According to the corresponding default line rule up and down of the title of each content to be embedded, at least one first configuration In information, at least one second configuration information is determined.
Further, second configuration information includes display rate of specific gravity;The default display rule includes random letter Number;
First acquisition module is specifically additionally operable to:
According to the display rate of specific gravity, the display scale of at least one second configuration information is determined;
According to the random function and the display scale, the target configuration information is determined.
Further, further include caching mechanism in the target configuration information;
Second acquisition module is specifically used for:
According to the caching mechanism and the loading type, judge whether the generation for needing to cache target content to be embedded Code;
If the determination result is YES, then according to the code address, obtain and cache the code of target content to be embedded.
Further, further include call back function in the target configuration information;
Described device further includes:
Module is returned to, for according to the call back function, returning to target content load progress information to be embedded.
Further, further include monitoring rules in the target configuration information;
Described device further includes:
Third acquisition module, for according to the monitoring rules, obtaining, target content to be embedded is shown and/or point The number hit.
To achieve the goals above, the third aspect additionally provides following technical scheme:
A kind of web page contents load hardware device, including:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction so that such as first aspect is realized when the processor executes The web page contents loading method.
To achieve the goals above, fourth aspect additionally provides following technical scheme:
A kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory When computer-readable instruction is executed by computer so that the computer executes web page contents load side as described in relation to the first aspect Method.
To achieve the goals above, the 5th aspect, additionally provides following technical scheme:
A kind of web page contents load terminal, including a kind of web page contents loading device described in second aspect of the present invention.
A kind of web page contents loading method of offer of the embodiment of the present invention, device, computer readable storage medium and terminal.Its In, which includes the corresponding target configuration information in target position to be embedded obtained in webpage, wherein mesh It includes preset data structure to mark configuration information, and preset data structure includes the code address and loading classes of target content to be embedded Type;According to code address, the code of target content to be embedded is obtained;According to loading type and the generation of target content to be embedded Code, by target content load to be embedded in target position to be embedded.The embodiment of the present invention is by taking the technical solution to realize By unified mode come the technique effect of Asynchronous loading different code, and can also control and administration web page content.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the present invention can be brighter It is aobvious understandable, it is special below to lift preferred embodiment, and coordinate attached drawing, detailed description are as follows.
Description of the drawings
Fig. 1 a are the flow diagram according to the web page contents loading method of one embodiment of the invention;
Fig. 1 b are the stream according to the corresponding target configuration information in acquisition target position to be embedded of one embodiment of the invention Journey schematic diagram;
Fig. 1 c are to be matched according to the acquisition corresponding with target position to be embedded at least one first of one embodiment of the invention The flow diagram of confidence breath;
Fig. 2 is the structural schematic diagram according to the web page contents loading device of one embodiment of the invention;
Fig. 3 is the structural schematic diagram that hardware device is loaded according to the web page contents of one embodiment of the invention;
Fig. 4 is the structural schematic diagram according to the computer readable storage medium of one embodiment of the invention;
Fig. 5 is the structural schematic diagram that terminal is loaded according to the web page contents of one embodiment of the invention;
Fig. 6 is the structural schematic diagram that terminal is loaded according to the web page contents of another embodiment of the present invention.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example Disclosed content understands other advantages and effect of the present invention easily.Obviously, described embodiment is only the present invention A part of the embodiment, instead of all the embodiments.The present invention can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the present invention Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiments of the present invention, those of ordinary skill in the art are without creative efforts The every other embodiment obtained, shall fall within the protection scope of the present invention.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the present invention, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or put into practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Put into practice the method.
It should also be noted that, the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way Think, component count, shape and the size when only display is with related component in the present invention rather than according to actual implementation in schema are painted System, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel also may be used It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be put into practice without these specific details.
With the continuous development of Internet technology, more and more advertisers by the business page come carrying advertisement, To carry out merchandise display, thus Internet advertising is come into being.The nets such as Taobao, Jingdone district, Suning easily purchase, Netease, Amazon It stands and is used as advertiser, it will usually carry out carrying advertisement on the business page of some network platforms, to be shown to its commodity.
However, codes that above-mentioned each businessman is provided, web page contents to be presented will be different.By each businessman institute The code of offer is different, so, the configuration information of web page contents will be different.The prior art is directed to different configurations as a result, Information needs the load for taking different modes to carry out web page contents respectively.
Therefore, the prior art because handled code is different exists can not universal asynchronous load correspond to different code The defect of web page contents
In consideration of it, in order to which the technical issues of how universal asynchronous load corresponds to the web page contents of different code solved, this Inventive embodiments provide a kind of web page contents loading method.As shown in Figure 1a, this method is mainly including step S100 to step S120.Wherein:
S100:Obtain the corresponding target configuration information in target position to be embedded in webpage, wherein target configuration information packet Preset data structure is included, which includes the code address and loading type of target content to be embedded.
By taking carrying advertisement as an example, target configuration information can be the corresponding target configuration information of location advertising on webpage.
The code address of above-mentioned target content to be embedded is embedded in content (for example, ad content, publicity for introducing object tape Content etc.).
Above-mentioned loading type is such as can be file type, interface type, and this is not limited by the present invention.
S110:According to code address, the code of target content to be embedded is obtained.
By taking carrying advertisement as an example, the script text corresponding to target ad content to be embedded can be linked by the code address Part.For example, the link external script files attribute (for example, src attributes) of script tag (for example, script labels) can be passed through To obtain the code that object tape is embedded in content.
S120:According to loading type and the code of target content to be embedded, by target content load to be embedded in target In position to be embedded.
This step waits for target content load to be embedded in target according to the code of loading type and target content to be embedded In embedded location, performance objective content to be embedded, and may finally be rendered by browser, to be shown in terminal.Its In, which includes but not limited to smart mobile phone, computer, intelligent TV set, wearable device etc..
The embodiment of the present invention can identify and distinguish between web page contents by taking above-mentioned technical proposal, realize and pass through system One mode carrys out the technique effect of Asynchronous loading different code, and can also control and administration web page content.
In an alternative embodiment, as shown in Figure 1 b, step S100 can specifically include following steps S101 to step Rapid S103.Wherein:
S101:Obtain at least one first configuration information corresponding with target position to be embedded.
For example, which can be the configuration information content to be presented of third-party platform, for example, extensively The configuration information of announcement, configuration information of promotional content etc., but it is not limited to this.
By taking the first configuration information is advertisement configuration information as an example, which may include the mark of each advertisement Information, advertisement packet information etc., this is not limited by the present invention, in practical applications, can also be added according to actual conditions Adduction is deleted.
S102:According to default line rule up and down, at least one first configuration information, determine that at least one second matches Confidence ceases, wherein each second configuration information is the configuration information reached the standard grade.
Wherein, the second configuration information is for defining the particular content included by web page contents and executing which content.With For advertisement, by the second configuration information, it is known that the particular content of the advertisement and the advertisement how to these contents into The information such as row displaying.
S103:According to default display rule, at least one second configuration information, target configuration information is determined.
Wherein, the display mode of the default display rule for defining target content to be embedded.
It in this step, can be according to the target configuration information determined by default display rule, to load target Content to be embedded.
In an alternative embodiment, as illustrated in figure 1 c, above-mentioned steps S101 can specifically comprise the following steps S1011 To step S1013.
S1011:According to the correspondence of preset position to be embedded and group names, determine and target position to be embedded Corresponding targeted packets title.
In practical applications, the advertisement etc. that businessman provides can be grouped, each advertisement is made to correspond to a grouping, Each grouping is not named, and the correspondence of position to be embedded and group names is arranged.Wherein, each grouping can To include multiple advertisements, the present invention is not construed as limiting the quantity of advertisement.
S1012:Obtain at least one configuration information, wherein each configuration information includes group names.
S1013:According to the group names that at least one configuration information includes, and according to targeted packets title, determine At least one first configuration information, wherein the group names that each first configuration information includes are identical as targeted packets title.
Above-mentioned advertisement example is continued to use, the embodiment of the present invention is determined to be grouped by group names;Then, according to identified Grouping, therefrom determines target advertisement to be embedded.
In an alternative embodiment, the first configuration information includes the title of content to be embedded;Step S102 is specific Including:
S1021:Obtain the corresponding default line rule up and down of title of each content to be embedded;
S1022:According to the corresponding default line rule up and down of the title of each content to be embedded, match confidence at least one first In breath, at least one second configuration information is determined.
Above-mentioned advertisement example is still continued to use, above-mentioned default upper and lower line rule can be the default upper and lower of setting Current ad code Line logic.It can be automatically performed the upper offline of advertisement by default line rule, the advertisement loader up and down.
Above-mentioned second configuration information may include traffic allocation information, in order to which advertisement etc. is controlled and managed.
In an alternative embodiment, the second configuration information includes display rate of specific gravity;Default display rule include with Machine function;Step S103 is specifically included:
S1031:According to display rate of specific gravity, the display scale of at least one second configuration information is determined;
S1032:According to random function and display scale, target configuration information is determined.
Wherein, display rate of specific gravity includes but not limited to flow accounting.
Above-mentioned random function can be the preset random function of terminal, which can be based on random and probability theory Arbitrary random function, which can be by the hard-wired of terminal, can also be to be generated at random by software , the present invention is not specifically limited this.
In an alternative embodiment, further include caching mechanism in target configuration information;
Step S110 can specifically include following steps and S111 to step S112.
S111:According to caching mechanism and loading type, judge whether the code for needing caching of target content to be embedded.
Wherein, the caching mechanism is for configuring whether loaded web page contents enable caching mechanism.
Wherein, which includes but not limited to file type, interface type etc..Wherein, interface type is for passing through Dynamic addition script tag, to call external scripts (for example, advertisement script).
S112:If the determination result is YES, then the code of simultaneously caching of target content to be embedded is obtained according to code address.
This step is obtained by the code address as external script files, target content to be embedded code.
In an alternative embodiment, further include call back function in target configuration information;After step S120, the net Page content loading method further includes following steps:
According to call back function, target content load progress information to be embedded is returned.
Wherein, call back function refers to the function called by function pointer.
The present embodiment can obtain the load progress of target content to be embedded by call back function.
In an alternative embodiment, further include monitoring rules in target configuration information;After step S120, the net Page content loading method further include:
According to monitoring rules, the number that target content to be embedded is shown and/or clicks is obtained.
Continue to continue to use above-mentioned advertisement example, the monitoring rules are for monitoring and reporting the behavior of advertisement (for example, ad click Behavior (for example, number of clicks etc.), advertisement show/displaying behavior etc.), in order to which follow-up l platform carries out pair ad data It connects and verifies.
Hereinbefore, although describing each step in web page contents loading method embodiment according to above-mentioned sequence, It will be apparent to one skilled in the art that the step in the embodiment of the present invention not necessarily executes in the order described above, can also fall Other sequences such as sequence, parallel, intersection execute, moreover, on the basis of above-mentioned steps, those skilled in the art can also add The mode of other steps, these obvious variants or equivalent replacement should also be included within protection scope of the present invention, herein no longer It repeats.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is used to execute the realization of the method for the present invention embodiment Step illustrates only for convenience of description and does not disclose, please join with the relevant part of the embodiment of the present invention, particular technique details According to the method for the present invention embodiment.
The embodiment of the present invention provides a kind of web page contents loading device.As shown in Fig. 2, the device mainly includes:First obtains Modulus block 21, the second acquisition module 22 and load-on module 23.Wherein, the target that the first acquisition module 21 is used to obtain in webpage waits for The corresponding target configuration information of embedded location, wherein target configuration information includes preset data structure, and preset data structure includes The code address and loading type of target content to be embedded.Second acquisition module 22 is used to, according to code address, obtain target and wait for The code of embedded content.Load-on module 23 is used for the code according to loading type and target content to be embedded, target is waited for embedding Enter content load in target position to be embedded.
In the present embodiment, the code address of above-mentioned target content to be embedded for introduce object tape insertion content (for example, Ad content, promotional content etc.).
Above-mentioned loading type is such as can be file type, interface type, and this is not limited by the present invention.
The embodiment of the present invention can identify and distinguish between web page contents, according to loading type by taking above-mentioned technical proposal With the code of target content to be embedded, by target content load to be embedded in target position to be embedded, performance objective is to be embedded Content, and may finally be rendered by browser, to be shown in terminal;And by unified mode come Asynchronous loading not With the technique effect of code, so as to control and administration web page content.
In an alternative embodiment, the first acquisition module is specifically used for:It obtains corresponding with target position to be embedded At least one first configuration information;According to default line rule up and down, at least one first configuration information, at least one is determined A second configuration information, wherein each second configuration information is the configuration information reached the standard grade;According to default display rule, at least one In a second configuration information, target configuration information is determined.
For example, which can be the configuration information content to be presented of third-party platform, for example, extensively The configuration information of announcement, configuration information of promotional content etc., but it is not limited to this.It is by advertisement configuration information of the first configuration information Example, which may include the identification information of each advertisement, advertisement packet information etc., and the present invention does not limit this It is fixed, in practical applications, it can also be added and delete according to actual conditions.
Above-mentioned second configuration information is for defining the particular content included by web page contents and executing which content.With wide For announcement, by the second configuration information, it is known that how the particular content of the advertisement and the advertisement carry out these contents The information such as displaying.
Display mode of the above-mentioned default display rule for defining target content to be embedded.
In an alternative embodiment, the first acquisition module is specifically additionally operable to:According to preset position to be embedded and divide The correspondence of group name determines targeted packets title corresponding with target position to be embedded;It obtains at least one with confidence Breath, wherein each configuration information includes group names;According to the group names that at least one configuration information includes, and root According to targeted packets title, at least one first configuration information is determined, wherein the group names that each first configuration information includes It is identical as targeted packets title.
Illustratively, the advertisement etc. that businessman provides can be grouped, so that each advertisement is corresponded to a grouping, not Each grouping is named, and the correspondence of position to be embedded and group names is arranged.Wherein, each grouping can wrap Multiple advertisements are included, the present invention is not construed as limiting the quantity of advertisement.
The embodiment of the present invention is determined to be grouped by group names;Then, according to identified grouping, mesh is therefrom determined Mark advertisement to be embedded.
In an alternative embodiment, each configuration information includes the title of content to be embedded;
First acquisition module is specifically additionally operable to:Obtain the corresponding default line rule up and down of title of each content to be embedded;Root According to the corresponding default line rule up and down of the title of each content to be embedded, at least one first configuration information, determine at least One the second configuration information.
Above-mentioned advertisement example is continued to use, above-mentioned default line rule up and down can be the default offline of setting Current ad code Logic.It can be automatically performed the upper offline of advertisement by default line rule, the advertisement loader up and down.
Above-mentioned second configuration information may include traffic allocation information, in order to which advertisement etc. is controlled and managed.
In an alternative embodiment, the second configuration information includes display rate of specific gravity;Default display rule include with Machine function;First acquisition module is specifically additionally operable to:According to display rate of specific gravity, the display of at least one second configuration information is determined Ratio;According to random function and display scale, target configuration information is determined.
In this example it is shown that rate of specific gravity includes but not limited to flow accounting.
Above-mentioned random function can be the preset random function of terminal, which can be based on random and probability theory Arbitrary random function, which can be by the hard-wired of terminal, can also be to be generated at random by software , the present invention is not specifically limited this.
In an alternative embodiment, further include caching mechanism in target configuration information;Second acquisition module is specifically used In:According to caching mechanism and loading type, judge whether the code for needing caching of target content to be embedded;If judging result is It is, then according to code address, to obtain the code of simultaneously caching of target content to be embedded.
Wherein, the caching mechanism is for configuring whether loaded web page contents enable caching mechanism.
Wherein, which includes but not limited to file type, interface type etc..Wherein, interface type is for passing through Dynamic addition script tag, to call external scripts (for example, advertisement script).
The present embodiment is obtained by the code address as external script files, target content to be embedded code.
In an alternative embodiment, further include call back function in target configuration information;Device further includes returning to module. Wherein, module is returned to be used to, according to call back function, return to target content load progress information to be embedded.
Wherein, call back function refers to the function called by function pointer.
The present embodiment can obtain the load progress of target content to be embedded by call back function.
In an alternative embodiment, further include monitoring rules in target configuration information;Device further includes that third obtains Module.Wherein, third acquisition module is used to obtain time that target content to be embedded is shown and/or clicks according to monitoring rules Number.
Continue to continue to use above-mentioned advertisement example, the monitoring rules are for monitoring and reporting the behavior of advertisement (for example, ad click Behavior (for example, number of clicks etc.), advertisement show/displaying behavior etc.), in order to which follow-up l platform carries out pair ad data It connects and verifies.
Fig. 3 is the hardware block diagram of diagram web page contents load hardware device according to an embodiment of the present disclosure.Such as Fig. 3 institutes Show, it includes memory 31 and processor 32 to load hardware device 30 according to the web page contents of the embodiment of the present disclosure.
The memory 31 is for storing non-transitory computer-readable instruction.Specifically, memory 31 may include one Or multiple computer program products, the computer program product may include various forms of computer readable storage mediums, example Such as volatile memory and/or nonvolatile memory.The volatile memory for example may include random access memory (RAM) and/or cache memory (cache) etc..The nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..
The processor 32 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution energy The processing unit of the other forms of power, and other components in web page contents load hardware device 30 can be controlled to execute the phase The function of prestige.In one embodiment of the disclosure, the processor 32 is for running the computer stored in the memory 31 Readable instruction so that web page contents load hardware device 30 executes the web page contents load side of each embodiment of the disclosure above-mentioned The all or part of step of method.
Those skilled in the art will be understood that the technical issues of in order to solve how to obtain good user experience effect, this Can also include structure well known to communication bus, interface etc. in embodiment, these well known structures should also be included in this hair Within bright protection domain.
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
The present embodiment is identified and distinguished between when processor 32 executes the non-transitory computer-readable instruction on memory 31 Web page contents, and by unified mode come the technique effect of Asynchronous loading different code, and can also control and manage net Page content.
Fig. 4 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in figure 4, root According to the computer readable storage medium 40 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 41.When this When non-transitory computer-readable instruction 41 is run by processor, the web page contents load of each embodiment of the disclosure above-mentioned is executed The all or part of step of method.
Above computer readable storage medium storing program for executing 40 includes but not limited to:Optical storage media (such as:CD-ROM and DVD), magnetic Optical storage media (such as:MO), magnetic storage medium (such as:Tape or mobile hard disk), with built-in rewritable nonvolatile Memory media (such as:Storage card) and with built-in ROM media (such as:ROM boxes).
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
Computer readable storage medium 40 provided in this embodiment is in non-transitory computer-readable instruction 41 by processor When operation, web page contents are identified and distinguished between, are realized through unified mode come the technique effect of Asynchronous loading different code, and And it can also control and administration web page content.
Fig. 5 is the hardware architecture diagram for illustrating the terminal according to the embodiment of the present disclosure.As shown in figure 5, the web page contents It includes that above-mentioned web page contents load 51 to load terminal 50.
The terminal can be implemented in a variety of manners, and the terminal in the disclosure can include but is not limited to such as move electricity Words, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (just Take formula multimedia player), the movement of navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle electronics rearview mirror etc. The fixed terminal equipment of terminal device and such as number TV, desktop computer etc..
As the embodiment of equivalent replacement, which can also include other assemblies.As shown in fig. 6, the web page contents Load terminal 60 may include power supply unit 61, wireless communication unit 62, A/V (audio/video) input unit 63, user's input Unit 64, sensing unit 65, interface unit 66, controller 67, output unit 68 and memory 69 etc..Fig. 6, which is shown, to be had The terminal of various assemblies can also alternatively be implemented more it should be understood that being not required for implementing all components shown Or less component.
Wherein, wireless communication unit 62 allows the radio communication between terminal 60 and wireless communication system or network.A/V Input unit 63 is for receiving audio or video signal.It is defeated that user input unit 64 can generate key according to order input by user Enter data with the various operations of control terminal equipment.The current state of 65 detection terminal 60 of sensing unit, is used the position of terminal 60 Family for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 60, terminal 60, terminal 60 is mobile and direction etc., and And generate order or the signal for the operation for being used for control terminal 60.Interface unit 66 is used as at least one external device (ED) and terminal 60 Connection can by interface.Output unit 68 is configured to provide output signal with vision, audio and/or tactile manner.It deposits Reservoir 69 can store the software program etc. of the processing and control operation that are executed by controller 67, or can temporarily store Oneself is through output or the data that will be exported.Memory 69 may include the storage medium of at least one type.Moreover, terminal 60 can To cooperate with the network storage device for the store function for executing memory 69 by network connection.67 usual control terminal of controller The overall operation of equipment.In addition, controller 67 may include for reproducing or the multi-media module of multimedia playback data.Control The handwriting input executed on the touchscreen or picture can be drawn input and are identified as word by device 67 with execution pattern identifying processing Symbol or image.Power supply unit 61 receives external power or internal power under the control of controller 67 and provides operation each element With the electric power appropriate needed for component.
The various embodiments for the web page contents loading method that the disclosure proposes can be to use such as computer software, hard Part or any combination thereof computer-readable medium implement.Hardware is implemented, the web page contents load side that the disclosure proposes The various embodiments of method can be by using application-specific IC (AS I C), digital signal processor (DSP), number Signal processing apparatus (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, Microcontroller, microprocessor is designed to execute at least one of electronic unit of function described herein to implement, one In the case of a little, the various embodiments for the web page contents loading method that the disclosure proposes can be implemented in controller 67.For Software implementation, the disclosure propose web page contents loading method various embodiments can with allow to execute at least one function Or the individual software module of operation is implemented.Software code can be by the software application write with any programming language appropriate Program (or program) is implemented, and software code can be stored in memory 69 and be executed by controller 67.
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
Web page contents load terminal provided in this embodiment can identify and distinguish between web page contents, realize through unification Mode carrys out the technique effect of Asynchronous loading different code, and can also control and administration web page content.
The basic principle of the disclosure is described above in association with specific embodiment, however, it is desirable to, it is noted that in the disclosure The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand With, and it is unrestricted, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
The block diagram of device, device, equipment, system involved in the disclosure only as illustrative example and is not intended to It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that , it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool " etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above "or" and " and " refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation that is used in the enumerating of the item started with "at least one" It enumerates, so that enumerating for such as " A, B or C's being at least one " means A or B or C or AB or AC or BC or ABC (i.e. A and B And C).In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
It may also be noted that in the system and method for the disclosure, each component or each step are can to decompose and/or again Combination nova.These decompose and/or reconfigure the equivalent scheme that should be regarded as the disclosure.
The technology instructed defined by the appended claims can not departed from and carried out to the various of technology described herein Change, replace and changes.In addition, the scope of the claims of the disclosure is not limited to process described above, machine, manufacture, thing Composition, means, method and the specific aspect of action of part.It can be essentially identical using being carried out to corresponding aspect described herein Function either realize essentially identical result there is currently or to be developed later processing, machine, manufacture, event group At, means, method or action.Thus, appended claims include such processing within its scope, machine, manufacture, event Composition, means, method or action.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this It is open.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein General Principle can be applied to other aspect without departing from the scope of the present disclosure.Therefore, the disclosure is not intended to be limited to Aspect shown in this, but according to the widest range consistent with principle disclosed herein and novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the disclosure It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill Art personnel will be recognized that its certain modifications, modification, change, addition and sub-portfolio.

Claims (19)

1. a kind of web page contents loading method, which is characterized in that the method includes:
Obtain the corresponding target configuration information in target position to be embedded in webpage, wherein the target configuration information includes pre- If data structure, the preset data structure includes the code address and loading type of target content to be embedded;
According to the code address, the code of target content to be embedded is obtained;
According to the loading type and the code of target content to be embedded, target content load to be embedded is existed In the target position to be embedded.
2. according to the method described in claim 1, it is characterized in that, the target position to be embedded obtained in webpage is corresponding It the step of target configuration information, specifically includes:
Obtain at least one first configuration information corresponding with target position to be embedded;
According to default line rule up and down, at least one first configuration information, determine that at least one second matches confidence Breath, wherein each second configuration information is the configuration information reached the standard grade;
According to default display rule, at least one second configuration information, the target configuration information is determined.
3. according to the method described in claim 2, it is characterized in that, the acquisition is corresponding with target position to be embedded extremely It the step of few first configuration information, specifically includes:
According to the correspondence of preset position to be embedded and group names, determine corresponding with target position to be embedded Targeted packets title;
Obtain at least one configuration information, wherein each configuration information includes group names;
According to the group names that at least one configuration information includes, and according to the targeted packets title, determine institute State at least one first configuration information, wherein the group names that each first configuration information includes and the targeted packets title It is identical.
4. according to the method described in claim 2, it is characterized in that, first configuration information includes the name of content to be embedded Claim;
The default line rule up and down of the basis, at least one first configuration information, determines that at least one second matches The step of confidence ceases, specifically includes:
Obtain the corresponding default line rule up and down of title of each content to be embedded;
According to the corresponding default line rule up and down of the title of each content to be embedded, at least one first configuration information In, determine at least one second configuration information.
5. according to the method described in claim 2, it is characterized in that, second configuration information includes display rate of specific gravity;Institute It includes random function to state default display rule;
The default display rule of the basis, at least one second configuration information, determines the target configuration information The step of, it specifically includes:
According to the display rate of specific gravity, the display scale of at least one second configuration information is determined;
According to the random function and the display scale, the target configuration information is determined.
6. according to the method described in claim 1, it is characterized in that, further including caching mechanism in the target configuration information;
It is described according to the code address, the step of obtaining the code of target content to be embedded, specifically include:
According to the caching mechanism and the loading type, judge whether the code for needing to cache target content to be embedded;
If the determination result is YES, then according to the code address, obtain and cache the code of target content to be embedded.
7. according to the method described in claim 1, it is characterized in that, further including call back function in the target configuration information;
Described according to the loading type and the code of target content to be embedded, by target content to be embedded After loading the step in target position to be embedded, the method further includes:
According to the call back function, target content load progress information to be embedded is returned.
8. according to the method described in claim 1, it is characterized in that, further including monitoring rules in the target configuration information;
Described according to the loading type and the code of target content to be embedded, by target content to be embedded After loading the step in target position to be embedded, the method further includes:
According to the monitoring rules, the number that target content to be embedded is shown and/or clicks is obtained.
9. a kind of web page contents loading device, which is characterized in that described device includes:
First acquisition module, for obtaining the corresponding target configuration information in the position to be embedded of the target in webpage, wherein the mesh It includes preset data structure to mark configuration information, and the preset data structure includes code address and the load of target content to be embedded Type;
Second acquisition module, for according to the code address, obtaining the code of target content to be embedded;
Load-on module waits for the target embedding for the code according to the loading type and target content to be embedded Enter content load in target position to be embedded.
10. device according to claim 9, which is characterized in that first acquisition module is specifically used for:
Obtain at least one first configuration information corresponding with target position to be embedded;
According to default line rule up and down, at least one first configuration information, determine that at least one second matches confidence Breath, wherein each second configuration information is the configuration information reached the standard grade;
According to default display rule, at least one second configuration information, the target configuration information is determined.
11. device according to claim 10, which is characterized in that first acquisition module is specifically additionally operable to:
According to the correspondence of preset position to be embedded and group names, determine corresponding with target position to be embedded Targeted packets title;
Obtain at least one configuration information, wherein each configuration information includes group names;
According to the group names that at least one configuration information includes, and according to the targeted packets title, determine institute State at least one first configuration information, wherein the group names that each first configuration information includes and the targeted packets title It is identical.
12. device according to claim 10, which is characterized in that each configuration information includes the title of content to be embedded;
First acquisition module is specifically additionally operable to:
Obtain the corresponding default line rule up and down of title of each content to be embedded;
According to the corresponding default line rule up and down of the title of each content to be embedded, at least one first configuration information In, determine at least one second configuration information.
13. device according to claim 10, which is characterized in that second configuration information includes display rate of specific gravity; The default display rule includes random function;
First acquisition module is specifically additionally operable to:
According to the display rate of specific gravity, the display scale of at least one second configuration information is determined;
According to the random function and the display scale, the target configuration information is determined.
14. device according to claim 9, which is characterized in that further include caching mechanism in the target configuration information;
Second acquisition module is specifically used for:
According to the caching mechanism and the loading type, judge whether the code for needing to cache target content to be embedded;
If the determination result is YES, then according to the code address, obtain and cache the code of target content to be embedded.
15. device according to claim 9, which is characterized in that further include call back function in the target configuration information;
Described device further includes:
Module is returned to, for according to the call back function, returning to target content load progress information to be embedded.
16. device according to claim 9, which is characterized in that further include monitoring rules in the target configuration information;
Described device further includes:
Third acquisition module, for according to the monitoring rules, obtaining what target content to be embedded was shown and/or clicked Number.
17. a kind of web page contents load hardware device, including:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction so that realized when the processor executes as in claim 1-8 Web page contents loading method described in any one.
18. a kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory meter When calculation machine readable instruction is executed by computer so that the computer executes the net as described in any one of claim 1-8 Page content loading method.
19. a kind of web page contents load terminal, including a kind of web page contents loading device described in claim 9-16.
CN201810404882.6A 2018-04-28 2018-04-28 Web page contents loading method, device, computer readable storage medium and terminal Pending CN108549726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810404882.6A CN108549726A (en) 2018-04-28 2018-04-28 Web page contents loading method, device, computer readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810404882.6A CN108549726A (en) 2018-04-28 2018-04-28 Web page contents loading method, device, computer readable storage medium and terminal

Publications (1)

Publication Number Publication Date
CN108549726A true CN108549726A (en) 2018-09-18

Family

ID=63512947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810404882.6A Pending CN108549726A (en) 2018-04-28 2018-04-28 Web page contents loading method, device, computer readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108549726A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412890A (en) * 2013-07-19 2013-11-27 北京亿赞普网络技术有限公司 Webpage loading method and device
US20160012147A1 (en) * 2014-07-10 2016-01-14 MyMojo Corporation Asynchronous Initialization of Document Object Model (DOM) Modules
CN105608152A (en) * 2015-12-17 2016-05-25 无锡天脉聚源传媒科技有限公司 Method and device for asynchronously loading webpage resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412890A (en) * 2013-07-19 2013-11-27 北京亿赞普网络技术有限公司 Webpage loading method and device
US20160012147A1 (en) * 2014-07-10 2016-01-14 MyMojo Corporation Asynchronous Initialization of Document Object Model (DOM) Modules
CN105608152A (en) * 2015-12-17 2016-05-25 无锡天脉聚源传媒科技有限公司 Method and device for asynchronously loading webpage resources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无: "广告管家", 《HTTP://YINGXIAO.BAIDU.COM/SUPPORT/ADM/INDEX.HTML》 *

Similar Documents

Publication Publication Date Title
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
US20200250732A1 (en) Method and apparatus for use in determining tags of interest to user
CN109190044A (en) Personalized recommendation method, device, server and medium
CN107424033B (en) Component rendering method, page display method, client, server and storage medium
CN106940705A (en) A kind of method and apparatus for being used to build user's portrait
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN109753326A (en) Processing method, device, equipment and machine readable media
CN108287925B (en) Method and device for displaying page elements
CN110392155B (en) Notification message display and processing method, device and equipment
CN109753196A (en) Processing method, device, equipment and machine readable media
CN113592535B (en) Advertisement recommendation method and device, electronic equipment and storage medium
CN110175306A (en) A kind of processing method and processing device of advertising information
CN104346463A (en) Loading method and device of page label and browser client
CN108196902B (en) Method and apparatus for displaying open screen advertisements
CN108874875A (en) The asynchronous loading method of web page contents, device, readable storage medium storing program for executing and terminal
CN107798558A (en) User behavior data analysis method and server
WO2021254437A1 (en) Item acquisition discount information display method, apparatus and system, and device and medium
CN105518618A (en) Input object configured to route input for a visual element to a graphic framework
CN105630893A (en) Display method and device of photo title
CN110489563B (en) Method, device, equipment and computer readable storage medium for representing graph structure
CN109753214A (en) Processing method, device, equipment and machine readable media
CN108549726A (en) Web page contents loading method, device, computer readable storage medium and terminal
CN105930449A (en) Personal homepage display method and apparatus
US10380669B2 (en) Product browsing system and method
CN114089995A (en) Page generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180918