CN108197264A - 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
CN108197264A
CN108197264A CN201711497667.7A CN201711497667A CN108197264A CN 108197264 A CN108197264 A CN 108197264A CN 201711497667 A CN201711497667 A CN 201711497667A CN 108197264 A CN108197264 A CN 108197264A
Authority
CN
China
Prior art keywords
resource
mobile terminal
resource link
resource content
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.)
Granted
Application number
CN201711497667.7A
Other languages
Chinese (zh)
Other versions
CN108197264B (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

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

网页加速显示方法、装置、移动终端以及存储介质Web page accelerated display method, device, mobile terminal and storage medium

技术领域technical field

本申请涉及浏览器技术领域,更具体地,涉及一种网页加速显示方法、装置、移动终端以及存储介质。The present application relates to the technical field of browsers, and more specifically, to a method and device for accelerated display of web pages, a mobile terminal and a storage medium.

背景技术Background technique

移动终端,例如手机,已经成为人们日常生活中最常用的消费型电子产品之一,使用移动终端的浏览器进行网页浏览,已经变成了大多数人的基本需求。但是现有的浏览器在网页资源的请求以及渲染显示的过程中,耗时较长,大大的影响了用户体验。A mobile terminal, such as a mobile phone, has become one of the most commonly used consumer electronic products in people's daily life, and web browsing using a browser of the mobile terminal has become a basic requirement of most people. However, existing browsers take a long time in the process of requesting web page resources and rendering and displaying, which greatly affects user experience.

发明内容Contents of the invention

鉴于上述问题,本申请提出了一种网页加速显示方法、装置、移动终端以及存储介质,以提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验。In view of the above problems, the present application proposes a web page accelerated display method, device, mobile terminal and storage medium to increase the opening speed and display speed of the web page, increase the user's use time and improve user experience.

第一方面,本申请实施例提供了一种网页加速显示方法,应用于移动终端,所述方法包括:当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;将所述资源内容进行渲染并显示。In the first aspect, the embodiment of the present application provides a method for accelerated display of webpages, which is applied to mobile terminals, and the method includes: when a browser opening instruction is obtained, detecting whether there is a resource link file, and the resource link file contains Save the resource link; if there is the resource link file, use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory, and the resource content is stored in the mobile terminal; when When the opening instruction of the webpage is obtained, the resource content corresponding to the webpage is read from the browser memory; and the resource content is rendered and displayed.

第二方面,本申请实施例提供了一种网页加速显示装置,应用于移动终端,所述装置包括:资源链接文件检测模块,用于当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;资源内容提取模块,用于如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;资源内容读取模块,用于当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;资源内容显示模块,用于将所述资源内容进行渲染并显示。In the second aspect, the embodiment of the present application provides a web page accelerated display device, which is applied to a mobile terminal, and the device includes: a resource link file detection module, used to detect whether there is a resource link when an instruction to open the browser is obtained file, resource links are stored in the resource link file; resource content extraction module, if there is the resource link file, use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to browse browser memory, the resource content is stored in the mobile terminal; the resource content reading module is used to read the resource content corresponding to the web page from the browser memory when the opening instruction of the web page is obtained; The content display module is used to render and display 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, the display and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by When the processor executes, the processor executes the above method.

第四方面,本申请实施例提供了一种具有处理器可执行的程序代码的计算机可读取存储介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium having a program code executable by a processor, and the program code causes the processor to execute the above method.

本申请实施例提供的网页加速显示方法、装置、移动终端以及存储介质,首先在获取到浏览器的开启指令时,检测是否存在保存有资源链接的资源链接文件,如果存在资源链接文件,则利用资源链接从移动终端提取与资源链接对应的资源内容到浏览器内存,其中,该资源内容保存在移动终端,然后在获取到网页的开启指令时,从该浏览器内存读取该网页对应的资源内容,最后将资源内容进行渲染并显示,从而使网页的资源内容从移动终端获取,提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验。The web page accelerated display method, device, mobile terminal, and storage medium provided by the embodiments of the present application firstly detect whether there is a resource link file storing resource links when the browser’s opening command is obtained, and if there is a resource link file, use The resource link extracts the resource content corresponding to the resource link from the mobile terminal to the browser memory, wherein the resource content is stored in the mobile terminal, and then reads the resource corresponding to the web page from the browser memory when the instruction to open the web page is obtained content, and finally render and display the resource content, so that the resource content of the web page can be obtained from the mobile terminal, improve the opening speed and display speed of the web page, increase the user's use time and improve the user experience.

本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出了本申请第一实施例提供的网页加速显示方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for accelerated display of web pages provided in the first embodiment of the present application;

图2示出了本申请第二实施例提供的网页加速显示方法的流程示意图;FIG. 2 shows a schematic flowchart of a method for accelerated display of webpages provided in the second embodiment of the present application;

图3示出了本申请第二实施例提供的网页加速显示方法的步骤S370的流程示意图;FIG. 3 shows a schematic flowchart of step S370 of the method for accelerated display of web pages provided in the second embodiment of the present application;

图4示出了本申请第三实施例提供的网页加速显示装置的模块框图;FIG. 4 shows a module block diagram of a web page acceleration display device provided in a third embodiment of the present application;

图5示出了本申请第四实施例提供的网页加速显示装置的模块框图;FIG. 5 shows a module block diagram of a web page acceleration display device provided in a fourth embodiment of the present application;

图6示出了本申请实施例提供的一种移动终端的结构框图;FIG. 6 shows a structural block diagram of a mobile terminal provided by an embodiment of the present application;

图7示出了用于执行根据本申请实施例的网页加速显示方法的移动终端的框图。Fig. 7 shows a block diagram of a mobile terminal for executing a method for accelerated display of a web page according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

名词解释:Glossary:

浏览器内核:浏览器核心模块,对网页进行解析,排版,显示;Browser kernel: browser core module, which parses, typesets and displays web pages;

预加载:浏览器在访问网页前预先加载一些重要的资源内容;Preloading: The browser preloads some important resource content before accessing the webpage;

预渲染:浏览器在网页显示前对网页的一些元素预先进行计算排版位置,用于之后的快速显示。Pre-rendering: The browser pre-calculates the typesetting position of some elements of the webpage before the webpage is displayed, for quick display later.

用于移动终端设备上的浏览器,加载网站页面的效率与移动终端的配置有关,而现在的移动终端相对电脑普遍配置偏低,因此,在加载网页页面时效率偏低。同时,目前的浏览器访问网页都是从服务器上获取资源内容,然后再进行显示,但是这样就会受限于网速、服务器响应和文件内容的大小,对于网页渲染显示有很大的影响,如果网速慢的情况下,请求的网页资源很慢才能获取到,大大影响了用户体验,对于网页的留存时间也有很大影响。针对上述问题,发明人经过长时间的研究,并提出了本申请实施例提供的网页加速显示方法、装置、移动终端以及存储介质,以提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验,其中,具体的网页加速显示方法在后续实施例中详细说明。For browsers on mobile terminal devices, the efficiency of loading website pages is related to the configuration of the mobile terminal, and the current mobile terminals generally have lower configuration than computers, so the efficiency of loading web pages is relatively low. At the same time, the current browser accesses the webpage to obtain the resource content from the server, and then displays it, but this will be limited by the network speed, server response and file content size, which has a great impact on the rendering and display of the webpage. If the network speed is slow, the requested webpage resources can only be obtained very slowly, which greatly affects the user experience and has a great impact on the retention time of the webpage. In view of the above problems, the inventor, after a long period of research, proposed a web page acceleration display method, device, mobile terminal and storage medium provided by the embodiment of the present application, so as to increase the opening speed and display speed of the web page, increase the user's use time and To improve user experience, the specific method for accelerated display of web pages will be described in detail in subsequent embodiments.

第一实施例first embodiment

请参阅图1,图1示出了本申请第一实施例提供的网页加速显示方法的流程示意图。所述网页加速显示方法旨在提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验。在具体的实施例中,所述网页加速显示方法应用于如图4所示的网页加速显示装置200以及配置有网页加速显示装置200的移动终端100(图6)。本实施例将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本申请实施例所应用的移动终端可以为手机、平板电脑以及穿戴式电子设备等。下面将针对图1所示的流程进行详细的阐述,上述网页加速显示方法具体可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 shows a schematic flowchart of a method for accelerated display of a web page provided in the first embodiment of the present application. The method for accelerated display of webpages aims at increasing the opening and displaying speeds of webpages, increasing the use time of users and improving user experience. In a specific embodiment, the method for accelerated web page display is applied to the accelerated web page display device 200 shown in FIG. 4 and the mobile terminal 100 ( FIG. 6 ) configured with the accelerated web page display device 200 . This embodiment will take a mobile terminal as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the mobile terminal applied in this embodiment of the application may be a mobile phone, a tablet computer, or a wearable electronic device. The process shown in FIG. 1 will be described in detail below, and the above-mentioned method for accelerated display of web pages may specifically include the following steps:

步骤S110:当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接。Step S110: When the instruction to open the browser is obtained, it is detected whether there is a resource link file, and the resource link file stores resource links in the resource link file.

在本实施例中,当用户欲在移动终端的浏览器上加载打开某个网页时,首先需要发送指令至移动终端以指示开启所述浏览器,其中,所述指令可以为用户针对设置于移动终端界面上的浏览器图标进行触控操作生成,也可以为用户在移动终端输入指示开启浏览器的语音信息生成等,在此不做具体地限定。进一步地,移动终端从获取到浏览器的开启指令到完成浏览器的启动存在一定的时间差,但是时间差极短,因此,执行检测是否存在资源链接文件的操作可以是在获取到浏览器的开启指令时执行,也可以是在完成浏览器的启动后执行,可选的,在本实施例中,当获取到浏览器的开启指令时,便开始执行检测是否存在资源链接文件,以减少网页加载的等待时间。In this embodiment, when the user wants to load and open a certain webpage on the browser of the mobile terminal, it is first necessary to send an instruction to the mobile terminal to instruct to open the browser, wherein the instruction can be the The browser icon on the terminal interface is generated by touch operation, or the voice information that the user inputs on the mobile terminal to instruct to open the browser can also be generated, etc., which are not specifically limited here. Further, there is a certain time difference between the mobile terminal obtaining the browser opening instruction and the completion of the browser startup, but the time difference is extremely short. Therefore, the operation of detecting whether there is a resource link file can be performed after obtaining the browser opening instruction. It can also be executed after the browser is started. Optionally, in this embodiment, when the browser’s opening instruction is obtained, it starts to detect whether there is a resource link file, so as to reduce the loading time of the webpage. waiting time.

进一步地,资源链接文件为设置于移动终端、如移动终端的磁盘上的文件夹,资源链接为浏览器内核检测为重要网页的链接地址以及检测为重要网页对应的重要内容的链接地址。其中,该资源链接文件用于存储资源链接,可以理解的,所述资源链接文件中保存的资源链接数量至少为一个,即浏览器内核检测为重要的网页并将其链接地址以及其对应的重要内容的链接地址保存至所述资源链接文件的数量至少为一个。Further, the resource link file is a folder set on the mobile terminal, such as the disk of the mobile terminal, and the resource link is the link address of the important web page detected by the browser kernel and the link address of the important content corresponding to the important web page. Wherein, the resource link file is used to store resource links. It can be understood that the number of resource links stored in the resource link file is at least one, that is, the browser kernel detects an important web page and its link address and its corresponding important The number of content link addresses stored in the resource link file is at least one.

步骤S120:如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端。Step S120: If the resource link file exists, use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the memory of the browser, and store the resource content in the mobile terminal.

作为本实施例的一种实施方式,如果存在资源链接文件,则利用资源链接文件中保存的资源链接从移动终端提取与资源链接对应的资源内容到浏览器内存,方便用户在访问网页时需要,其中,该资源内容保存在该移动终端。具体地,浏览器内核预先分析重要网页以及该重要网页对应的重要内容,在确定重要网页和重要网页对应的重要内容后获取该重要网页的链接地址和重要内容的链接地址并保存至资源链接文件。然后在浏览器首次启动时,浏览器采用预加载功能,对于资源链接对应的重要内容进行预加载得到资源内容,将所述资源内容预先保存至所述移动终端,具体地,浏览器根据保存在资源链接文件中的资源链接向服务器发送请求信息,以指示服务器基于该请求信息返回该与资源链接对应的资源内容,浏览器在接收到服务器返回的资源内容后,将资源内容保存至移动终端的磁盘,等待之后的用户访问。As an implementation of this embodiment, if there is a resource link file, then use the resource link stored in the resource link file to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory, which is convenient for the user when accessing the webpage. Wherein, the resource content is stored in the mobile terminal. Specifically, the browser kernel analyzes the important webpage and the important content corresponding to the important webpage in advance, obtains the link address of the important webpage and the link address of the important content after determining the important webpage and the important content corresponding to the important webpage, and saves them in the resource link file . Then when the browser starts for the first time, the browser uses the preloading function to preload the important content corresponding to the resource link to obtain the resource content, and save the resource content to the mobile terminal in advance. Specifically, the browser saves the resource content according to the The resource link in the resource link file sends request information to the server to instruct the server to return the resource content corresponding to the resource link based on the request information. After receiving the resource content returned by the server, the browser saves the resource content to the mobile terminal's Disk, waiting for subsequent user access.

其中,作为一种方式,如果不存在资源链接文件,则浏览器对各个网页进行分析获取重要网页以及所述重要网页对应的链接地址,再对重要网页进行分析获取所述重要网页对应的重要内容以及所述重要内容对应的资源链接,将获取的重要网页的链接地址和重要内容的链接地址共同作为资源链接保存至移动终端的磁盘的资源链接文件。Wherein, as a method, if there is no resource link file, the browser analyzes each webpage to obtain an important webpage and the link address corresponding to the important webpage, and then analyzes the important webpage to obtain the important content corresponding to the important webpage As well as the resource link corresponding to the important content, the obtained link address of the important webpage and the link address of the important content are used as resource links and saved to the resource link file of the disk of the mobile terminal.

步骤S130:当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容。Step S130: When the instruction to open the webpage is obtained, read the resource content corresponding to the webpage from the browser memory.

同样的,当用户欲打开浏览器上的某个网页时,首先需要发送指令至移动终端以指示开启所述网页,其中,所述指令可以为用户针对设置于浏览器页面上的网页图标进行触控操作生成、可以为用户在移动终端上输入指示开启所述网页的语音信息生成、也可以为用户在浏览器搜索界面输入的所述网页的网址信息生成,在此不做具体地限定。进一步地,当获取到网页的开启指令时,从浏览器内存直接读取所述资源内容,不用再通过网络从服务器获取所述资源内容,加速资源内容的获取速度。Similarly, when the user wants to open a certain webpage on the browser, it is first necessary to send an instruction to the mobile terminal to instruct to open the webpage, wherein the instruction can be for the user to touch the webpage icon set on the browser page. It can be generated for the voice information input by the user on the mobile terminal instructing to open the webpage, or it can be generated for the URL information of the webpage input by the user on the browser search interface, which is not specifically limited here. Further, when the opening instruction of the webpage is obtained, the resource content is directly read from the browser memory, and the resource content is no longer obtained from the server through the network, thereby speeding up the resource content acquisition speed.

步骤S140:将所述资源内容进行渲染并显示。Step S140: Render and display the resource content.

在获取到所述网页的资源内容后,将该资源内容进行渲染刷新,完成网页显示,作为一种方式,浏览器内核预先设置并存储预渲染模块,并且在获取到所述资源内容后,通过所述预渲染模块对资源内容进行预先渲染,再通过浏览器光栅化模块进行渲染,最后再进行GPU显示。可以理解的,这样的方式首先解决了访问网页时,对于影响网页显示的资源内容不再需要从服务器上获取,避免了服务器的响应速度和网速对于浏览器渲染的影响,另外对于重要的资源内容从移动终端直接读取,即使没有网络也可以实现部分网页的显示,对于这些资源内容浏览器可以采用预渲染的机制进行提前渲染,进而完成整个网页加速显示的功能。After obtaining the resource content of the webpage, the resource content is rendered and refreshed to complete the display of the webpage. As a method, the browser kernel presets and stores the pre-rendering module, and after obtaining the resource content, through The pre-rendering module pre-renders the resource content, then renders it through the browser rasterization module, and finally performs GPU display. It is understandable that this method first solves the need to obtain the resource content that affects the display of the webpage from the server when accessing the webpage, and avoids the impact of the server's response speed and network speed on the browser's rendering. In addition, for important resources The content is directly read from the mobile terminal, even if there is no network, the display of some web pages can be realized. For these resources, the browser can use the pre-rendering mechanism to render in advance, and then complete the function of accelerating the display of the entire web page.

本申请第一实施例提供的网页加速显示方法,在获取到浏览器的开启指令时,检测是否存在保存有资源链接的资源链接文件,如果存在,则利用资源链接从移动终端提取与资源链接对应的资源内容到浏览器内存,其中,资源内容是保存在所述移动终端,在获取到网页的开启指令时,从该浏览器内存读取该网页对应的资源内容,再将该资源内容进行渲染并显示,从而使网页的资源内容从移动终端获取,提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验。The method for accelerated display of webpages provided in the first embodiment of the present application detects whether there is a resource link file storing resource links when the browser’s opening instruction is obtained, and if so, uses resource links to extract resources corresponding to the resource links from the mobile terminal. The resource content of the webpage is stored in the browser memory, wherein the resource content is stored in the mobile terminal, and when the opening instruction of the webpage is obtained, the resource content corresponding to the webpage is read from the browser memory, and then the resource content is rendered And display, so that the resource content of the webpage is obtained from the mobile terminal, the speed of opening and displaying the webpage is improved, the duration of use of the user is increased, and the user experience is improved.

第二实施例second embodiment

请参阅图2,图2示出了本申请第二实施例提供的网页加速显示方法的流程示意图。下面将以移动终端为例,针对图2所示的流程进行详细的阐述,所述网页加速显示方法具体可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 shows a schematic flowchart of a method for accelerated display of webpages provided by the second embodiment of the present application. The following will take the mobile terminal as an example to elaborate on the process shown in Figure 2. The method for accelerated display of web pages may specifically include the following steps:

步骤S210:检测所述网页在预设时间内的用户访问频率。Step S210: Detect the user access frequency of the webpage within a preset time.

作为一种方式,浏览器内核可以根据用户访问网页的频率自动检测分析是否为重要网页,可以根据用户对网页的评分自动检测分析是否为重要网页,也可以根据用户对网页的下载量自动检测分析是否为重要网页等,其中,在本实施例中,以根据用户访问网页的频率检测分析所述网页是否为重要网页为例进行说明。As a method, the browser kernel can automatically detect and analyze whether it is an important web page according to the frequency of user visits to the web page, automatically detect and analyze whether it is an important web page according to the user's rating of the web page, or automatically detect and analyze according to the user's download volume of the web page Whether it is an important webpage, etc. In this embodiment, it will be described by taking detection and analysis of whether the webpage is an important webpage according to the frequency of webpages accessed by users as an example.

步骤S220:判断所述用户访问频率是否大于预设访问频率。Step S220: Determine whether the user access frequency is greater than a preset access frequency.

其中,作为一种可实施的方式,预先设置并存储预设访问频率,将所述预设访问频率作为网页被访问的频率的参考标准,在检测到用户访问频率后,将所述用户访问频率与预设访问频率进行比较,可以理解的,当所述用户访问频率高于预设访问频率时,表征所述网页为重要网页,当所述用户访问频率不高于预设访问频率时,表征所述网页为非重要网页。Wherein, as an implementable manner, the preset access frequency is preset and stored, and the preset access frequency is used as a reference standard for the frequency of web pages being accessed. After detecting the user access frequency, the user access frequency Compared with the preset access frequency, it can be understood that when the user’s access frequency is higher than the preset access frequency, it indicates that the webpage is an important webpage; when the user’s access frequency is not higher than the preset access frequency, it indicates that Said webpage is an unimportant webpage.

步骤S230:当所述用户访问频率大于所述预设访问频率时,将所述网页作为重要网页。Step S230: When the user's access frequency is greater than the preset access frequency, take the webpage as an important webpage.

具体地,当判定该网页为重要网页时,将所述网页作为重要网页并将其链接地址进行保存。Specifically, when it is determined that the webpage is an important webpage, the webpage is regarded as an important webpage and its link address is saved.

步骤S240:获取所述网页在第一帧显示时所对应的资源内容。Step S240: Obtain resource content corresponding to the webpage when the first frame is displayed.

在本实施例中,网页在第一帧显示时所对应的资源内容为网页在进行显示时,在移动终端页面上出现的第一画面,该第一帧显示时所对应的资源内容可以为网页显示的首页内容,也可以为网页显示的部分首页内容,可以理解的,网页的第一帧显示为用户肉眼可见的第一内容,因此,对用户而言也最为重要,将所述第一帧显示时对应的资源内容作为重要内容预加载并保存至所述移动终端,可选的,预加载并保存至所述移动终端的磁盘。In this embodiment, the resource content corresponding to the webpage when the first frame is displayed is the first picture that appears on the mobile terminal page when the webpage is displayed, and the corresponding resource content when the first frame is displayed can be the webpage The displayed homepage content can also be part of the homepage content displayed on the webpage. It is understandable that the first frame of the webpage is displayed as the first content visible to the user. Therefore, it is also the most important for the user. The first frame The corresponding resource content during display is preloaded and saved to the mobile terminal as important content, and optionally, preloaded and saved to a disk of the mobile terminal.

步骤S250:基于所述资源内容生成所述资源内容的资源链接,将所述资源链接保存至资源链接文件。Step S250: Generate a resource link of the resource content based on the resource content, and save the resource link to a resource link file.

可以理解的,在确定第一帧显示时对应的资源内容后,可以基于所述资源内容的生成所述资源内容的资源链接,将所述资源链接保存至资源链接文件,从而获取到用户经常访问的网页的链接地址以及影响网页加速显示的资源内容的链接地址。It can be understood that after determining the corresponding resource content when the first frame is displayed, the resource link of the resource content can be generated based on the resource content, and the resource link can be saved in the resource link file, so as to obtain the frequently accessed resources of the user. The link address of the web page and the link address of the resource content that affects the accelerated display of the web page.

步骤S260:当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接。Step S260: When the instruction to open the browser is obtained, detect whether there is a resource link file, and the resource link file stores resource links.

步骤S270:如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到磁盘缓存。Step S270: If the resource link file exists, use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the disk cache.

作为一种方式,首先利用资源链接文件中保存的资源链接从移动终端的磁盘提取与资源链接对应的资源内容到磁盘缓存等待下一步操作,其中,所述资源内容保存在所述移动终端的磁盘中。As a method, first use the resource link stored in the resource link file to extract the resource content corresponding to the resource link from the disk of the mobile terminal to the disk cache and wait for the next operation, wherein the resource content is stored in the disk of the mobile terminal middle.

步骤S280:设置所述资源内容的更新规则。Step S280: Set update rules for the resource content.

其中,所述资源内容的更新规则可以为按预设间隔时间对保存在磁盘缓存处的资源内容进行更新分析,也可以为实时对保存在磁盘缓存处的资源内容进行更新分析,在本实施例中,不做具体的限定。Wherein, the update rule of the resource content may be to update and analyze the resource content stored in the disk cache at a preset interval, or to update and analyze the resource content stored in the disk cache in real time. In this embodiment , without any specific limitation.

步骤S290:检测所述资源内容是否需要更新。Step S290: Detect whether the resource content needs to be updated.

作为一种可实施方式,获取所述资源内容对应的版本号,并检测最新资源内容的版本号,将所述资源内容的版本号和最新资源内容的版本号进行匹配,如果不匹配,则需要更新,反之,则不需要更新。As an implementable manner, the version number corresponding to the resource content is obtained, and the version number of the latest resource content is detected, and the version number of the resource content is matched with the version number of the latest resource content. update, otherwise, no update is required.

步骤S300:当所述资源内容不需要更新时,从所述磁盘缓存中读取所述资源内容至所述浏览器内存。Step S300: When the resource content does not need to be updated, read the resource content from the disk cache into the browser memory.

可以理解的,当所述资源内容不需要更新时,表征所述资源内容为最新版本,则直接从磁盘缓存中读取所述资源内容到浏览器内存,方便下次用户在访问网页时使用。It can be understood that when the resource content does not need to be updated, it indicates that the resource content is the latest version, and the resource content is directly read from the disk cache to the browser memory, which is convenient for the next time the user visits the web page.

步骤S310:当所述资源内容需要更新时,重新从服务器获取与所述资源链接对应的更新资源内容,将所述更新资源内容保存至所述磁盘缓存。Step S310: When the resource content needs to be updated, reacquire the updated resource content corresponding to the resource link from the server, and save the updated resource content to the disk cache.

进一步地,当所述资源内容需要更新时,表征所述资源内容的当前版本已低于最新版本,则重新从服务器获取一个更新资源内容并替换原有的资源内容,重新将所述更新资源内容保存至磁盘缓存。Further, when the resource content needs to be updated, indicating that the current version of the resource content is lower than the latest version, then re-acquire an updated resource content from the server and replace the original resource content, and re-update the resource content Save to disk cache.

步骤S320:从所述磁盘缓存中读取所述资源内容至所述浏览器内存。Step S320: Read the resource content from the disk cache into the browser memory.

需要说明的是,步骤S300和步骤S310-步骤S320之间的先后顺序在本实施例中不做具体地限定,即步骤S300可以设置于步骤S310-步骤S320之前,步骤S300也可以设置于步骤S310-步骤S320之后。It should be noted that the sequence between step S300 and step S310-step S320 is not specifically limited in this embodiment, that is, step S300 can be set before step S310-step S320, and step S300 can also be set before step S310 - after step S320.

步骤S330:当获取到网页的开启指令时,从所述浏览器内存读取所述资源内容。Step S330: When the instruction to open the webpage is obtained, read the resource content from the browser memory.

请参阅图3,图3示出了本申请第二实施例提供的网页加速显示方法的步骤S330的流程示意图。下面将针对图3所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 shows a schematic flow chart of step S330 of the accelerated web page display method provided by the second embodiment of the present application. The flow process shown in Figure 3 will be described in detail below, and the method may specifically include the following steps:

步骤S331:当获取到网页的开启指令时,检测所述网页在预设时间内的用户访问频率。Step S331: When an instruction to open a webpage is obtained, detect the user's access frequency of the webpage within a preset time.

在本实施例中,为了判断当前用户欲访问的网页是否为重要网页,当获取到网页的开启指令时,首先检测该网页在预设时间内的用户访问频率。In this embodiment, in order to judge whether the webpage that the current user wants to visit is an important webpage, when the opening instruction of the webpage is obtained, the user's access frequency of the webpage within a preset time is firstly detected.

步骤S332:判断所述用户访问频率是否大于预设访问频率。Step S332: Determine whether the user access frequency is greater than a preset access frequency.

可以理解的,将用户访问频率和预设访问频率进行判断,当所述用户访问频率高于预设访问频率时,则执行步骤S333,当所述用户访问频率不高于所述预设访问频率时,则按正常网页的加载流程进行加载,从服务器获取所述资源内容。It can be understood that the user access frequency and the preset access frequency are judged, and 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 , load according to the normal web page loading process, and obtain the resource content from the server.

步骤S333:当所述用户访问频率大于所述预设访问频率时,判断所述浏览器内存是否存在所述资源内容;Step S333: When the user access frequency is greater than the preset access frequency, determine whether the resource content exists in the browser memory;

可以理解的,当判断所述浏览器内存不存在所述资源内容时,则按正常网页的加载流程进行加载,具体地,浏览器向服务器发送资源内容请求信息,服务器响应所述请求信息,通过网络返回资源内容至所述浏览器。It can be understood that when it is judged that the resource content does not exist in the browser memory, it loads according to the normal webpage loading process. Specifically, the browser sends resource content request information to the server, and the server responds to the request information through The network returns resource content to the browser.

步骤S334:当所述浏览器内存存在所述资源内容时,从所述浏览器内存读取所述资源内容。Step S334: When the resource content exists in the browser memory, read the resource content from the browser memory.

步骤S340:将所述资源内容进行渲染并显示。Step S340: Render and display the resource content.

本申请第二实施例提供的网页加速显示方法,根据网页的访问频率,检测用户行为,获取用户经常访问的网页,然后浏览器内核根据网页渲染机制分析网页中影响网页显示的资源内容,采用预加载机制,在浏览器启动完成时预先加载这些重要的资源内容,浏览器将该资源内容保存在磁盘缓存中,根据资源内容修改状态进行实时更新。当用户访问网页时,浏览器预先检测在内存中是否有对应的资源内容,对于有资源内容的采用从移动终端读取的方式获取,不再从服务器上获取资源内容,进行优选渲染处理,达到快速显示网页的目的,增加用户的使用时长和提高用户体验。The web page acceleration display method provided in the second embodiment of the present application detects user behavior according to the access frequency of the web page, and obtains the web pages frequently visited by the user, and then the browser kernel analyzes the resource content in the web page that affects the display of the web page according to the web page rendering mechanism, and adopts the preset The loading mechanism preloads these important resource contents when the browser is started, and the browser saves the resource contents in the disk cache, and updates them in real time according to the modification status of the resource contents. When a user visits a webpage, the browser checks in advance whether there is a corresponding resource content in the memory, and obtains resource content by reading from the mobile terminal instead of obtaining resource content from the server, and performs optimal rendering processing to achieve Quickly display the purpose of the webpage, increase the user's use time and improve the user experience.

第三实施例third embodiment

请参阅图4,图4示出了本申请第三实施例提供的网页加速显示装置200的模块框图。下面将针对图4所示的模块框图进行阐述,所述网页加速显示装置200包括:资源链接文件检测模块210、资源内容提取模块220、资源内容读取模块230以及资源内容显示模块240,其中:Please refer to FIG. 4 , which shows a module block diagram of a web page acceleration display device 200 provided in a third embodiment of the present application. The module block diagram shown in FIG. 4 will be described below. The web page acceleration display device 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:

资源链接文件检测模块210,用于当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接。The resource link file detection module 210 is configured to detect whether there is a resource link file when an instruction to open the browser is obtained, and the resource link file stores resource links.

资源内容提取模块220,用于如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端。The resource content extraction module 220 is used to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory by using the resource link file if the resource link file exists, and the resource content is stored in the mobile terminal. terminal.

资源内容读取模块230,用于当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容。The resource content reading module 230 is configured to read the resource content corresponding to the web page from the browser memory when an instruction to open the web page is acquired.

资源内容显示模块240,用于将所述资源内容进行渲染并显示。The resource content display module 240 is configured to render and display the resource content.

第四实施例Fourth embodiment

请参阅图5,图5示出了本申请第四实施例提供的网页加速显示装置300的模块框图。下面将针对图5所示的模块框图进行阐述,所述网页加速显示装置300包括:访问频率检测模块310、访问频率判断模块320、重要网页获取模块330、显示数据获取模块340和资源链接获取模块350、资源链接文件检测模块360、资源内容提取模块370、资源内容读取模块380以及资源内容显示模块390,其中:Please refer to FIG. 5 , which shows a module block diagram of a web page acceleration display device 300 provided in a fourth embodiment of the present application. The module block diagram shown in FIG. 5 will be explained below. The web page acceleration display device 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 and a resource link acquisition module. 350. Resource link file detection module 360, resource content extraction module 370, resource content reading module 380, and resource content display module 390, wherein:

访问频率检测模块310,用于检测所述网页在预设时间内的用户访问频率。The access frequency detection module 310 is configured to detect the user access frequency of the webpage within a preset time.

访问频率判断模块320,用于判断所述用户访问频率是否大于预设访问频率。The access frequency judging module 320 is configured to judge whether the user's access frequency is greater than a preset access frequency.

重要网页获取模块330,用于当所述用户访问频率大于所述预设访问频率时,将所述网页作为重要网页。The important webpage acquisition module 330 is configured to use the webpage as an important webpage when the user's access frequency is greater than the preset access frequency.

显示数据获取模块340,用于获取所述网页在第一帧显示时所对应的资源内容。The display data acquisition module 340 is configured to acquire the resource content corresponding to the webpage when the first frame is displayed.

资源链接获取模块350,用于基于资源内容生成所述资源内容的资源链接,将所述资源链接保存至所述资源链接文件。The resource link obtaining module 350 is configured to generate a resource link of the resource content based on the resource content, and save the resource link to the resource link file.

资源链接文件检测模块360,用于当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接。The resource link file detection module 360 is configured to detect whether there is a resource link file when an instruction to open the browser is obtained, and the resource link file stores resource links.

资源内容提取模块370,用于如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端。进一步地,所述资源内容提取模块370包括:资源内容提取子模块371、更新规则设置子模块372、更新检测子模块373、第一资源内容读取子模块374、资源内容下载子模块375以及第二资源内容读取子模块376,其中:The resource content extraction module 370 is used to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory by using the resource link file if the resource link file exists, and the resource content is stored in the mobile terminal. terminal. Further, the resource content extraction module 370 includes: a resource content extraction submodule 371, an update rule setting submodule 372, an update detection submodule 373, a first resource content reading submodule 374, a resource content downloading submodule 375 and a second resource content submodule 375. Two resource content reading sub-module 376, wherein:

资源内容提取子模块371,用于如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到磁盘缓存。The resource content extraction sub-module 371 is configured to use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the disk cache if the resource link file exists.

更新规则设置子模块372,用于设置所述资源内容的更新规则。The update rule setting sub-module 372 is used to set the update rule of the resource content.

更新检测子模块373,用于检测所述资源内容是否需要更新。The update detection submodule 373 is used to detect whether the resource content needs to be updated.

第一资源内容读取子模块374,用于当所述资源内容不需要更新时,从所述磁盘缓存中读取所述资源内容至所述浏览器内存。The first resource content reading sub-module 374 is configured to read the resource content from the disk cache to the browser memory when the resource content does not need to be updated.

资源内容下载子模块375,用于当所述资源内容需要更新时,重新从服务器获取与所述资源链接对应的更新资源内容,将所述更新资源内容保存至所述磁盘缓存。The resource content download sub-module 375 is configured to reacquire updated resource content corresponding to the resource link from the server when the resource content needs to be updated, and save the updated resource content to the disk cache.

第二资源内容读取子模块376,用于从所述磁盘缓存中读取所述资源内容至所述浏览器内存。The second resource content reading submodule 376 is configured to read the resource content from the disk cache into the browser memory.

资源内容读取模块380,用于当获取到网页的开启指令时,从所述浏览器内存读取所述资源内容。The resource content reading module 380 is configured to read the resource content from the browser memory when an instruction to open the webpage is obtained.

资源内容显示模块390,用于将所述资源内容进行渲染并显示。The resource content display module 390 is configured to render and display the resource content.

第五实施例fifth embodiment

本申请第五实施例提供了一种移动终端,其包括显示器、存储器以及处理器,所述显示器和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时执行:The fifth embodiment of the present application provides a mobile terminal, which includes a display, a memory, and a processor, the display and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the When the processor executes:

当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;When the opening instruction of the browser is obtained, it is detected whether there is a resource link file, and a resource link is stored in the resource link file;

如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;If the resource link file exists, use the resource link to extract resource content corresponding to the resource link from the mobile terminal to the browser memory, and store the resource content in the mobile terminal;

当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;When the opening instruction of the webpage is obtained, read the resource content corresponding to the webpage from the browser memory;

将所述资源内容进行渲染并显示。The resource content is rendered and displayed.

第六实施例Sixth embodiment

本申请第六实施例提供了一种具有处理器可执行的程序代码的计算机可读取存储介质,所述程序代码使所述处理器执行:The sixth embodiment of the present application provides a computer-readable storage medium having program code executable by a processor, and the program code causes the processor to execute:

当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;When the opening instruction of the browser is obtained, it is detected whether there is a resource link file, and a resource link is stored in the resource link file;

如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;If the resource link file exists, use the resource link to extract resource content corresponding to the resource link from the mobile terminal to the browser memory, and store the resource content in the mobile terminal;

当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;When the opening instruction of the webpage is obtained, read the resource content corresponding to the webpage from the browser memory;

将所述资源内容进行渲染并显示。The resource content is rendered and displayed.

综上所述,本申请实施例提供的网页加速显示方法、装置、移动终端以及存储介质,首先在获取到浏览器的开启指令时,检测是否存在保存有资源链接的资源链接文件,如果存在资源链接文件,则利用资源链接从移动终端提取与资源链接对应的资源内容到浏览器内存,其中,该资源内容保存在移动终端,然后在获取到网页的开启指令时,从该浏览器内存读取该网页对应的资源内容,最后将资源内容进行渲染并显示,从而使网页的资源内容从移动终端获取,提高网页的打开速度和显示速度,增加用户的使用时长和提高用户体验。To sum up, the web page acceleration display method, device, mobile terminal and storage medium provided by the embodiments of the present application firstly detect whether there is a resource link file that stores resource links when the browser’s opening command is obtained, and if there are resource links link file, use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory, wherein the resource content is stored in the mobile terminal, and then read from the browser memory The resource content corresponding to the webpage is finally rendered and displayed, so that the resource content of the webpage is obtained from the mobile terminal, the speed of opening and displaying the webpage is improved, the user's use time is increased, and user experience is improved.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and details will not be repeated in the device embodiments.

请再次参阅图6,基于上述的网页加速显示方法、装置,本申请实施例还提供一种移动终端100,其包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。Please refer to FIG. 6 again. Based on the above-mentioned accelerated web page display method and device, the embodiment of the present application also provides a mobile terminal 100, which includes an electronic main body 10, and the electronic main body 10 includes a housing 12 and is arranged on the The main display screen 120 on the casing 12 . The housing 12 can be made of metal, such as steel or aluminum alloy. In this embodiment, the main display screen 120 generally includes a display panel 111 , and may also include a circuit for responding to a touch operation on the display panel 111 . The display panel 111 may be a liquid crystal display panel (Liquid Crystal Display, LCD), and in some embodiments, the display panel 111 is also a touch screen 109 .

请同时参阅图7,在实际的应用场景中,所述移动终端100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图7所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图7中所示更多或者更少的组件,或者具有与图6所示不同的配置。Please also refer to FIG. 7. In an actual application scenario, the mobile terminal 100 can be used as a smart phone terminal. In this case, the electronic main body 10 usually includes one or more (only shown in the figure) a) A processor 102 , a memory 104 , an RF (Radio Frequency, radio frequency) module 106 , an audio circuit 110 , a sensor 114 , an input module 118 , and a power module 122 . Those skilled in the art can understand that the structure shown in FIG. 7 is only a schematic diagram, which does not limit the structure of the electronic body part 10 . For example, the electronic body part 10 may also include more or fewer components than shown in FIG. 7 , or have a different configuration than that shown in FIG. 6 .

本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those skilled in the art can understand that, relative to the processor 102 , all other components belong to peripherals, and the processor 102 is coupled to these peripherals through a plurality of peripheral interfaces 124 . The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), inter-integrated circuit (Inter-Integrated Circuit, I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may also include other components, such as one or more controllers, for example for connecting the display panel 111 display controller or memory controller for connecting memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated in the processor 102 or corresponding peripherals.

所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running 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 a memory that is remotely located relative to the processor 102 , and these remote memories may be connected to the electronic main body 10 or the main display 120 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband codedivision multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The RF module 106 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (Global System for Mobile Communication, GSM), Enhanced Data GSM Environment (EDGE), wideband code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), VoIP (Voice over internet protocol, Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messages, and any other suitable communication protocol, even those that have not yet been developed.

音频电路110、听筒101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述听筒101。所述听筒101将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110 , the earpiece 101 , the sound jack 103 , and the microphone 105 jointly provide an audio interface between the user and the electronic main body 10 or the main display 120 . Specifically, the audio circuit 110 receives sound data from the processor 102 , converts the sound data into electrical signals, and transmits the electrical signals to the earpiece 101 . The earpiece 101 converts electrical signals into sound waves that can be heard by the human ear. The audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or via the RF module 106 . In addition, audio data can also be stored in the memory 104 or sent through the RF module 106 .

所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、重力加速度传感器、以及其他传感器。The sensor 114 is arranged in the electronic main body 10 or in the main display screen 120, examples of the sensor 114 include but not limited to: light sensor, running sensor, pressure sensor, gravity acceleration sensor, and other sensors .

具体地,所述光传感器可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在移动终端100产生的压力的传感器。即,压力传感器114G检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与移动终端100之间是否发生了接触或者按压,以及压力的大小。Specifically, the light sensor may include a light sensor 114F and a pressure sensor 114G. Among them, the pressure sensor 114G may be a sensor for detecting pressure generated by pressing on the mobile terminal 100 . That is, the pressure sensor 114G detects pressure generated by contact or press between the user and the mobile terminal, eg, pressure generated by contact or press between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether contact or pressure occurs between the user and the mobile terminal 100, and the magnitude of the pressure.

请再次参阅图7,具体地在图7所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Please refer to FIG. 7 again. Specifically, 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 can turn off the display output of the processor 102 when an object is close to the main display screen 120 , for example, when the electronic main body 10 moves to the ear.

作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,As a kind of motion sensor, the acceleration of gravity sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the posture of the mobile terminal 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. In addition, the electronic main body 10 can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, etc., which will not be repeated here.

本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其他输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 arranged on the main display screen 120, and the touch screen 109 may collect the user's touch operations on or near it (for example, the user uses a finger, a stylus) operation of any suitable object or accessory on the touch screen 109 or near the touch screen 109), and drive the corresponding connection device according to the preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent 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 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109 , in other modified implementation manners, the input module 118 may also include other input devices, such as keys 107 . The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to main screen" button, a power on/off button, and the like.

所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The main display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic main body 10. These graphical user interfaces can be composed of graphics, text, icons, numbers, video and Any combination thereof may be used. In one example, the touch screen 109 may be disposed on the display panel 111 so as to form an integral body with the display panel 111 .

所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。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 (such as batteries or alternating current), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the electronic body. Part 10 or the components related to the generation, management and distribution of power in the main display screen 120 .

所述移动终端100还包括定位器119,所述定位器119用于确定所述移动终端100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述移动终端100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The mobile terminal 100 further includes a locator 119, and the locator 119 is used to determine the actual location of the mobile terminal 100. In this embodiment, the locator 119 uses a positioning service to realize the positioning of the mobile terminal 100. The positioning service should be understood as obtaining the position information (such as longitude and latitude coordinates) of the mobile terminal 100 through a specific positioning technology. ), a technology or service that marks the position of a positioned object on an electronic map.

应当理解的是,上述的移动终端100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端100,是指搭载了智能操作系统的移动计算机设备,移动终端100包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the above-mentioned mobile terminal 100 is not limited to a smart phone terminal, but refers to a computer device that can be used on the move. 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 of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connection with one or more wires (mobile terminal), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (10)

1.一种网页加速显示方法,其特征在于,应用于移动终端,所述方法包括:1. A web page accelerated display method, characterized in that being applied to a mobile terminal, the method comprises: 当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;When the opening instruction of the browser is obtained, it is detected whether there is a resource link file, and a resource link is stored in the resource link file; 如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;If the resource link file exists, use the resource link to extract resource content corresponding to the resource link from the mobile terminal to the browser memory, and store the resource content in the mobile terminal; 当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;When the opening instruction of the webpage is obtained, read the resource content corresponding to the webpage from the browser memory; 将所述资源内容进行渲染并显示。The resource content is rendered and displayed. 2.根据权利要求1所述的方法,其特征在于,所述当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接之前,还包括:2. The method according to claim 1, wherein, when the opening instruction of the browser is obtained, it is detected whether there is a resource link file, and before the resource link is saved in the resource link file, it also includes: 获取所述网页在第一帧显示时所对应的资源内容;Obtaining the resource content corresponding to the webpage when the first frame is displayed; 基于所述资源内容生成所述资源内容的资源链接,将所述资源链接保存至所述资源链接文件。A resource link of the resource content is generated based on the resource content, and the resource link is saved in the resource link file. 3.根据权利要求1所述的方法,其特征在于,所述当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接之前,还包括:3. The method according to claim 1, wherein, when the opening instruction of the browser is obtained, it is detected whether there is a resource link file, and before the resource link is saved in the resource link file, it also includes: 检测所述网页在预设时间内的用户访问频率;Detecting the user access frequency of the webpage within a preset time; 判断所述用户访问频率是否大于预设访问频率;judging whether the user access frequency is greater than a preset access frequency; 当所述用户访问频率大于所述预设访问频率时,将所述网页作为重要网页。When the user access frequency is greater than the preset access frequency, the webpage is regarded as an important webpage. 4.根据权利要求1所述的方法,其特征在于,所述资源内容保存在所述移动终端,包括:4. The method according to claim 1, wherein the resource content is stored in the mobile terminal, comprising: 根据所述资源链接向服务器发送请求信息,指示所述服务器基于所述请求信息返回所述资源内容;sending request information to the server according to the resource link, instructing the server to return the resource content based on the request information; 接收所述服务器返回的所述资源内容,将所述资源内容保存在所述移动终端。receiving the resource content returned by the server, and storing the resource content in the mobile terminal. 5.根据权利要求1所述的方法,其特征在于,所述如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,包括:5. The method according to claim 1, wherein if the resource link file exists, extracting resource content corresponding to the resource link from the mobile terminal to the browser memory by using the resource link, include: 如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到磁盘缓存;If the resource link file exists, using the resource link to extract resource content corresponding to the resource link from the mobile terminal to a disk cache; 检测所述资源内容是否需要更新;Detect whether the content of the resource needs to be updated; 当所述资源内容不需要更新时,从所述磁盘缓存中读取所述资源内容到所述浏览器内存。When the resource content does not need to be updated, read the resource content from the disk cache into the browser memory. 6.根据权利要求5所述的方法,其特征在于,所述方法,还包括:6. The method according to claim 5, characterized in that, the method further comprises: 当所述资源内容需要更新时,重新从服务器获取与所述资源链接对应的更新资源内容,将所述更新资源内容保存至所述磁盘缓存;When the resource content needs to be updated, reacquire the updated resource content corresponding to the resource link from the server, and save the updated resource content to the disk cache; 从所述磁盘缓存中读取所述资源内容到所述浏览器内存。Read the resource content from the disk cache into the browser memory. 7.根据权利要求5所述的方法,其特征在于,所述如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取所述资源链接对应的资源内容到磁盘缓存之后,还包括:7. The method according to claim 5, wherein, if the resource link file exists, after using the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the disk cache, further include: 设置所述资源内容的更新规则。Set an update rule for the resource content. 8.一种网页加速显示装置,其特征在于,应用于移动终端,所述装置包括:8. A web page accelerated display device, characterized in that it is applied to a mobile terminal, and the device comprises: 资源链接文件检测模块,用于当获取到浏览器的开启指令时,检测是否存在资源链接文件,所述资源链接文件中保存有资源链接;The resource link file detection module is used to detect whether there is a resource link file when the opening instruction of the browser is obtained, and the resource link file is stored in the resource link file; 资源内容提取模块,用于如果存在所述资源链接文件,利用所述资源链接从所述移动终端提取与所述资源链接对应的资源内容到浏览器内存,所述资源内容保存在所述移动终端;A resource content extraction module, configured to use the resource link to extract the resource content corresponding to the resource link from the mobile terminal to the browser memory if the resource link file exists, and store the resource content in the mobile terminal ; 资源内容读取模块,用于当获取到网页的开启指令时,从所述浏览器内存读取所述网页对应的所述资源内容;A resource content reading module, configured to read the resource content corresponding to the web page from the browser memory when an instruction to open the web page is obtained; 资源内容显示模块,用于将所述资源内容进行渲染并显示。The resource content display module is used to render and display the resource content. 9.一种移动终端,其特征在于,包括显示器、存储器以及处理器,所述显示器和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-7任一项所述的方法。9. A mobile terminal, characterized in that it includes a display, a memory, and a processor, the display and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor When the processor executes the method according to any one of claims 1-7. 10.一种具有处理器可执行的程序代码的计算机可读取存储介质,其特征在于,所述程序代码使所述处理器执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium having a program code executable by a processor, wherein the program code causes the processor to execute the method according to any one of claims 1-7.
CN201711497667.7A 2017-12-29 2017-12-29 Web page accelerated display method, 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 Web page accelerated display method, 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 Web page accelerated display method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108197264A true CN108197264A (en) 2018-06-22
CN108197264B 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 Web page accelerated display method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108197264B (en)

Cited By (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
CN109684578A (en) * 2018-12-28 2019-04-26 北京字节跳动网络技术有限公司 Method and apparatus for showing information
CN110191229A (en) * 2019-05-29 2019-08-30 Oppo(重庆)智能科技有限公司 Display methods and relevant apparatus
CN110895592A (en) * 2018-08-22 2020-03-20 北京字节跳动网络技术有限公司 Link starting method, device, equipment and medium on mobile terminal
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
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

Cited By (7)

* 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
CN110895592A (en) * 2018-08-22 2020-03-20 北京字节跳动网络技术有限公司 Link starting method, device, equipment and medium on mobile terminal
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
CN110191229A (en) * 2019-05-29 2019-08-30 Oppo(重庆)智能科技有限公司 Display methods and relevant apparatus
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

Also Published As

Publication number Publication date
CN108197264B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN108197264B (en) Web page accelerated display method, device, mobile terminal and storage medium
US11003331B2 (en) Screen capturing method and terminal, and screenshot reading method and terminal
CN111984165B (en) Method and device for displaying message and terminal equipment
CN106775637B (en) Page display method and device for application program
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
RU2602791C2 (en) Typesetting method, device and system
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN108763297B (en) Webpage resource processing method and device and mobile terminal
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN110020293B (en) Multimedia data display method, device and storage medium
CN104978176A (en) Application program interface calling method and device
WO2019101043A1 (en) Image processing method, terminal, computer storage medium and computer program
CN108512997B (en) Display method, display device, mobile terminal and storage medium
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
CN108073647B (en) Webpage display method and device
CN108932102B (en) Data processing method and device and mobile terminal
CN108536504A (en) Page display method and device, mobile terminal and storage medium
CN106326489A (en) Network resource updating method and device
CN105095161B (en) Method and device for displaying rich text information
CN108803961B (en) Data processing method, device and mobile terminal
CN109032465B (en) Data processing method, device and mobile terminal
CN108664205A (en) Information display method, device, mobile terminal and storage medium
WO2019223484A1 (en) Information display method and apparatus, and mobile terminal and storage medium
CN105094872B (en) A kind of method and apparatus showing web application

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