CN108197264B - Webpage acceleration display method and device, mobile terminal and storage medium - Google Patents

Webpage acceleration display method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN108197264B
CN108197264B CN201711497667.7A CN201711497667A CN108197264B CN 108197264 B CN108197264 B CN 108197264B CN 201711497667 A CN201711497667 A CN 201711497667A CN 108197264 B CN108197264 B CN 108197264B
Authority
CN
China
Prior art keywords
resource
mobile terminal
resource content
link
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711497667.7A
Other languages
Chinese (zh)
Other versions
CN108197264A (en
Inventor
赵剑萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711497667.7A priority Critical patent/CN108197264B/en
Publication of CN108197264A publication Critical patent/CN108197264A/en
Application granted granted Critical
Publication of CN108197264B publication Critical patent/CN108197264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a webpage acceleration display method and device, a mobile terminal and a storage medium, is applied to the mobile terminal, and relates to the technical field of browsers. The method comprises the following steps: when an opening instruction of a browser is acquired, whether a resource link file exists or not is detected, the resource link file stores a resource link, if the resource link file exists, resource content corresponding to the resource link is extracted from the mobile terminal to a browser memory by using the resource link, wherein the resource content is stored in the mobile terminal, and when the opening instruction of a webpage is acquired, the resource content corresponding to the webpage is read from the browser memory, and is rendered and displayed. The webpage acceleration display method, the webpage acceleration display device, the mobile terminal and the storage medium can directly acquire resource contents from the mobile terminal through the resource links pre-stored in the resource link files, so that the webpage opening speed is increased, the use duration of a user is prolonged, and the user experience is improved.

Description

Webpage acceleration display method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of browser technologies, and in particular, to a method and an apparatus for accelerating display of a web page, a mobile terminal, and a storage medium.
Background
Mobile terminals, such as mobile phones, have become one of the most common consumer electronics products in daily life, and web browsing using a browser of a mobile terminal has become a basic requirement of most people. However, the existing browser consumes a long time in the process of requesting webpage resources and rendering and displaying, and user experience is greatly influenced.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, a mobile terminal, and a storage medium for displaying a webpage at an accelerated speed, so as to improve the opening speed and the display speed of the webpage, increase the use duration of a user, and improve the user experience.
In a first aspect, an embodiment of the present application provides a method for accelerating display of a web page, which is applied to a mobile terminal, and the method includes: when a starting instruction of a browser is acquired, detecting whether a resource link file exists or not, wherein a resource link is stored in the resource link file; if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, and storing the resource content in the mobile terminal; when an opening instruction of a webpage is obtained, reading the resource content corresponding to the webpage from the memory of the browser; rendering and displaying the resource content.
In a second aspect, an embodiment of the present application provides an apparatus for displaying web pages in an accelerated manner, where the apparatus is applied to a mobile terminal, and the apparatus includes: the resource link file detection module is used for detecting whether a resource link file exists or not when a starting instruction of the browser is obtained, and the resource link file stores resource links; a resource content extracting module, configured to extract, if the resource link file exists, resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, where the resource content is stored in the mobile terminal; the resource content reading module is used for reading the resource content corresponding to the webpage from the browser memory when the opening instruction of the webpage is obtained; and the resource content display module is used for rendering and displaying the resource content.
In a third aspect, an embodiment of the present application provides a mobile terminal, which includes a display, a memory, and a processor, where the display and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above method.
In a fourth aspect, the present application provides a computer readable storage medium having program code executable by a processor, the program code causing the processor to execute the above method.
According to the webpage acceleration display method, the webpage acceleration display device, the mobile terminal and the storage medium, whether a resource link file with a resource link is stored is detected when a starting instruction of a browser is obtained, if the resource link file exists, resource content corresponding to the resource link is extracted from the mobile terminal to a browser memory by using the resource link, wherein the resource content is stored in the mobile terminal, then the resource content corresponding to the webpage is read from the browser memory when the starting instruction of the webpage is obtained, and finally the resource content is rendered and displayed, so that the resource content of the webpage is obtained from the mobile terminal, the opening speed and the display speed of the webpage are improved, the service life of a user is prolonged, and the user experience is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a web page accelerated display method according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating a web page accelerated display method according to a second embodiment of the present application;
fig. 3 is a flowchart illustrating a step S370 of a web page accelerated display method according to a second embodiment of the present application;
FIG. 4 is a block diagram illustrating a web page accelerated display apparatus according to a third embodiment of the present application;
FIG. 5 is a block diagram illustrating a web page accelerated display apparatus according to a fourth embodiment of the present application;
fig. 6 shows a block diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 shows a block diagram of a mobile terminal for performing an accelerated web page display method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The noun explains:
the browser kernel: the browser core module is used for analyzing, typesetting and displaying the webpage;
preloading: the method comprises the following steps that a browser loads some important resource contents in advance before accessing a webpage;
pre-rendering: the browser calculates the typesetting positions of some elements of the webpage in advance before the webpage is displayed for quick display later.
The efficiency of loading website pages is related to the configuration of the mobile terminal, and the current mobile terminal is generally configured to be lower than a computer, so that the efficiency is lower when the webpage pages are loaded. Meanwhile, the resource content is obtained from the server when the current browser accesses the webpage and then displayed, but the access is limited by the network speed, the server response and the size of the file content, so that the webpage rendering display is greatly influenced. In view of the above problems, the inventor has made a long-term study and provides a method, an apparatus, a mobile terminal and a storage medium for accelerated webpage display provided in the embodiments of the present application, so as to improve the opening speed and the display speed of a webpage, increase the use duration of a user and improve the user experience, where a specific method for accelerated webpage display is described in detail in the following embodiments.
First embodiment
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a web page accelerated display method according to a first embodiment of the present application. The webpage acceleration display method aims to improve the opening speed and the display speed of the webpage, prolong the service life of a user and improve the user experience. In a specific embodiment, the web page accelerated display method is applied to the web page accelerated display apparatus 200 shown in fig. 4 and the mobile terminal 100 (fig. 6) equipped with the web page accelerated display apparatus 200. The embodiment will take a mobile terminal as an example to describe a specific process of the embodiment, and it is understood that the mobile terminal applied in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable electronic device, and the like. As will be described in detail with respect to the flow shown in fig. 1, the method for accelerating display of a web page may specifically include the following steps:
step S110: when an opening instruction of a browser is acquired, whether a resource link file exists or not is detected, and a resource link is stored in the resource link file.
In this embodiment, when a user wants to load and open a certain webpage on a browser of a mobile terminal, an instruction needs to be sent to the mobile terminal to instruct to open the browser, where the instruction may be generated by a user performing a touch operation on a browser icon disposed on an interface of the mobile terminal, or generated by a user inputting voice information instructing to open the browser on the mobile terminal, and the like, and is not specifically limited herein. Further, a certain time difference exists between the acquisition of the opening instruction of the browser and the completion of the startup of the browser by the mobile terminal, but the time difference is extremely short, so that the operation of detecting whether the resource link file exists may be performed when the opening instruction of the browser is acquired, or may be performed after the startup of the browser is completed.
Further, the resource link file is a folder disposed on a mobile terminal, such as a disk of the mobile terminal, and the resource link is a link address detected by the browser kernel as an important web page and a link address detected as important content corresponding to the important web page. The resource link file is used for storing resource links, and it can be understood that the number of the resource links stored in the resource link file is at least one, that is, the number of the resource links stored in the browser kernel to the resource link file is at least one when the browser kernel detects that the web page is important and stores the link address of the web page and the link address of the important content corresponding to the web page.
Step S120: and if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, and storing the resource content in the mobile terminal.
As an implementation manner of this embodiment, if a resource link file exists, resource content corresponding to the resource link is extracted from the mobile terminal to the browser memory by using the resource link stored in the resource link file, which is convenient for a user to need when accessing a web page, where the resource content is stored in the mobile terminal. Specifically, the browser kernel analyzes the important web page and the important content corresponding to the important web page in advance, acquires the link address of the important web page and the link address of the important content after determining the important web page and the important content corresponding to the important web page, and stores the link addresses to the resource link file. And then when the browser is started for the first time, the browser adopts a preloading function, preloads important contents corresponding to the resource links to obtain resource contents, and prestores the resource contents to the mobile terminal, specifically, the browser sends request information to the server according to the resource links stored in the resource link file to instruct the server to return the resource contents corresponding to the resource links based on the request information, and after receiving the resource contents returned by the server, the browser stores the resource contents to a disk of the mobile terminal and waits for the access of a user later.
As a mode, if there is no resource link file, the browser analyzes each web page to obtain an important web page and a link address corresponding to the important web page, analyzes the important web page to obtain important content corresponding to the important web page and a resource link corresponding to the important content, and saves the link address of the obtained important web page and the link address of the important content as a resource link to a resource link file of a disk of the mobile terminal.
Step S130: and when an opening instruction of a webpage is acquired, reading the resource content corresponding to the webpage from the memory of the browser.
Similarly, when a user wants to open a certain webpage on the browser, an instruction needs to be sent to the mobile terminal to instruct to open the webpage, where the instruction may be generated by a user performing a touch operation on a webpage icon arranged on the browser page, may be generated by a user inputting voice information instructing to open the webpage on the mobile terminal, and may also be generated by the user inputting website information of the webpage on a browser search interface, which is not specifically limited herein. Further, when the opening instruction of the webpage is obtained, the resource content is directly read from the memory of the browser, the resource content does not need to be obtained from the server through the network, and the obtaining speed of the resource content is accelerated.
Step S140: rendering and displaying the resource content.
And after the resource content of the webpage is obtained, rendering and refreshing the resource content to complete webpage display, wherein as a mode, a browser kernel presets and stores a pre-rendering module, and after the resource content is obtained, the resource content is pre-rendered through the pre-rendering module, then rendered through a browser rasterization module, and finally displayed by a GPU. It can be understood that, in this way, firstly, when accessing a web page, the resource content influencing the web page display does not need to be acquired from the server any more, the influence of the response speed and the network speed of the server on the browser rendering is avoided, in addition, the important resource content is directly read from the mobile terminal, even if no network exists, the display of partial web pages can be realized, and for the resource content, the browser can adopt a pre-rendering mechanism to perform pre-rendering, thereby completing the function of accelerating the display of the whole web page.
The method for accelerating display of a web page provided in the first embodiment of the present application detects whether a resource link file storing a resource link exists when a start instruction of a browser is obtained, and if so, extracts resource content corresponding to the resource link from a mobile terminal to a browser memory by using the resource link, where the resource content is stored in the mobile terminal, and when a start instruction of a web page is obtained, reads the resource content corresponding to the web page from the browser memory, and renders and displays the resource content, so that the resource content of the web page is obtained from the mobile terminal, the opening speed and the display speed of the web page are improved, the usage duration of a user is increased, and the user experience is improved.
Second embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a web page accelerated display method according to a second embodiment of the present application. Taking a mobile terminal as an example, the flow shown in fig. 2 will be described in detail below, where the web page accelerated display method may specifically include the following steps:
step S210: and detecting the user access frequency of the webpage within preset time.
As one way, the browser kernel may automatically detect and analyze whether the web page is an important web page according to the frequency of the web page accessed by the user, may automatically detect and analyze whether the web page is an important web page according to the score of the web page accessed by the user, and may also automatically detect and analyze whether the web page is an important web page according to the download amount of the web page accessed by the user, and the like.
Step S220: and judging whether the user access frequency is greater than a preset access frequency.
As an implementable manner, a preset access frequency is preset and stored, the preset access frequency is used as a reference standard of the access frequency of the webpage, and after the user access frequency is detected, the user access frequency is compared with the preset access frequency.
Step S230: and when the user access frequency is greater than the preset access frequency, taking the webpage as an important webpage.
Specifically, when the web page is determined to be an important web page, the web page is regarded as an important web page and the link address of the important web page is saved.
Step S240: and acquiring the resource content corresponding to the webpage when the webpage is displayed in the first frame.
In this embodiment, the resource content corresponding to the first frame of the web page when displayed is a first picture appearing on a page of the mobile terminal when the web page is displayed, and the resource content corresponding to the first frame of the web page when displayed may be a first page content displayed by the web page or a part of the first page content displayed by the web page.
Step S250: and generating a resource link of the resource content based on the resource content, and saving the resource link to a resource link file.
It can be understood that after the resource content corresponding to the first frame is determined, the resource link of the resource content may be generated based on the resource content, and the resource link may be stored in a resource link file, so as to obtain a link address of a webpage frequently accessed by a user and a link address of the resource content affecting accelerated display of the webpage.
Step S260: when an opening instruction of a browser is acquired, whether a resource link file exists or not is detected, and a resource link is stored in the resource link file.
Step S270: and if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a disk cache by using the resource link.
As one mode, firstly, the resource link stored in the resource link file is used to extract the resource content corresponding to the resource link from the disk of the mobile terminal to the disk cache for waiting for the next operation, wherein the resource content is stored in the disk of the mobile terminal.
Step S280: and setting an updating rule of the resource content.
The update rule of the resource content may be to update and analyze the resource content stored in the disk cache at preset intervals, or may also be to update and analyze the resource content stored in the disk cache in real time, and in this embodiment, no specific limitation is made.
Step S290: detecting whether the resource content needs to be updated.
As an implementable manner, the version number corresponding to the resource content is obtained, the version number of the latest resource content is detected, the version number of the resource content is matched with the version number of the latest resource content, if the version numbers are not matched, the resource content needs to be updated, otherwise, the resource content does not need to be updated.
Step S300: and when the resource content does not need to be updated, reading the resource content from the disk cache to the browser memory.
It can be understood that when the resource content does not need to be updated, if the resource content is represented as the latest version, the resource content is directly read from the disk cache to the memory of the browser, which is convenient for the next time the user accesses the web page.
Step S310: and when the resource content needs to be updated, acquiring the updated resource content corresponding to the resource link from the server again, and storing the updated resource content to the disk cache.
Further, when the resource content needs to be updated, and the current version representing the resource content is lower than the latest version, an updated resource content is obtained from the server again, the original resource content is replaced, and the updated resource content is stored in the disk cache again.
Step S320: and reading the resource content from the disk cache to the browser memory.
It should be noted that the sequence between step S300 and step S310 to step S320 is not specifically limited in this embodiment, that is, step S300 may be set before step S310 to step S320, and step S300 may also be set after step S310 to step S320.
Step S330: and when an opening instruction of the webpage is acquired, reading the resource content from the memory of the browser.
Referring to fig. 3, fig. 3 is a flowchart illustrating a step S330 of a web page accelerated display method according to a second embodiment of the present application. As will be explained in detail with respect to the flow shown in fig. 3, the method may specifically include the following steps:
step S331: when an opening instruction of a webpage is acquired, detecting the user access frequency of the webpage within a preset time.
In this embodiment, in order to determine whether a current webpage that a user wants to access is an important webpage, when an opening instruction of the webpage is obtained, first, a user access frequency of the webpage within a preset time is detected.
Step S332: and judging whether the user access frequency is greater than a preset access frequency.
It can be understood that the user access frequency and the preset access frequency are determined, when the user access frequency is higher than the preset access frequency, step S333 is executed, and when the user access frequency is not higher than the preset access frequency, the loading is performed according to a loading flow of a normal webpage, and the resource content is acquired from the server.
Step S333: when the user access frequency is greater than the preset access frequency, judging whether the resource content exists in the browser memory;
it can be understood that, when it is determined that the resource content does not exist in the memory of the browser, the loading is performed according to a loading flow of a normal web page, specifically, the browser sends resource content request information to the server, and the server responds to the request information and returns the resource content to the browser through the network.
Step S334: and when the resource content exists in the browser memory, reading the resource content from the browser memory.
Step S340: rendering and displaying the resource content.
According to the webpage acceleration display method provided by the second embodiment of the application, the user behavior is detected according to the access frequency of the webpage, the webpage frequently accessed by the user is obtained, then the browser kernel analyzes the resource content influencing the webpage display in the webpage according to the webpage rendering mechanism, the preloading mechanism is adopted, the important resource content is preloaded when the browser is started, the resource content is stored in the disk cache by the browser, and the real-time update is carried out according to the resource content modification state. When a user accesses a webpage, the browser detects whether corresponding resource content exists in the memory in advance, the resource content is obtained in a mode of reading from the mobile terminal, the resource content is not obtained from the server any more, optimal rendering processing is carried out, the purpose of displaying the webpage quickly is achieved, the use duration of the user is prolonged, and the user experience is improved.
Third embodiment
Referring to fig. 4, fig. 4 is a block diagram illustrating a web page accelerated display apparatus 200 according to a third embodiment of the present application. As will be explained below with respect to the block diagram of the modules shown in fig. 4, the web page accelerated display apparatus 200 includes: a resource link file detection module 210, a resource content extraction module 220, a resource content reading module 230, and a resource content display module 240, wherein:
the resource link file detection module 210 is configured to detect whether a resource link file exists when a starting instruction of the browser is obtained, where the resource link file stores a resource link.
A resource content extracting module 220, configured to, if the resource link file exists, extract, by using the resource link, resource content corresponding to the resource link from the mobile terminal to a browser memory, where the resource content is stored in the mobile terminal.
The resource content reading module 230 is configured to, when an opening instruction of a web page is obtained, read the resource content corresponding to the web page from the browser memory.
And a resource content display module 240, configured to render and display the resource content.
Fourth embodiment
Referring to fig. 5, fig. 5 is a block diagram illustrating a web page accelerated display apparatus 300 according to a fourth embodiment of the present application. As will be explained below with respect to the block diagram of the module shown in fig. 5, the web page accelerated display apparatus 300 includes: an access frequency detection module 310, an access frequency judgment module 320, an important web page acquisition module 330, a display data acquisition module 340, a resource link acquisition module 350, a resource link file detection module 360, a resource content extraction module 370, a resource content reading module 380, and a resource content display module 390, wherein:
an access frequency detection module 310, configured to detect a user access frequency of the web page within a preset time.
An access frequency determining module 320, configured to determine whether the user access frequency is greater than a preset access frequency.
The important web page obtaining module 330 is configured to, when the user access frequency is greater than the preset access frequency, take the web page as an important web page.
The display data obtaining module 340 is configured to obtain resource content corresponding to the webpage when the first frame is displayed.
The resource link obtaining module 350 is configured to generate a resource link of the resource content based on the resource content, and store the resource link to the resource link file.
The resource link file detection module 360 is configured to detect whether a resource link file exists when a starting instruction of the browser is obtained, where the resource link file stores a resource link.
A resource content extracting module 370, configured to, if the resource link file exists, extract, by using the resource link, resource content corresponding to the resource link from the mobile terminal to a browser memory, where the resource content is stored in the mobile terminal. Further, the resource content extraction module 370 includes: a resource content extraction sub-module 371, an update rule setting sub-module 372, an update detection sub-module 373, a first resource content reading sub-module 374, a resource content downloading sub-module 375, and a second resource content reading sub-module 376, wherein:
the resource content extracting sub-module 371 is configured to, if the resource link file exists, extract the resource content corresponding to the resource link from the mobile terminal to a disk cache by using the resource link.
And the update rule setting sub-module 372 is used for setting the update rule of the resource content.
And the update detection submodule 373 is configured to detect whether the resource content needs to be updated.
A first resource content reading sub-module 374, configured to, when the resource content does not need to be updated, read the resource content from the disk cache to the browser memory.
The resource content downloading sub-module 375 is configured to, when the resource content needs to be updated, obtain updated resource content corresponding to the resource link from the server again, and store the updated resource content to the disk cache.
A second resource content reading sub-module 376, configured to read the resource content from the disk cache to the browser memory.
And the resource content reading module 380 is configured to read the resource content from the memory of the browser when the opening instruction of the web page is obtained.
And a resource content display module 390, configured to render and display the resource content.
Fifth embodiment
A fifth embodiment of the present application provides a mobile terminal comprising a display, a memory, and a processor, the display and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, perform:
when a starting instruction of a browser is acquired, detecting whether a resource link file exists or not, wherein a resource link is stored in the resource link file;
if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, and storing the resource content in the mobile terminal;
when an opening instruction of a webpage is obtained, reading the resource content corresponding to the webpage from the memory of the browser;
rendering and displaying the resource content.
Sixth embodiment
A sixth embodiment of the present application provides a computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform:
when a starting instruction of a browser is acquired, detecting whether a resource link file exists or not, wherein a resource link is stored in the resource link file;
if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, and storing the resource content in the mobile terminal;
when an opening instruction of a webpage is obtained, reading the resource content corresponding to the webpage from the memory of the browser;
rendering and displaying the resource content.
To sum up, according to the method, the device, the mobile terminal and the storage medium for web page accelerated display provided in the embodiments of the present application, it is first detected whether a resource link file storing a resource link exists when a start instruction of a browser is obtained, and if the resource link file exists, a resource content corresponding to the resource link is extracted from the mobile terminal to a browser memory by using the resource link, where the resource content is stored in the mobile terminal, and then when the start instruction of the web page is obtained, the resource content corresponding to the web page is read from the browser memory, and finally the resource content is rendered and displayed, so that the resource content of the web page is obtained from the mobile terminal, the opening speed and the display speed of the web page are improved, the usage duration of a user is increased, and the user experience is improved.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. For any processing manner described in the method embodiment, all the processing manners may be implemented by corresponding processing modules in the apparatus embodiment, and details in the apparatus embodiment are not described again.
Referring to fig. 6 again, based on the above-mentioned web page accelerated display method and apparatus, the embodiment of the present application further provides a mobile terminal 100, which includes an electronic body portion 10, where the electronic body portion 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 7, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 7 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE 802.2.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), and any other suitable protocol for short message Communication (wimax), as well as any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor 114G may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
Referring to fig. 7 again, in the embodiment shown in fig. 7, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object is near the main display 120, for example, when the electronic body portion 10 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys 107. The keys 107 may include, for example, character keys for inputting characters, and control keys for activating control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A webpage acceleration display method is applied to a mobile terminal and comprises the following steps:
acquiring resource content corresponding to a target webpage when a first frame is displayed and storing the resource content in a magnetic disk of the mobile terminal;
generating a resource link of the resource content based on the resource content, and saving the resource link to a resource link file;
when a starting instruction of a browser is acquired, detecting whether the resource link file exists or not;
if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, wherein the resource content is stored in a disk of the mobile terminal;
when an opening instruction of the target webpage is obtained, the resource content corresponding to the target webpage is read from the browser memory;
rendering and displaying the resource content.
2. The method according to claim 1, wherein before the step of detecting whether the resource link file exists when the opening instruction of the browser is obtained, further comprising:
detecting user access frequency of a webpage within preset time;
judging whether the user access frequency is greater than a preset access frequency or not;
when the user access frequency is greater than the preset access frequency, taking the webpage as an important webpage;
determining important content corresponding to the important webpage, wherein the important content is resource content corresponding to the target webpage when a first frame is displayed;
and acquiring the link address of the important webpage and the link address of the important content and storing the link addresses to the resource link file.
3. The method of claim 1, wherein the obtaining resource content corresponding to the target webpage when the first frame is displayed and storing the resource content in a disk of the mobile terminal comprises:
sending request information to a server according to the resource link of the resource content, and indicating the server to return the resource content based on the request information;
and receiving the resource content returned by the server, and storing the resource content in the mobile terminal.
4. The method according to claim 1, wherein the extracting resource content corresponding to the resource link from the mobile terminal to a browser memory using the resource link, if the resource link file exists, comprises:
if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to a disk cache by using the resource link;
detecting whether the resource content needs to be updated;
and when the resource content does not need to be updated, reading the resource content from the disk cache to the browser memory.
5. The method of claim 4, further comprising:
when the resource content needs to be updated, acquiring updated resource content corresponding to the resource link from the server again, and storing the updated resource content to the disk cache;
and reading the resource content from the disk cache to the browser memory.
6. The method according to claim 4, wherein after extracting resource content corresponding to the resource link from the mobile terminal to a disk cache by using the resource link if the resource link file exists, further comprising:
and setting an updating rule of the resource content.
7. An apparatus for accelerating display of web pages, which is applied to a mobile terminal, the apparatus comprising:
the resource link file detection module is used for acquiring resource content corresponding to the target webpage when the first frame is displayed and storing the resource content in a disk of the mobile terminal; generating a resource link of the resource content based on the resource content, and saving the resource link to a resource link file; when a starting instruction of a browser is acquired, detecting whether the resource link file exists or not;
a resource content extracting module, configured to extract, if the resource link file exists, resource content corresponding to the resource link from the mobile terminal to a browser memory by using the resource link, where the resource content is stored in a disk of the mobile terminal;
the resource content reading module is used for reading the resource content corresponding to the target webpage from the browser memory when the starting instruction of the target webpage is obtained;
and the resource content display module is used for rendering and displaying the resource content.
8. A mobile terminal comprising a display, a memory, and a processor, the display and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-6.
9. A computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform the method of any of claims 1-6.
CN201711497667.7A 2017-12-29 2017-12-29 Webpage acceleration display method and device, mobile terminal and storage medium Active CN108197264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711497667.7A CN108197264B (en) 2017-12-29 2017-12-29 Webpage acceleration display method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711497667.7A CN108197264B (en) 2017-12-29 2017-12-29 Webpage acceleration display method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108197264A CN108197264A (en) 2018-06-22
CN108197264B true CN108197264B (en) 2020-08-25

