CN107798061A - A kind of webpage loading method and mobile terminal - Google Patents

A kind of webpage loading method and mobile terminal Download PDF

Info

Publication number
CN107798061A
CN107798061A CN201710843143.2A CN201710843143A CN107798061A CN 107798061 A CN107798061 A CN 107798061A CN 201710843143 A CN201710843143 A CN 201710843143A CN 107798061 A CN107798061 A CN 107798061A
Authority
CN
China
Prior art keywords
domain name
webpage
protocol address
primary resource
network protocol
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
CN201710843143.2A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710843143.2A priority Critical patent/CN107798061A/en
Publication of CN107798061A publication Critical patent/CN107798061A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the invention provide a kind of webpage loading method, methods described includes:Receive webpage loading command information;Webpage loading command information is sent to server;The primary resource head response for the page to be loaded that the server returns is received, wherein, the primary resource head response is that the server loads command information generation according to the webpage;Obtain the corresponding relation of the domain name and objective network protocol address carried in the primary resource head response;Corresponding relation based on domain name Yu objective network protocol address, carry out webpage loading.Webpage loading velocity can be accelerated, lift the usage experience of user.

Description

A kind of webpage loading method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of webpage loading method and mobile terminal.
Background technology
Now with the development of network, use of the people for webpage is incremented by with day.In web page loading process, first according to The resource file for needing to access webpage is obtained according to loading command information, then is parsed by browser kernel containing child resource file Domain name, according to the domain name that parses by browser kernel to DNS (Domain Name System, domain name system) server Do dns resolution and obtain IP (Internet Protocol, Internet protocol) address, it is finally, corresponding with parsing obtained IP address Equipment establish connection and request data.
Be present some drawbacks because the above-mentioned loading procedure to webpage can only be loaded serially in existing webpage loading method, lead Cause loading procedure time-consuming longer.
The content of the invention
The invention provides a kind of webpage loading method and mobile terminal, is loaded with solving webpage present in prior art Slow-footed problem.
In order to solve the above problems, the invention discloses a kind of webpage loading method, methods described includes:Webpage is received to add Carry command information;Webpage loading command information is sent to server;Receive the page to be loaded that the server returns Primary resource head response, wherein, the primary resource head response be the server according to the webpage load command information generation 's;Obtain the corresponding relation of the domain name and objective network protocol address carried in the primary resource head response;Based on domain name With the corresponding relation of objective network protocol address, webpage loading is carried out.
In order to solve the above problems, the invention also discloses a kind of mobile terminal, it is characterised in that the mobile terminal bag Include:First receiving module, for receiving webpage loading command information;Sending module, for the webpage to be loaded into command information Send to server;Second receiving module, the primary resource head response returned for receiving the server, wherein, the main money Source head response is that the server loads command information generation according to the webpage;Acquisition module, for obtaining the main money The domain name carried in the head response of source and the corresponding relation of objective network protocol address;Load-on module, for based on domain name with The corresponding relation of objective network protocol address, carry out webpage loading.
In order to solve the above problems, the invention also discloses a kind of mobile terminal, including:Memory, processor and storage On the memory and the webpage loading procedure that can run on the processor, the webpage loading procedure is by the processing The step of described webpage loading method is realized when device performs.
It is described computer-readable the invention also discloses a kind of computer-readable recording medium in order to solve the above problems Webpage loading procedure is stored with storage medium, described webpage loading is realized when the webpage loading procedure is executed by processor The step of method.
Compared with prior art, the present invention has advantages below:
Webpage loading scheme provided in an embodiment of the present invention, server add domain name and domain name in primary resource head response Corresponding objective network protocol address, when mobile terminal receives webpage loading command information, by webpage loading command information hair Server is delivered to, server returns to the primary resource head response for carrying domain name and objective network protocol address, when mobile terminal connects When receiving primary resource head response, directly therefrom obtain domain name and objective network protocol address carries out webpage loading, it is existing without performing In some webpage loading methods, complete hypertext markup language data is received, HTML is carried out to parse domain Name, and the step of obtaining internet protocol address corresponding to domain name is sent to DNS, therefore webpage loading velocity can be accelerated, lifted The usage experience of user.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of webpage loading method of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of the generation method of the primary resource head response of webpage of the embodiment of the present invention two;
Fig. 3 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention three;
Fig. 4 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention four;
Fig. 5 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention five.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Embodiment one
Reference picture 1, show a kind of step flow chart of webpage loading method of the embodiment of the present invention one.
In the embodiment of the present invention, the webpage loading method of the present invention is illustrated from mobile terminal side.The present invention is implemented The webpage loading method that example provides comprises the following steps:
Step 101:Receive webpage loading command information.
When browser loads to a certain webpage, generation webpage loading command information, wherein, webpage loading instruction letter Breath includes the geographical position residing for current mobile terminal and mobile terminal affiliated operator's informaiton.
Step 102:Webpage loading command information is sent to server.
Mobile terminal sends webpage loading command information to server;Server receives life after webpage loading command information Mobile terminal is returned into the primary resource head response of webpage to be loaded, and by primary resource head response.For server according to webpage The specific generating mode that command information generates the primary resource head response of webpage to be loaded is loaded, with reference to mutually speaking on somebody's behalf in embodiment two It is bright, this is repeated no more in the embodiment of the present invention.Server indicated by the embodiment of the present invention is believed head response to be responsible Cease the corresponding website configured
Step 103:The primary resource head response that the reception server returns.
Wherein, primary resource head response is that server loads command information generation according to webpage.
Domain name corresponding to each child resource under primary resource, and mesh corresponding to each domain name are carried in primary resource head response Mark internet protocol address.
Primary resource is a page text file, such as HTML (HyperText Markup Language, hypertext markup Language) file, there can be zero or more child resource under primary resource, and these child resources can be referred to one or more In domain name.If it is referred in a domain name, then this domain name may be identical with the domain name of primary resource, it is also possible to part son money The domain name in source is identical.
Such as:Advertising resource on the webpage of loading be present, then domain name corresponding to advertising resource is third party's domain name.
Step 104:Obtain the corresponding relation of the domain name and objective network protocol address carried in primary resource head response.
Browser kernel to the primary resource head response of reception by parsing, with obtaining domain name and objective network agreement Location.
Step 105:Corresponding relation based on domain name Yu objective network protocol address, carry out webpage loading.
Mobile terminal equipment Monitoring connection corresponding with domain name in advance, once user desires access to the domain name, then can lead to The connection pre-established is crossed, obtains web page contents corresponding to domain name, so as to quickly be loaded to webpage.
Webpage loading method provided in an embodiment of the present invention, server add domain name and domain name in primary resource head response Corresponding objective network protocol address, when mobile terminal receives webpage loading command information, by webpage loading command information hair Server is delivered to, server returns to the primary resource head response for carrying domain name and objective network protocol address, when mobile terminal connects When receiving primary resource head response, directly therefrom obtain domain name and objective network protocol address carries out webpage loading, it is existing without performing In some webpage loading methods, complete hypertext markup language data is received, HTML is carried out to parse domain Name, and the step of obtaining internet protocol address corresponding to domain name is sent to DNS, therefore webpage loading velocity can be accelerated, lifted The usage experience of user.
Embodiment two
Reference picture 2, the step of showing a kind of generation method of primary resource head response of webpage of the embodiment of the present invention two Flow chart.
The primary resource head response generation method of webpage provided in an embodiment of the present invention comprises the following steps:
Step 201:Determine each domain name that webpage primary resource to be loaded includes, and objective network agreement corresponding to each domain name Address.
Such as:Primary resource is a page text file, and a primary resource can have a zero or more child resource, and these Child resource can be referred in one or more domain names again.If these child resources are referred in different domain names, i.e. child resource pair Different subdomain names is answered, if domain name corresponding to each child resource is consistent, domain name corresponding to primary resource is corresponding to each child resource Domain name, if subdomain name corresponding to each child resource is consistent, it is determined that objective network protocol address corresponding to the domain name, and each child resource Corresponding target protocol address is also consistent, if domain name corresponding to each child resource is different, determines mesh corresponding to each subdomain name respectively Mark internet protocol address.
After mobile terminal receives webpage loading command information, webpage loading command information is sent to server, by taking Business device generates the primary resource head response of webpage to be loaded according to webpage loading command information.Specifically server is according to mobile terminal The webpage loading command information of transmission, the current geographic position and current operator information of mobile terminal are determined, and it is to be loaded Each domain name corresponding to webpage primary resource, each domain name correspond at least one internet protocol address;For each domain name, according to current Geographical position and current operator information determine objective network protocol address corresponding to domain name.
Such as GPS with positioning function is set in mobile terminal, and (Global Positioning System, the whole world are fixed Position system) alignment system, current geographic position is positioned according to GPS positioning system.Operator's informaiton includes but is not limited to It is several below:China Mobile, CHINAUNICOM, China Telecom and China Broadcast & Television.
Determination for objective network protocol address, a kind of preferably scheme are:For each domain name, from corresponding to domain name Multiple internet protocol addresses, search the operator's informaiton first network protocol address consistent with current operator information;From first In internet protocol address, geographical position second internet protocol address nearest apart from current geographic position is searched;By the second network Protocol address is as objective network protocol address.
Step 202:The each domain name included for primary resource, be added to corresponding with objective network protocol address of domain name is treated In the primary resource head response for loading webpage.
When primary resource includes multiple child resources, and corresponding to each child resource during subdomain name difference, then each subdomain is determined respectively Objective network protocol address corresponding to name, and objective network protocol address corresponding to each subdomain name and each subdomain name is added to In primary resource head response.
Step 203:Primary resource head response is sent to mobile terminal.
After mobile terminal receives primary resource head response, each sub- money that primary resource includes is parsed from primary resource head response Subdomain name corresponding to source, and each objective network protocol address corresponding to each subdomain name, according to each subdomain parsed Each objective network protocol address carries out webpage loading corresponding to name and each subdomain name.
Webpage loading method provided in an embodiment of the present invention, server receive geographical position and the fortune that mobile terminal is sent Business's information is sought, server is handled according to the webpage loading command information that mobile terminal is sent, and main money is sent to mobile terminal Source head response, due to carrying objective network protocol address corresponding to domain name and domain name in primary resource head response, when mobile whole When termination receives primary resource head response, it can skip in traditional webpage loading method, receive complete HTML Data, HTML is carried out to parse domain name, and the step for obtaining internet protocol address corresponding to domain name is sent to DNS Suddenly, connect, realized to webpage after directly completing parsing to the domain name in primary resource head response and objective network protocol address Loading, can accelerate overall web page display speed, strengthen the usage experience of user.
Embodiment three
Reference picture 3, the step of showing a kind of generation method of primary resource head response of webpage of the embodiment of the present invention three Flow chart.
Mobile terminal provided in an embodiment of the present invention includes:First receiving module 301, for receiving webpage loading instruction letter Breath;Sending module 302, for webpage loading command information to be sent to server;Second receiving module 303, for connecing The primary resource head response that the server returns is received, wherein, the primary resource head response is the server according to the webpage Load command information generation;Acquisition module 304, for obtaining the domain name carried in the primary resource head response and objective network The corresponding relation of protocol address;Load-on module 305, for the corresponding relation based on domain name Yu objective network protocol address, Carry out webpage loading.
Preferably, the primary resource head response of the webpage to be loaded generates in the following way:Determine webpage master to be loaded Each domain name that resource includes, and objective network protocol address corresponding to each domain name;The primary resource is included each Domain name, by the domain name primary resource head response added to the webpage to be loaded corresponding with objective network protocol address.
Preferably, each domain name that webpage primary resource to be loaded includes, and objective network corresponding to each domain name are determined Protocol address is specifically used for:Command information is loaded according to the webpage that the mobile terminal is sent, determines working as the mobile terminal Preceding geographical position and current operator information, and each domain name corresponding to the webpage primary resource to be loaded;Wherein, each domain name Corresponding at least one internet protocol address;For each domain name, according to the current geographic position and the current operator Information determines objective network protocol address corresponding to domain name.
Preferably, for each domain name, the master is determined according to the geographical position and the current operator information The objective network agreement of resource is specifically used for:For each domain name, from multiple internet protocol addresses corresponding to domain name, search The operator's informaiton first network protocol address consistent with the current operator information;From the first network protocol address In, search geographical position second internet protocol address nearest apart from the current geographic position;By second procotol Address is as objective network protocol address.
Mobile terminal provided in an embodiment of the present invention, server receive geographical position and the operator that mobile terminal is sent Information, server are handled according to the webpage loading command information that mobile terminal is sent, and sending primary resource to mobile terminal rings Head is answered, due to carrying objective network protocol address corresponding to domain name and domain name in primary resource head response, when mobile terminal connects It when receiving primary resource head response, can skip in traditional webpage loading method, receive complete hypertext markup language data, HTML is carried out to parse domain name, and the step of obtaining internet protocol address corresponding to domain name is sent to DNS, directly Connect and connected after completing parsing to the domain name in primary resource head response and objective network protocol address, realize the loading to webpage, Overall web page display speed can be accelerated, strengthen the usage experience of user.
Example IV
Reference picture 4, show a kind of structured flowchart of mobile terminal of the embodiment of the present invention four.
The mobile terminal 800 of the embodiment of the present invention includes:At least one processor 801, memory 802, at least one net Network interface 804 and other users interface 803.Each component in mobile terminal 800 is coupled by bus system 805. It is understood that bus system 805 is used to realize the connection communication between these components.Bus system 805 except include data/address bus it Outside, in addition to power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in Fig. 4 will be various total Line is all designated as bus system 805.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 802 be intended to including but not limited to these With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 8022, include various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 802, specifically, can be application The program stored in program 8022 or instruction, processor 801 are used for:Receive webpage loading command information;Webpage loading is received to refer to Make information;Webpage loading command information is sent to server;Receive the master for the page to be loaded that the server returns Resource response head, wherein, the primary resource head response is that the server loads command information generation according to the webpage;Obtain Take the corresponding relation of the domain name and objective network protocol address carried in the primary resource head response;Based on domain name and target The corresponding relation of internet protocol address, carry out webpage loading.
The method that the embodiments of the present invention disclose can apply in processor 801, or be realized by processor 801. Processor 801 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 802, processor 801 read the information in memory 802, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be by performing the module (such as process, function etc.) of function described in the embodiment of the present invention To realize the technology described in the embodiment of the present invention.Software code is storable in memory and passes through computing device.Storage Device can be realized within a processor or outside processor.
Alternatively, processor 801 is additionally operable to:The primary resource head response of the webpage to be loaded generates in the following way: Determine each domain name that webpage primary resource to be loaded includes, and objective network protocol address corresponding to each domain name;For institute Each domain name that primary resource includes is stated, domain name is corresponding with objective network protocol address added to the webpage to be loaded In primary resource head response.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
By mobile terminal provided in an embodiment of the present invention, server adds domain name and domain name in primary resource head response Corresponding objective network protocol address, when mobile terminal receives webpage loading command information, by webpage loading command information hair Server is delivered to, server returns to the primary resource head response for carrying domain name and objective network protocol address, when mobile terminal connects When receiving primary resource head response, directly therefrom obtain domain name and objective network protocol address carries out webpage loading, it is existing without performing In some webpage loading methods, complete hypertext markup language data is received, HTML is carried out to parse domain Name, and the step of obtaining internet protocol address corresponding to domain name is sent to DNS, therefore webpage loading velocity can be accelerated, lifted The usage experience of user.
Embodiment five
Reference picture 5, show a kind of structured flowchart of mobile terminal of the embodiment of the present invention five.
Mobile terminal in the embodiment of the present invention can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 5 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930th, display unit 940, processor 960, voicefrequency circuit 970, WiFi (Wireless Fidelity) modules 980 and power supply 990。
Wherein, input block 930 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal User set and function control it is relevant signal input.Specifically, in the embodiment of the present invention, the input block 930 can be with Including contact panel 931.Contact panel 931, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 931), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller two Individual part.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 960, and the order sent of reception processing device 960 and can be performed.Furthermore, it is possible to using resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block 930 Can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, the one or more in action bars etc..
Wherein, display unit 940 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal.Display unit 940 may include display panel 941, optionally, can use LCD or organic light emission The forms such as diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device 960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone Individual part, by running or performing the software program and/or module that are stored in first memory 921, and call and be stored in Data in second memory 922, the various functions and processing data of mobile terminal are performed, it is overall so as to be carried out to mobile terminal Monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/ Or the data in the second memory 922, processor 960 are used for:Receive webpage loading command information;Receive webpage loading instruction Information;Webpage loading command information is sent to server;Receive the main money for the page to be loaded that the server returns Source head response, wherein, the primary resource head response is that the server loads command information generation according to the webpage;Obtain The domain name carried in the primary resource head response and the corresponding relation of objective network protocol address;Based on domain name and target network The corresponding relation of network protocol address, carry out webpage loading.
Alternatively, processor 960 is additionally operable to:The primary resource head response of the webpage to be loaded generates in the following way: Determine each domain name that webpage primary resource to be loaded includes, and objective network protocol address corresponding to each domain name;For institute Each domain name that primary resource includes is stated, domain name is corresponding with objective network protocol address added to the webpage to be loaded In primary resource head response.
By mobile terminal provided in an embodiment of the present invention, server adds domain name and domain name in primary resource head response Corresponding objective network protocol address, when mobile terminal receives webpage loading command information, by webpage loading command information hair Server is delivered to, server returns to the primary resource head response for carrying domain name and objective network protocol address, when mobile terminal connects When receiving primary resource head response, directly therefrom obtain domain name and objective network protocol address carries out webpage loading, it is existing without performing In some webpage loading methods, complete hypertext markup language data is received, HTML is carried out to parse domain Name, and the step of obtaining internet protocol address corresponding to domain name is sent to DNS, therefore webpage loading velocity can be accelerated, lifted The usage experience of user..
A kind of mobile terminal, including:Memory, processor and it is stored on the memory and can be on the processor The webpage loading procedure of operation, the webpage loading procedure are realized described webpage loading method during the computing device Step.
A kind of computer-readable recording medium, webpage loading procedure, institute are stored with the computer-readable recording medium State the step of described webpage loading method is realized when webpage loading procedure is executed by processor.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Provided herein webpage loading method not with the intrinsic phase of any certain computer, virtual system or miscellaneous equipment Close.Various general-purpose systems can also be used together with teaching based on this.As described above, construction has present invention side Structure required by the system of case is obvious.In addition, the present invention is not also directed to any certain programmed language.Should be bright In vain, various programming languages can be utilized to realize the content of invention described herein, and that is done above to language-specific retouches State is to disclose the preferred forms of the present invention.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are realized in the processing method of webpage loading according to embodiments of the present invention The some or all functions of some or all parts.The present invention is also implemented as being used to perform method as described herein Some or all equipment or program of device (for example, computer program and computer program product).Such reality The program of the existing present invention can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtained, and either be provided or in the form of any other on carrier signal There is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.For system embodiment For, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation Defend oneself bright.

Claims (10)

1. a kind of webpage loading method, it is characterised in that methods described includes:
Receive webpage loading command information;
Webpage loading command information is sent to server;
The primary resource head response for the page to be loaded that the server returns is received, wherein, the primary resource head response is described Server is according to webpage loading command information generation;
Obtain the corresponding relation of the domain name and objective network protocol address carried in the primary resource head response;
Corresponding relation based on domain name Yu objective network protocol address, carry out webpage loading.
2. according to the method for claim 1, it is characterised in that the primary resource head response of the webpage to be loaded passes through as follows Mode generates:
Determine each domain name that webpage primary resource to be loaded includes, and objective network protocol address corresponding to each domain name;
The each domain name included for the primary resource, treated domain name is corresponding with objective network protocol address added to described In the primary resource head response for loading webpage.
3. according to the method for claim 2, it is characterised in that each domain name that webpage primary resource to be loaded includes is determined, with And corresponding to each domain name the step of objective network protocol address, including:
Command information is loaded according to the webpage that the mobile terminal is sent, the current geographic position of the mobile terminal is determined and works as Preceding operator's informaiton, and each domain name corresponding to the webpage primary resource to be loaded;Wherein, each domain name corresponds at least one net Network protocol address;
For each domain name, determined according to the current geographic position and the current operator information corresponding to domain name Objective network protocol address.
4. according to the method for claim 3, it is characterised in that for each domain name, according to the geographical position and institute The step of current operator information determines the objective network agreement of the primary resource is stated, including:
For each domain name, from multiple internet protocol addresses corresponding to domain name, operator's informaiton and the current fortune are searched Seek the consistent first network protocol address of business's information;
From the first network protocol address, the geographical position second network association nearest apart from the current geographic position is searched Discuss address;Using second internet protocol address as objective network protocol address.
5. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
First receiving module, for receiving webpage loading command information;
Sending module, for webpage loading command information to be sent to server;
Second receiving module, the primary resource head response returned for receiving the server, wherein, the primary resource head response is The server is according to webpage loading command information generation;
Acquisition module, for obtaining the domain name pass corresponding with objective network protocol address carried in the primary resource head response System;
Load-on module, for the corresponding relation based on domain name Yu objective network protocol address, carry out webpage loading.
6. mobile terminal according to claim 5, it is characterised in that the primary resource head response of the webpage to be loaded passes through Following manner generates:
Determine each domain name that webpage primary resource to be loaded includes, and objective network protocol address corresponding to each domain name;
The each domain name included for the primary resource, treated domain name is corresponding with objective network protocol address added to described In the primary resource head response for loading webpage.
7. mobile terminal according to claim 6, it is characterised in that determine each domain that webpage primary resource to be loaded includes Name, and objective network protocol address is specifically used for corresponding to each domain name:
Command information is loaded according to the webpage that the mobile terminal is sent, the current geographic position of the mobile terminal is determined and works as Preceding operator's informaiton, and each domain name corresponding to the webpage primary resource to be loaded;Wherein, each domain name corresponds at least one net Network protocol address;
For each domain name, determined according to the current geographic position and the current operator information corresponding to domain name Objective network protocol address.
8. mobile terminal according to claim 7, it is characterised in that for each domain name, according to the geographical position with And the current operator information determines that the objective network agreement of the primary resource is specifically used for:
For each domain name, from multiple internet protocol addresses corresponding to domain name, operator's informaiton and the current fortune are searched Seek the consistent first network protocol address of business's information;
From the first network protocol address, the geographical position second network association nearest apart from the current geographic position is searched Discuss address;Using second internet protocol address as objective network protocol address.
A kind of 9. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The webpage loading procedure run on processor is stated, the webpage loading procedure is realized such as claim during the computing device The step of webpage loading method any one of 1 to 4.
10. a kind of computer-readable recording medium, it is characterised in that be stored with webpage on the computer-readable recording medium and add Program is carried, the webpage loading as any one of Claims 1-4 is realized when the webpage loading procedure is executed by processor The step of method.
CN201710843143.2A 2017-09-18 2017-09-18 A kind of webpage loading method and mobile terminal Pending CN107798061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710843143.2A CN107798061A (en) 2017-09-18 2017-09-18 A kind of webpage loading method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710843143.2A CN107798061A (en) 2017-09-18 2017-09-18 A kind of webpage loading method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107798061A true CN107798061A (en) 2018-03-13

Family

ID=61531979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710843143.2A Pending CN107798061A (en) 2017-09-18 2017-09-18 A kind of webpage loading method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107798061A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium
CN110968356A (en) * 2018-09-29 2020-04-07 北京金山云网络技术有限公司 Method and device for acquiring configuration information
CN111191158A (en) * 2019-12-27 2020-05-22 北京达佳互联信息技术有限公司 Webpage resource caching method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591877A (en) * 2011-01-14 2012-07-18 深圳市同洲电子股份有限公司 Webpage resource request method for embedded browser and browsing device
CN102710748A (en) * 2012-05-02 2012-10-03 华为技术有限公司 Data acquisition method, system and equipment
CN102882991A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 Browser and domain name resolution method thereof
CN106301928A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device
CN106294848A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591877A (en) * 2011-01-14 2012-07-18 深圳市同洲电子股份有限公司 Webpage resource request method for embedded browser and browsing device
CN102710748A (en) * 2012-05-02 2012-10-03 华为技术有限公司 Data acquisition method, system and equipment
CN102882991A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 Browser and domain name resolution method thereof
CN106301928A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device
CN106294848A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium
CN108717435B (en) * 2018-05-16 2023-05-23 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium
CN110968356A (en) * 2018-09-29 2020-04-07 北京金山云网络技术有限公司 Method and device for acquiring configuration information
CN110968356B (en) * 2018-09-29 2023-09-29 北京金山云网络技术有限公司 Method and device for acquiring configuration information
CN111191158A (en) * 2019-12-27 2020-05-22 北京达佳互联信息技术有限公司 Webpage resource caching method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106469094A (en) A kind of Word message sharing method and mobile terminal
CN107577512A (en) A kind of message display method, mobile terminal and computer-readable recording medium
CN106713117A (en) Group message display method and mobile terminal
CN107563244A (en) A kind of two-dimension code safe verification method and mobile terminal
CN106506401A (en) A kind of flow managing method and mobile terminal
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106528603A (en) Application program searching method and mobile terminal
CN106503555A (en) A kind of method for ensureing safety of payment and mobile terminal
CN107657591A (en) A kind of image processing method and mobile terminal
CN105260420A (en) Method and device for providing target page in mobile application
CN107454330A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN106998367A (en) A kind of document down loading method and mobile terminal
CN106157125A (en) A kind of payment interface changing method and device
CN107798061A (en) A kind of webpage loading method and mobile terminal
CN106527884A (en) Target object processing method and mobile terminal
CN107277050A (en) A kind of data processing method, server, terminal and computer-readable recording medium
CN107562263A (en) Data entry device, mobile terminal and computer-readable recording medium
CN106817656A (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN102929971A (en) Multimedia information playing method and system
CN106569662A (en) Display method of application interface and mobile terminal
CN106888320A (en) A kind of method and mobile terminal with animation form display Weather information
CN106886409A (en) A kind of method for information display and mobile terminal
CN106681784A (en) System software management method and terminal
CN106888319A (en) The display methods and mobile terminal of a kind of shortcuts bar
CN106934052A (en) A kind of media text handling method and mobile terminal

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

Application publication date: 20180313

RJ01 Rejection of invention patent application after publication