Family

ID=62587607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711497667.7A Active CN108197264B (en) 2017-12-29 2017-12-29 Webpage acceleration display method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108197264B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921678A (en) * 2018-07-24 2018-11-30 广州快批信息科技有限公司 A kind of resource share method and device in cloud shop
CN110895592B (en) * 2018-08-22 2023-03-17 北京字节跳动网络技术有限公司 Link starting method, device, equipment and medium on mobile terminal
CN109684578A (en) * 2018-12-28 2019-04-26 北京字节跳动网络技术有限公司 Method and apparatus for showing information
CN110191229B (en) * 2019-05-29 2021-05-04 Oppo(重庆)智能科技有限公司 Display method and related device
CN112115388A (en) * 2020-09-09 2020-12-22 深圳市欢太科技有限公司 Webpage display method, mobile terminal and computer readable storage medium
CN113713378A (en) * 2021-09-02 2021-11-30 北京百度网讯科技有限公司 Content generation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810176A (en) * 2012-11-07 2014-05-21 腾讯科技(深圳)有限公司 Pre-fetching accessing method and device of webpage information
CN105320687A (en) * 2014-07-29 2016-02-10 腾讯科技(北京)有限公司 Webpage display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8321533B2 (en) * 2009-08-03 2012-11-27 Limelight Networks, Inc. Systems and methods thereto for acceleration of web pages access using next page optimization, caching and pre-fetching techniques

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810176A (en) * 2012-11-07 2014-05-21 腾讯科技(深圳)有限公司 Pre-fetching accessing method and device of webpage information
CN105320687A (en) * 2014-07-29 2016-02-10 腾讯科技(北京)有限公司 Webpage display method and device

Also Published As

Publication number Publication date
CN108197264A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108197264B (en) Webpage acceleration display method and device, mobile terminal and storage medium
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN106296255B (en) Page information display method and device
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN107247691B (en) Text information display method and device, mobile terminal and storage medium
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
CN108932102B (en) Data processing method and device and mobile terminal
CN108037990B (en) Task information processing method and device and server
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
CN108512997B (en) Display method, display device, mobile terminal and storage medium
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN110020293B (en) Multimedia data display method, device and storage medium
CN108073647B (en) Webpage display method and device
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
CN108958576B (en) Content identification method and device and mobile terminal
CN109032491B (en) Data processing method and device and mobile terminal
CN108763297B (en) Webpage resource processing method and device and mobile terminal
CN110221882B (en) Display method, display device, mobile terminal and storage medium
MX2014008884A (en) Mobile terminal resource processing method, device and apparatus.
CN109062648B (en) Information processing method and device, mobile terminal and storage medium
CN108803961B (en) Data processing method and device and mobile terminal
CN110221736B (en) Icon processing method and device, mobile terminal and storage medium
CN109032465B (en) Data processing method and device and mobile terminal
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
CN105095161B (en) Method and device for displaying rich text information

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant