WO2018137470A1 - User terminal and webpage image resource loading device and method, storage medium - Google Patents

User terminal and webpage image resource loading device and method, storage medium Download PDF

Info

Publication number
WO2018137470A1
WO2018137470A1 PCT/CN2017/120265 CN2017120265W WO2018137470A1 WO 2018137470 A1 WO2018137470 A1 WO 2018137470A1 CN 2017120265 W CN2017120265 W CN 2017120265W WO 2018137470 A1 WO2018137470 A1 WO 2018137470A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture resource
resource
loading
dom tree
image
Prior art date
Application number
PCT/CN2017/120265
Other languages
French (fr)
Chinese (zh)
Inventor
吴伟勇
Original Assignee
广州市动景计算机科技有限公司
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 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2018137470A1 publication Critical patent/WO2018137470A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The present invention relates to the field of browser technologies. Disclosed are a user terminal and a webpage image resource loading device and method. In an imageless browsing mode, the user terminal and the webpage image resource loading device and method perform page parsing on acquired webpage data so as to generate a DOM tree (S501); traversing and detecting whether a DOM tree node in the DOM tree includes an externally-linked image resource requiring loading; determining, according to whether the DOM tree node includes an externally-linked image resource requiring loading, a loading rule for the externally-linked image resource (S502), thereby disabling the blocking of a part of functional portals (clickable links) having webpages using background images to realize visual effects, and webpages using map/area mechanism image resources, so as to enable the user to use normally related functions of the image resources, thus enhancing user experience.

Description

用户终端及网页图片资源加载装置与方法、存储介质User terminal and webpage picture resource loading device and method, and storage medium
交互参考Cross reference
本申请要求以下优先权:2017年1月25日提出的申请号:201710061038.3,名称:“用户终端及网页图片资源加载装置与方法”的中国专利,本申请参考引用了如上所述申请的全部内容。The present application claims the following priority: Application No.: 201710061038.3, filed on January 25, 2017, entitled: "User Terminal and Web Page Picture Resource Loading Apparatus and Method" Chinese Patent, the entire contents of which are hereby incorporated by reference. .
技术领域Technical field
本申请涉及浏览器技术领域,具体而言,涉及一种用户终端及网页图片资源加载装置与方法、存储介质。The present application relates to the field of browser technologies, and in particular, to a user terminal and a webpage picture resource loading apparatus and method, and a storage medium.
背景技术Background technique
移动浏览器是移动终端(智能手机/平板)用户浏览移动互联网网页的主要工具。由于其主要的网络接入方式是无线运营商网络,怎样减少用户的无线运营商网络流量(尤其国内的无线运营商网络流量费用处于较高的水平),是移动浏览器在功能实现上需要重点关注的命题。移动互联网网页主要的流量消耗是图片/视频/音频等多媒体资源。Mobile browsers are the primary tool for mobile terminal (smartphone/tablet) users to browse mobile Internet web pages. Since the main network access method is a wireless carrier network, how to reduce the user's wireless carrier network traffic (especially the domestic wireless carrier network traffic costs are at a high level), is a mobile browser needs to focus on the function implementation. The proposition of concern. The main traffic consumption of mobile Internet web pages is multimedia resources such as pictures/video/audio.
现有技术中主流的移动浏览器都提供了无图模式功能,为对无线运营商网络流量敏感的用户提供了有效减少流量的一种可选的方式。但移动浏览器当前实现的无图模式,是相对粗糙的,其会直接屏蔽网页上所有外联的图片资源加载。当然,这种实现方式,可以让减少图片流量的效果最大化。但在某些场景下,会导致网页自身的功能出现缺失。例如,通过对不同网页的有图/无图模式的对比,主要有以下两种场景,无图模式会带来一定的负体验。1.网页上有部分功能入口(可点击的链接)使用背景图来体现视觉效果。无图模式下,这些功能入口视觉上不可见,用户不能正常使用相关功能(比如站点的功能网页的切换)。2.网页上使用了基于图 片资源的map/area机制,在图片上定义了不同的点击区域,无图模式下,由于图片被屏蔽,这些可点击区域对用户不可见,从而也导致了用户不能正常使用相关功能。The mainstream mobile browsers in the prior art all provide a graphless mode function, which provides an optional way to effectively reduce traffic for users who are sensitive to wireless carrier network traffic. However, the current imageless mode of the mobile browser is relatively rough, which directly blocks all the outbound image resources on the webpage to be loaded. Of course, this implementation can maximize the effect of reducing image traffic. However, in some scenarios, the functionality of the web page itself may be missing. For example, through the comparison of the graph/no graph modes of different web pages, there are mainly two scenarios, and the no graph mode brings a certain negative experience. 1. There are some function entries (clickable links) on the webpage to use the background image to reflect the visual effects. In the no-picture mode, these function entries are not visually visible, and the user cannot use the related functions normally (such as the switching of the function pages of the site). 2. The map/area mechanism based on image resources is used on the webpage, and different click areas are defined on the image. In the no image mode, since the images are blocked, these clickable areas are invisible to the user, which also causes the user to fail. Basic use of related functions.
申请内容Application content
本申请的目的在于提供一种用户终端及网页图片资源加载装置与方法,以改善上述的问题。The purpose of the present application is to provide a user terminal and a webpage picture resource loading apparatus and method to improve the above problems.
为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above object, the technical solution adopted by the embodiment of the present application is as follows:
第一方面,本申请实施例提供了一种网页图片资源加载装置,所述网页图片资源加载装置包括:In a first aspect, the embodiment of the present application provides a webpage image resource loading device, where the webpage image resource loading device includes:
页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree in the no-image browsing mode;
检测单元,用于遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;以及a detecting unit, configured to traverse and detect whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
图片资源加载单元,用于依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。And a picture resource loading unit, configured to determine a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded.
第二方面,本申请实施例提供了一种网页图片资源加载方法,所述网页图片资源加载方法包括:In a second aspect, the embodiment of the present application provides a webpage image resource loading method, where the webpage image resource loading method includes:
在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;In the no-view browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree;
遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;以及Traversing and detecting whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。The loading rule of the out-of-picture resource is determined according to whether the DOM tree node includes an out-of-picture resource to be loaded.
第三方面,本申请实施例还提供了一种用户终端,所述用户终端包括:In a third aspect, the embodiment of the present application further provides a user terminal, where the user terminal includes:
存储器;Memory
处理器;及Processor; and
网页图片资源加载装置,所述装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述网页图片资源加载装置包 括:a webpage image resource loading device, the device being installed in the memory and comprising one or more software function modules executed by the processor, the webpage image resource loading device comprising:
页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree in the no-image browsing mode;
检测单元,用于遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;a detecting unit, configured to traverse and detect whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
图片资源加载单元,用于依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。And a picture resource loading unit, configured to determine a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded.
第四方面,本申请实施例还提供了计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行第二方面所述的网页图片资源加载方法。本申请实施例提供的一种用户终端及网页图片资源加载装置与方法、存储介质,在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则,从而不会屏蔽使用背景图来体现视觉效果的网页的部分功能入口(可点击的链接)以及网页上使用了map/area机制的图片资源,使得用户可使用图片资源可正常使用相关功能,从而提高了用户的体验感。In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium carrying one or more computer instruction programs, where the computer instruction program is executed by one or more processors, the one or more processes The method for loading a webpage image resource according to the second aspect is performed. The user terminal and the webpage image resource loading apparatus and method and the storage medium provided by the embodiment of the present invention perform page parsing on the acquired webpage data to generate a DOM tree in the graphless browsing mode; traverse and detect the DOM tree. Whether the DOM tree node in the network includes an out-of-picture resource to be loaded; determining, according to whether the DOM tree node includes an out-of-picture resource to be loaded, determining a loading rule of the out-of-picture resource, so that the background is not blocked. The image function of the webpage that reflects the visual effect (clickable link) and the image resource of the webpage using the map/area mechanism enable the user to use the image resource to use the related function, thereby improving the user experience.
第五方面,本申请实施例还提供了一种网页图片资源加载方法,包括:In a fifth aspect, the embodiment of the present application further provides a method for loading a webpage image resource, including:
在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;In the no-image browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree node;
检测所述DOM树节点是否包括有外联图片资源;以及Detecting whether the DOM tree node includes an out-of-picture resource;
若所述DOM树节点包括有外联图片资源,判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。If the DOM tree node includes an out-of-picture resource, determine whether the out-of-picture resource meets the loading rule, and if yes, load and display the out-of-picture resource.
第六方面,本申请实施例还提供了一种网页图片资源加载装置,包括:In a sixth aspect, the embodiment of the present application further provides a webpage image resource loading device, including:
页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree node in the no-image browsing mode;
检测单元,用于检测所述DOM树节点是否包括有外联图片资源;以及a detecting unit, configured to detect whether the DOM tree node includes an out-of-picture resource;
图片资源加载单元,若所述DOM树节点包括有外联图片资源,所述图片资源加载单元用于判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。a picture resource loading unit, if the DOM tree node includes an out-of-picture resource, the picture resource loading unit is configured to determine whether the out-of-picture resource meets a loading rule, and if yes, load and display the out-of-picture resource.
第七方面,本申请实施例还提供了一种用户终端,包括:In a seventh aspect, the embodiment of the present application further provides a user terminal, including:
一个或多个处理器;One or more processors;
存储器;Memory
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to:
在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;In the no-image browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree node;
检测所述DOM树节点是否包括有外联图片资源;以及Detecting whether the DOM tree node includes an out-of-picture resource;
若所述DOM树节点包括有外联图片资源,判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。If the DOM tree node includes an out-of-picture resource, determine whether the out-of-picture resource meets the loading rule, and if yes, load and display the out-of-picture resource.
第八方面,本申请实施例还提供了一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行第五方面所述的网页图片资源加载方法。In an eighth aspect, the embodiment of the present application further provides a computer readable storage medium carrying one or more computer instruction programs, where the computer instruction program is executed by one or more processors, the one or more The processor executes the webpage image resource loading method described in the fifth aspect.
本申请实施例提供的一种用户终端及网页图片资源加载装置与方法、存储介质,在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;检测所述DOM树节点是否包括有外联图片资源;若所述DOM树节点包括有外联图片资源,判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源,从而不会屏蔽使用背景图来体现视觉效果的网页的部分功能入口(可点击的链接)以及网页上使用了map/area机制的图片资源,使得用户可使用图片资源可正常使用相关功能,从而提高了用户的体验感。The user terminal and the webpage image resource loading apparatus and method and the storage medium provided by the embodiment of the present invention perform page analysis on the obtained webpage data to generate a DOM tree node in the graphless browsing mode; and detect whether the DOM tree node is Include an out-of-picture resource; if the DOM tree node includes an out-of-picture resource, determine whether the out-of-picture resource meets a loading rule, and if yes, load and display the out-of-picture resource, so that the background is not blocked. The image function of the webpage that reflects the visual effect (clickable link) and the image resource of the webpage using the map/area mechanism enable the user to use the image resource to use the related function, thereby improving the user experience.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features, and advantages of the present invention will become more apparent from the following description.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present application, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1示出了本申请第一实施例提供的用户终端及网页图片资源加载装置与方法的应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a user terminal and a webpage picture resource loading apparatus and method according to a first embodiment of the present application;
图2示出了本申请第二实施例提供的网页页面渲染的处理方式的架构框图;FIG. 2 is a structural block diagram of a processing manner of web page rendering provided by the second embodiment of the present application;
图3示出了本申请第三实施例提供的用户终端的结构框图;FIG. 3 is a structural block diagram of a user terminal according to a third embodiment of the present application;
图4示出了本申请第四实施例提供的网页页面显示状态的示意图;FIG. 4 is a schematic diagram showing a display state of a webpage page according to a fourth embodiment of the present application;
图5示出了本申请第五实施例提供的网页图片资源加载装置的功能模块图;FIG. 5 is a functional block diagram of a webpage image resource loading apparatus according to a fifth embodiment of the present application;
图6示出了本申请第六实施例提供的一种网页图片资源加载方法的流程图。FIG. 6 is a flowchart of a method for loading a webpage picture resource according to a sixth embodiment of the present application.
图标;100-用户终端;200-服务器;300-网络;401-页面解析单元;402-检测单元;403-图片资源加载单元;404-判断单元;405-网页显示单元;406-外联图片资源;101-网页图片资源加载装置;102-存储器;103-存储控制器;104-处理器;105-外设接口;106-射频模块;107-音频模块;108-触控屏幕。Icon; 100-user terminal; 200-server; 300-network; 401-page parsing unit; 402-detecting unit; 403-picture resource loading unit; 404-judgement unit; 405-web page display unit; 406-outline picture resource 101-web page picture resource loading device; 102-memory; 103-storage controller; 104-processor; 105-peripheral interface; 106-radio module; 107-audio module; 108-touch screen.
具体实施方式detailed description
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没 有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. The detailed description of the embodiments of the present application, which is set forth in the claims All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Also, in the description of the present application, the terms "first", "second", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
本申请第一实施例所提供的用户终端及网页图片资源加载装置与方法可应用于如图1所示的应用环境中。如图1所示,用户终端100、服务器200位于网络300中,通过该网络300,用户终端100与服务器200进行数据交互。于本申请实施例中,用户终端100中安装有至少一个应用程序(Application,APP),与服务器200相对应,为用户提供服务。The user terminal and webpage picture resource loading apparatus and method provided by the first embodiment of the present application can be applied to an application environment as shown in FIG. 1. As shown in FIG. 1, the user terminal 100 and the server 200 are located in the network 300. Through the network 300, the user terminal 100 performs data interaction with the server 200. In the embodiment of the present application, at least one application (Application, APP) is installed in the user terminal 100, and corresponds to the server 200 to provide services for the user.
图2示出了本申请第二实施例提供的网页页面渲染的处理方式的架构框图,如图2所示,在用户通过应用程序(例如,浏览器)输入网页加载指令时,具体网页加载方式如下:应用程序查找域名的IP地址,再向服务器200发送一个HTTP请求,服务器200发送永久重定向响应,应用程序跟踪重定向地址,服务器200“处理”请求,并发回一个HTML响应,用户终端100安装的应用程序在接收到HTML响应后,即开始加载网页资源,并对网页资源进行渲染与显示。网页资源渲染方式如图2所示,具体地,首先是将加载到的网页资源输入到HTML解释器,HTML解释器在解释网页资源后构建成一棵DOM树,在这期间如果遇到javascript代码则交给javascript引擎去处理;如果网页资源中包含CSS,则交给CSS解释器去解释。当DOM树建立的时候,渲染引擎解释来自CSS解释器的样式信息,构建一个新的内部绘图模型。该模型由布局模块计算模型内部各个元素的位置和大小信息,最后由绘图模块完成从该模型到图像的绘制,从而将网页资源渲染完毕展示于用户终端100的网页页面。2 is a structural block diagram of a processing manner of webpage page rendering provided by the second embodiment of the present application. As shown in FIG. 2, when a user inputs a webpage loading instruction through an application (for example, a browser), a specific webpage loading manner is shown. As follows: the application looks up the IP address of the domain name, sends an HTTP request to the server 200, the server 200 sends a permanent redirect response, the application tracks the redirected address, the server 200 "processes" the request, and sends back an HTML response, the user terminal 100 After the installed application receives the HTML response, it starts loading the web resources and renders and displays the web resources. The rendering method of the webpage resource is as shown in FIG. 2. Specifically, the first step is to input the loaded webpage resource into the HTML interpreter, and the HTML interpreter constructs a DOM tree after interpreting the webpage resource, and if the javascript code is encountered during this period, Handed over to the javascript engine for processing; if the web resource contains CSS, it is passed to the CSS interpreter for interpretation. When the DOM tree is built, the rendering engine interprets the style information from the CSS interpreter and builds a new internal drawing model. The model calculates the position and size information of each element in the model by the layout module, and finally draws the image from the model to the image by the drawing module, so that the webpage resource is rendered and displayed on the webpage of the user terminal 100.
于本申请实施例中,用户终端100优选为移动终端设备,例如可以包括智能手机、平板电脑、电子书阅读器、膝上型便携计算机、车载电脑、穿戴式移动终端等等。In the embodiment of the present application, the user terminal 100 is preferably a mobile terminal device, and may include, for example, a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a vehicle-mounted computer, a wearable mobile terminal, and the like.
图3示出了一种可应用于本申请第三实施例中的用户终端的结构框图。如图3所示,用户终端100包括网页图片资源加载装置101、存储器102、存储控制器103,一个或多个(图中仅示出一个)处理器104、外设接口105、射频模块106、音频模块107、触控屏幕108等。这些组件通过一条或多条通讯总线/信号线116相互通讯。所述网页图片资源加载装置101包括至少一个可以软件或固件(firmware)的形式存储于所述存储器102中或固化在所述用户终端100的操作系统(operating system,OS)中的软件功能模块。FIG. 3 shows a structural block diagram of a user terminal applicable to the third embodiment of the present application. As shown in FIG. 3, the user terminal 100 includes a webpage image resource loading device 101, a memory 102, a memory controller 103, one or more (only one shown) processor 104, a peripheral interface 105, a radio frequency module 106, The audio module 107, the touch screen 108, and the like. These components communicate with one another via one or more communication bus/signal lines 116. The web page image resource loading device 101 includes at least one software function module that can be stored in the memory 102 or in an operating system (OS) of the user terminal 100 in the form of software or firmware.
存储器102可用于存储软件程序以及模块,如本申请实施例中的图片处理装置及方法所对应的程序指令/模块,处理器104通过运行存储在存储器102内的软件程序以及模块,从而执行各种功能应用以及数据处理,如本申请实施例提供的网页图片资源加载方法。The memory 102 can be used to store software programs and modules, such as program instructions/modules corresponding to the image processing devices and methods in the embodiments of the present application. The processor 104 executes various programs by running software programs and modules stored in the memory 102. The function application and data processing, such as the webpage image resource loading method provided by the embodiment of the present application.
存储器102可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。处理器104以及其他可能的组件对存储器102的访问可在存储控制器103的控制下进行。 Memory 102 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. Access to the memory 102 by the processor 104 and other possible components can be performed under the control of the memory controller 103.
外设接口105将各种输入/输出装置耦合至处理器104以及存储器102。在一些实施例中,外设接口105、处理器104以及存储控制器103可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。 Peripheral interface 105 couples various input/output devices to processor 104 and memory 102. In some embodiments, peripheral interface 105, processor 104, and memory controller 103 can be implemented in a single chip. In other instances, they can be implemented by separate chips.
射频模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。The radio frequency module 106 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electric signals, thereby communicating with a communication network or other devices.
音频模块107向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。The audio module 107 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
触控屏幕108在用户终端100与用户之间同时提供一个输出及输入界 面。在本实施例中,所述触控屏幕108支持单点和多点触控操作,例如,该触控屏幕108可为支持单点和多点触控操作的电容式触控屏或电阻式触控屏等。支持单点和多点触控操作是触控屏幕108能感应到来自该触控屏11上一个或多个位置处同时产生的触控操作,并将该感应到的多点触控操作交由处理器104进行处理。The touch screen 108 provides an output and input interface simultaneously between the user terminal 100 and the user. In this embodiment, the touch screen 108 supports single-point and multi-touch operations. For example, the touch screen 108 can be a capacitive touch screen or resistive touch that supports single-point and multi-touch operations. Control screen and so on. Supporting single-point and multi-touch operations is that the touch screen 108 can sense the simultaneous touch operation from one or more positions on the touch screen 11, and hand over the sensed multi-touch operation. The processor 104 performs processing.
可以理解,图3所示的结构仅为示意,用户终端100还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。图3中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 3 is merely illustrative, and the user terminal 100 may further include more or less components than those shown in FIG. 3, or have a different configuration from that shown in FIG. The components shown in Figure 3 can be implemented in hardware, software, or a combination thereof.
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. The detailed description of the embodiments of the present application, which is set forth in the claims All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Also, in the description of the present application, the terms "first", "second", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
第四实施例Fourth embodiment
请参阅图5,示出了本申请第五实施例提供的一种网页图片资源加载装置101包括页面解析单元401、检测单元402、图片资源加载单元403、判断单元404以及网页显示单元405。Referring to FIG. 5, a webpage image resource loading apparatus 101 according to a fifth embodiment of the present invention includes a page parsing unit 401, a detecting unit 402, a picture resource loading unit 403, a judging unit 404, and a web page displaying unit 405.
页面解析单元401用于在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点,以生成DOM树。The page parsing unit 401 is configured to perform page parsing on the acquired webpage data in the graphless browsing mode to generate a DOM tree node to generate a DOM tree.
例如,用户在打开网页浏览器后,点击无图模式进入按钮,此时网页浏览器响应到用户触发无图模式进入按钮后,即进入无图浏览模式,并依 据用户输入的网页地址获取网页数据并进行页面解析生成DOM树节点,以生成DOM树。For example, after the user opens the web browser, the user clicks the no-image mode to enter the button. At this time, the web browser enters the no-image browsing mode in response to the user triggering the no-image mode entry button, and obtains the webpage data according to the webpage address input by the user. And perform page parsing to generate a DOM tree node to generate a DOM tree.
检测单元402用于遍历并检测DOM树中的DOM树节点是否包括有需要加载的外联图片资源406。也即,检测单元402用于按照解析进度检测DOM树节点是否包括有外联图片资源406。The detecting unit 402 is configured to traverse and detect whether the DOM tree node in the DOM tree includes an out-of-picture resource 406 that needs to be loaded. That is, the detecting unit 402 is configured to detect whether the DOM tree node includes the out-of-picture resource 406 according to the parsing progress.
需要说明的是,网页中的图片主要有以下2种引用方式:It should be noted that the pictures in the web page mainly have the following two ways of referring:
第一种:1、外联方式,以图片标签或者背景图属性而引用独立于网页资源地址的图片资源,在需要浏览该图片资源时,网页浏览器需要对该图片资源发起网络加载,才能实现将图片资源显示于网页页面;第二种:内嵌方式,图片资源以base64方式编码为ascii字符串,直接包含在网页数据中。网页浏览器不需要对该内嵌方式的图片资源发起网络加载(实际上,图片内容直接存在于网页中)。由于网页浏览器本身就是DOM树解析的实施主体,其可以在相应的阶段触发对新产生的DOM树节点的检查,通过对DOM树节点的检测即可识别出当前的DOM树节点是否包含有外联图片。The first type: 1. The external connection mode refers to the image resource independent of the webpage resource address by using the image tag or the background image attribute. When the image resource needs to be browsed, the web browser needs to initiate network loading on the image resource to implement the image resource. The image resource is displayed on the webpage page; the second type is the inline mode, and the image resource is encoded as the ascii string in the base64 manner, and is directly included in the webpage data. The web browser does not need to initiate a network loading of the inline mode image resource (in fact, the image content exists directly in the webpage). Since the web browser itself is the implementation body of the DOM tree parsing, it can trigger the check of the newly generated DOM tree node in the corresponding stage, and the detection of the DOM tree node can identify whether the current DOM tree node contains the outer Joint picture.
图片资源加载单元403用于依据DOM树节点是否包括有需要加载的外联图片资源406而确定外联图片资源406的加载规则。也即,若DOM树节点包括有外联图片资源406,图片资源加载单元403用于判断外联图片资源406是否符合加载规则,若符合则加载显示外联图片资源406(加载完DOM树后由网页显示单元405进行显示)。The picture resource loading unit 403 is configured to determine a loading rule of the out-of-picture resource 406 according to whether the DOM tree node includes an out-of-picture resource 406 that needs to be loaded. That is, if the DOM tree node includes the out-of-picture resource 406, the picture resource loading unit 403 is configured to determine whether the out-of-picture resource 406 conforms to the loading rule, and if it matches, the display displays the out-of-picture resource 406 (after loading the DOM tree) The web page display unit 405 performs display).
其中加载规则包括:引用外联图片资源406的功能入口标签为可视化标签且具有点击属性。具体地,图片资源加载单元403用于若当前的DOM树节点包括有需要加载的外联图片资源406时(即符合加载规则时),按照预设的图片资源加载规则(即图片的加载方式)加载外联图片资源406,以及用于若当前的DOM树节点不包括有需要加载的外联图片资源406时(即不符合加载规则时),不加载外联图片资源406。The loading rule includes: the function entry tag that references the out-of-line picture resource 406 is a visual tag and has a click attribute. Specifically, the picture resource loading unit 403 is configured to: according to the preset picture resource loading rule (that is, the loading mode of the picture), if the current DOM tree node includes the out-of-picture resource 406 that needs to be loaded (ie, when the loading rule is met) The out-of-picture resource 406 is loaded, and if the current DOM tree node does not include the out-of-picture resource 406 that needs to be loaded (ie, when the loading rule is not met), the out-of-picture resource 406 is not loaded.
其中,外联图片资源406的加载规则主要包括但不限于以下两种方式,第一种:若DOM树节点包括有外联图片资源406,且引用外联图片资 源406的功能入口标签为可视化标签且具有点击属性时,加载外联图片资源406。The loading rule of the out-of-line picture resource 406 mainly includes, but is not limited to, the following two modes. The first type: if the DOM tree node includes the out-of-picture resource 406, and the function entry tag of the referenced out-of-picture resource 406 is a visual tag. When there is a click attribute, the out-of-picture resource 406 is loaded.
其中,当背景图的url属性值是合法的web地址而不是内嵌方式时,说明该图片资源为外联图片资源406,并且引用外联图片资源406的功能入口标签为可视化标签时,外联图片资源406才具备在网页页面上显示的功能,其中,可视化标签可以为a个性标签或div个性标签,并且判断是否有点击属性的方式可以为,例如,a个性标签带有href属性或者注册了点击事件,比如,div个性标签的点击会触发Javascript代码的执行。Wherein, when the value of the url attribute of the background image is a legal web address instead of the inline mode, it indicates that the picture resource is the out-of-line picture resource 406, and when the function entry label of the out-of-line picture resource 406 is used as the visual label, the outreach The picture resource 406 has the function of displaying on the webpage page, wherein the visual label can be a personality tag or a div personality tag, and the way of determining whether there is a click attribute can be, for example, a personality tag has an href attribute or is registered. Click events, for example, a click on a div personality tag triggers the execution of Javascript code.
目前多数具有功能的特性的外联图片均在尺寸有一定的约定与要求。若要更为精确的判定该图片资源为需要加载的外联图片资源406,可将外联图片资源406的尺寸作为是否加载的条件,当外联图片资源406的尺寸符合预定范围时,例如当外联图片资源406的宽度、高度、宽高比以及高宽比分别符合预定范围时,加载外联图片资源406。例如,外联图片资源406的宽不大于64px,高不大于64px,宽高比(width/height)不大于1.5,高宽比(height/width)不大于1.5。At present, most of the out-of-line pictures with functional features have certain conventions and requirements in size. To more accurately determine that the picture resource is an out-of-picture resource 406 that needs to be loaded, the size of the out-of-picture resource 406 may be used as a condition for loading, when the size of the out-of-picture resource 406 meets a predetermined range, for example, when When the width, height, aspect ratio, and aspect ratio of the out-of-line picture resource 406 respectively meet the predetermined range, the out-of-picture resource 406 is loaded. For example, the outreach picture resource 406 has a width of no more than 64px, a height of no more than 64px, a width/height of no more than 1.5, and a height/width of no more than 1.5.
第二种:若外联图片资源406为图像标签所引用时,且图像标签具有usemap属性时,加载外联图片资源406。Second: If the out-of-picture resource 406 is referenced by an image tag, and the image tag has a usemap attribute, the out-of-picture resource 406 is loaded.
当图像标签具有usemap属性时,说明该外联图片资源406具备功能特性。When the image tag has a usemap attribute, it indicates that the out-of-picture resource 406 has functional characteristics.
usemap属性提供了一种“客户端”的图像映射机制,有效地消除了服务器端对鼠标坐标的处理,以及由此带来的网络延迟问题。通过特殊的<map>和<area>标签,HTML创作者可以提供一个描述usemap图像中超链接敏感区域坐标的映射,这个映射同时包含相应的超链接URL。usemap属性的值是一个URL,它指向特殊的<map>区域。用户计算机上的浏览器将把鼠标在图像上单击时的坐标转换成特定的行为,包括加载和显示另外一个文档。例如,带有usmap属性的图片标签的源代码可以为:The usemap attribute provides a "client" image mapping mechanism that effectively eliminates server-side processing of mouse coordinates and the resulting network latency issues. Through the special <map> and <area> tags, the HTML creator can provide a mapping describing the coordinates of the sensitive area of the hyperlink in the usemap image, which also contains the corresponding hyperlink URL. The value of the usemap attribute is a URL that points to a special <map> area. The browser on the user's computer converts the coordinates of the mouse as it clicks on the image into a specific behavior, including loading and displaying another document. For example, the source code for an image tag with the usmap attribute can be:
<html><html>
<body><body>
<p>请点击图像上的星球,把它们放大。</p><p>Click on the planet on the image and zoom in on them. </p>
<img<img
src="/i/eg_planets.jpg"Src="/i/eg_planets.jpg"
border="0"usemap="#planetmap"Border="0"usemap="#planetmap"
alt="Planets"/>Alt="Planets"/>
<map name="planetmap"id="planetmap"><map name="planetmap"id="planetmap">
<area<area
shape="circle"Shape="circle"
coords="180,139,14"Coords="180,139,14"
href="/example/html/venus.html"Href="/example/html/venus.html"
target="_blank"Target="_blank"
alt="Venus"/>Alt="Venus"/>
<area<area
shape="circle"Shape="circle"
coords="129,161,10"Coords="129,161,10"
href="/example/html/mercur.html"Href="/example/html/mercur.html"
target="_blank"Target="_blank"
alt="Mercury"/>Alt="Mercury"/>
<area<area
shape="rect"Shape="rect"
coords="0,0,110,260"Coords="0,0,110,260"
href="/example/html/sun.html"Href="/example/html/sun.html"
target="_blank"Target="_blank"
alt="Sun"/>Alt="Sun"/>
</map></map>
上面这段源代码将一幅图像planets.gif映射为3个区域,当用户单击其中某一个区域时,将被链接到不同的文档中。The source code above maps an image planets.gif to 3 regions, and when the user clicks on one of the regions, it will be linked to a different document.
带有满足上述条件的外联图片在网页页面显示状态如图4所示,关闭 无图模式功能时,图4中顶部右上角的标号406所指的图像就是使用背景图作为视觉效果的功能入口,“田”字形的是“个人中心”入口,“田”字形是“导航”入口。“个人中心”入口与“导航”入口均为引用该外联图片资源406的标签均为a个性标签。The state of the out-of-line picture with the above conditions is displayed on the web page as shown in FIG. 4. When the no-picture mode function is turned off, the image indicated by the label 406 in the top right corner of FIG. 4 is the function entry using the background image as a visual effect. The "Tian" font is the "Personal Center" entrance, and the "Tian" font is the "Navigation" entrance. Both the "Personal Center" entry and the "Navigation" entry refer to the out-of-line picture resource 406. The tags are all a personal tags.
判断单元404用于判断获取到的网页数据是否解析完毕。The determining unit 404 is configured to determine whether the acquired webpage data is parsed.
检测单元402还用于若获取到的网页数据没有解析完毕时,继续检测下一个DOM树节点是否包括有需要加载的外联图片资源406,直到获取到的网页数据解析完毕。The detecting unit 402 is further configured to: if the obtained webpage data is not parsed, continue to detect whether the next DOM tree node includes the out-of-picture resource 406 that needs to be loaded, until the obtained webpage data is parsed.
网页显示单元405用于在页面解析完毕时,渲染生成的DOM树以显示网页内容。The webpage display unit 405 is configured to render the generated DOM tree to display the webpage content when the page parsing is completed.
请参阅图6,本申请第六实施例还提供了一种网页图片资源加载方法,需要说明的是,本申请实施例所提供的网页图片资源加载方法,其基本原理及产生的技术效果和上述实施例相同,为简要描述,本实施例部分未提及之处,可参考上那述的实施例中相应内容。网页图片资源加载方法包括:Referring to FIG. 6 , a sixth embodiment of the present application further provides a method for loading a webpage image resource. The basic principle of the method for loading a webpage image resource provided by the embodiment of the present application, and the technical effects thereof are as described above. The embodiments are the same, and for the sake of brief description, what is not mentioned in the embodiment, reference may be made to the corresponding content in the above-mentioned embodiment. The webpage image resource loading method includes:
步骤S501:在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点,以生成DOM树。Step S501: Perform page analysis on the obtained webpage data in the no-image browsing mode to generate a DOM tree node to generate a DOM tree.
可以理解地,利用页面解析单元401可执行步骤S501。It can be understood that step S501 can be performed by the page parsing unit 401.
步骤S502:遍历并检测DOM树中的DOM树节点是否包括有需要加载的外联图片资源406。也即,按照解析进度检测DOM树节点是否包括有外联图片资源。Step S502: Traversing and detecting whether the DOM tree node in the DOM tree includes an out-of-picture resource 406 that needs to be loaded. That is, it is detected whether the DOM tree node includes an out-of-picture resource according to the analysis progress.
可以理解地,利用检测单元402可执行步骤S502。It can be understood that step S502 can be performed by the detecting unit 402.
步骤S503:依据DOM树节点是否包括有需要加载的外联图片资源406而确定外联图片资源406的加载规则。也即,若DOM树节点包括有外联图片资源406,判断外联图片资源406是否符合加载规则,若符合则加载显示外联图片资源406。Step S503: Determine a loading rule of the out-of-picture resource 406 according to whether the DOM tree node includes an out-of-picture resource 406 that needs to be loaded. That is, if the DOM tree node includes the out-of-picture resource 406, it is determined whether the out-of-line picture resource 406 conforms to the loading rule, and if it is met, the displayed out-of-picture resource 406 is loaded.
可以理解地,利用图片资源加载单元403可执行步骤S503。其中,加载规则包括:引用外联图片资源406的功能入口标签为可视化标签且具有点击属性。若DOM树节点包括有需要加载的外联图片资源406时(即符 合加载规则时),按照预设的图片资源加载规则(即图片的加载方式)加载外联图片资源406。It can be understood that step S503 can be performed by using the picture resource loading unit 403. The loading rule includes: the function entry tag that references the out-of-line picture resource 406 is a visual tag and has a click attribute. If the DOM tree node includes the out-of-picture resource 406 that needs to be loaded (ie, when the loading rule is met), the out-of-picture resource 406 is loaded according to the preset image resource loading rule (ie, the loading mode of the image).
其中,外联图片资源406加载主要包括但不限于以下两种方式:The loading of the outbound picture resource 406 mainly includes but is not limited to the following two methods:
第一种:若DOM树节点包括有外联图片资源406,且引用外联图片资源406的功能入口标签为可视化标签且具有点击属性时,加载外联图片资源406。例如还可以为:若DOM节点包括有外联图片资源406,且引用外联图片资源406的功能入口标签为可视化标签且具有点击属性,且外联图片资源406的尺寸符合预定范围时,例如外联图片资源406的宽度、高度、宽高比以及高宽比分别符合预定范围时,加载外联图片资源406。First: If the DOM tree node includes an out-of-picture resource 406, and the function entry tag that references the out-of-line picture resource 406 is a visual tag and has a click attribute, the out-of-picture resource 406 is loaded. For example, if the DOM node includes the out-of-picture resource 406, and the function entry tag of the referenced out-of-picture resource 406 is a visual tag and has a click attribute, and the size of the out-of-picture resource 406 meets a predetermined range, for example, When the width, height, aspect ratio, and aspect ratio of the associated picture resource 406 respectively meet the predetermined range, the out-of-picture resource 406 is loaded.
第二种:依据DOM树节点是否包括有需要加载的外联图片资源406而确定外联图片资源406的加载规则的步骤包括:若外联图片资源406为图像标签所引用,且图像标签具有usemap属性时,加载外联图片资源406。Secondly, the step of determining the loading rule of the out-of-picture resource 406 according to whether the DOM tree node includes the out-of-picture resource 406 to be loaded includes: if the out-of-picture resource 406 is referenced by the image tag, and the image tag has a usemap When the attribute is used, the out-of-picture resource 406 is loaded.
需要说明的是,若DOM树节点不包括有需要加载的外联图片资源406时(即不符合加载规则时),不加载外联图片资源406,并且继续检测下一个DOM树节点。It should be noted that if the DOM tree node does not include the out-of-picture resource 406 that needs to be loaded (ie, when the loading rule is not met), the out-of-line picture resource 406 is not loaded, and the next DOM tree node is continuously detected.
步骤S504:判断获取到的网页数据是否解析完毕,如果是,则执行步骤505,如果否,则执行步骤S502。Step S504: It is determined whether the acquired webpage data is parsed. If yes, step 505 is performed, and if no, step S502 is performed.
可以理解地,利用判断单元404可执行步骤S504。It can be understood that the use determining unit 404 can perform step S504.
步骤S505:在页面解析完毕时,渲染生成的DOM树以显示网页内容。Step S505: When the page parsing is completed, the generated DOM tree is rendered to display the webpage content.
可以理解地,利用判断网页显示单元405可执行步骤S505。It can be understood that the step S505 can be performed by using the judgment webpage display unit 405.
本申请还提供一种计算机可读存储介质,其上承载一个或多个计算机指令程序,计算机指令程序被一个或多个处理器执行时,一个或多个处理器执行实现上述任一实施例的用户终端及网页图片资源加载方法。The present application also provides a computer readable storage medium having one or more computer program programs executed by one or more processors, one or more processors executing any one of the above embodiments User terminal and webpage image resource loading method.
综上,本申请实施例提供的一种用户终端及网页图片资源加载装置与方法、存储介质,在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;遍历并检测DOM树中的DOM树节点是否包括有需要加载的外联图片资源;依据DOM树节点是否包括有需要加载的外联图片资源而确定外联图片资源的加载规则,从而不会屏蔽使用背景图来体现视觉效果的 网页的部分功能入口(可点击的链接)以及网页上使用了map/area机制的图片资源,使得用户可使用图片资源可正常使用相关功能,从而提高了用户的体验感。In summary, the user terminal and the webpage image resource loading apparatus and method and the storage medium provided by the embodiment of the present invention perform page analysis on the obtained webpage data to generate a DOM tree in the graphless browsing mode; traverse and detect the DOM. Whether the DOM tree node in the tree includes an out-of-line picture resource that needs to be loaded; determining the loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded, so that the background image is not blocked. Part of the function portal of the visual effect (clickable link) and the image resource using the map/area mechanism on the webpage, so that the user can use the image resource to use the related function normally, thereby improving the user experience.
本申请实施例还提供的一种用户终端及网页图片资源加载装置与方法、存储介质,在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;检测DOM树节点是否包括有外联图片资源;若DOM树节点包括有外联图片资源,判断外联图片资源是否符合加载规则,若符合则加载显示外联图片资源,从而不会屏蔽使用背景图来体现视觉效果的网页的部分功能入口(可点击的链接)以及网页上使用了map/area机制的图片资源,使得用户可使用图片资源可正常使用相关功能,从而提高了用户的体验感。The embodiment of the present application further provides a user terminal and a webpage image resource loading apparatus and method, and a storage medium. In the graphless browsing mode, the page parsing of the obtained webpage data is performed to generate a DOM tree node; and detecting whether the DOM tree node includes There is an out-of-line picture resource; if the DOM tree node includes an out-of-picture resource, it is judged whether the out-of-line picture resource conforms to the loading rule, and if it matches, the display of the out-of-picture resource is loaded, so that the webpage using the background image to reflect the visual effect is not blocked. Part of the function entry (clickable link) and the image resource on the webpage using the map/area mechanism, so that the user can use the image resource to use the relevant function, thereby improving the user experience.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and functionality of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present application. operating. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或 使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,用户终端,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, user terminal, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above description is only the preferred embodiment of the present application, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application. It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings.
工业实用性Industrial applicability
本申请实施例提供的一种用户终端及网页图片资源加载装置与方法、存储介质,在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;检测DOM树节点是否包括有外联图片资源;若DOM树节点包 括有外联图片资源,判断外联图片资源是否符合加载规则,若符合则加载显示外联图片资源,从而不会屏蔽使用背景图来体现视觉效果的网页的部分功能入口(可点击的链接)以及网页上使用了map/area机制的图片资源,使得用户可使用图片资源可正常使用相关功能,提高了网页相关功能的使用率,从而提高了用户的体验感。The user terminal and the webpage image resource loading apparatus and method and the storage medium provided by the embodiment of the present invention perform page analysis on the obtained webpage data to generate a DOM tree node in the graphless browsing mode; and detect whether the DOM tree node includes An out-of-picture resource; if the DOM tree node includes an out-of-picture resource, determining whether the out-of-picture resource conforms to the loading rule, and if it matches, loading and displaying the out-of-picture resource, thereby not shielding the webpage that uses the background image to reflect the visual effect Some function portals (clickable links) and image resources using the map/area mechanism on the webpage enable users to use the image resources to use the related functions, thereby improving the usage rate of the webpage related functions, thereby improving the user experience. .

Claims (33)

  1. 一种网页图片资源加载装置,其中所述网页图片资源加载装置包括:A webpage image resource loading device, wherein the webpage image resource loading device comprises:
    页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree in the no-image browsing mode;
    检测单元,用于遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;以及a detecting unit, configured to traverse and detect whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
    图片资源加载单元,用于依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。And a picture resource loading unit, configured to determine a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded.
  2. 根据权利要求1所述的网页图片资源加载装置,其中所述图片资源加载单元用于若当前的DOM树节点包括有需要加载的外联图片资源时,按照预设的图片资源加载规则加载所述外联图片资源,以及用于若当前的DOM树节点不包括有需要加载的外联图片资源时,不加载所述外联图片资源。The webpage image resource loading apparatus according to claim 1, wherein the image resource loading unit is configured to load the image according to a preset image resource loading rule if the current DOM tree node includes an out-of-picture resource to be loaded. The out-of-picture resource is not loaded when the current DOM tree node does not include an out-of-picture resource that needs to be loaded.
  3. 根据权利要求1所述的网页图片资源加载装置,其中所述图片资源加载单元用于若DOM树节点包括有需要加载的外联图片资源,且引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性时,加载所述外联图片资源。The webpage picture resource loading apparatus according to claim 1, wherein the picture resource loading unit is configured to: if the DOM tree node includes an out-of-picture resource that needs to be loaded, and reference a function entry label of the out-of-picture resource as a visualization The out-of-picture resource is loaded when the tag has a click attribute.
  4. 根据权利要求1所述的网页图片资源加载装置,其中所述图片资源加载单元用于若所述DOM节点包括有需要加载的外联图片资源,且引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的宽度、高度、宽高比以及高宽比分别符合预定范围时,加载所述外联图片资源。The webpage picture resource loading apparatus according to claim 1, wherein the picture resource loading unit is configured to: if the DOM node includes an out-of-picture resource that needs to be loaded, and the function entry label that references the out-of-picture resource is The out-of-picture resource is loaded when the label is visualized and has a click attribute, and the width, height, aspect ratio, and aspect ratio of the out-of-picture resource respectively meet a predetermined range.
  5. 根据权利要求1所述的网页图片资源加载装置,其中若所述外联图片资源为图像标签所引用,且所述图像标签具有usemap属性时,加载所述外联图片资源。The webpage image resource loading apparatus according to claim 1, wherein the out-of-picture resource is loaded if the out-of-picture resource is referenced by an image tag and the image tag has a usemap attribute.
  6. 根据权利要求1所述的网页图片资源加载装置,其中所述网页图 片资源加载装置还包括:The webpage image resource loading apparatus according to claim 1, wherein the webpage image resource loading apparatus further comprises:
    网页显示单元,用于在页面解析完毕时,渲染生成的DOM树以显示网页内容。A webpage display unit is configured to render the generated DOM tree to display webpage content when the page is parsed.
  7. 一种网页图片资源加载方法,其中所述网页图片资源加载方法包括:A webpage image resource loading method, wherein the webpage image resource loading method comprises:
    在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;In the no-view browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree;
    遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;以及Traversing and detecting whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
    依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。The loading rule of the out-of-picture resource is determined according to whether the DOM tree node includes an out-of-picture resource to be loaded.
  8. 根据权利要求7所述的网页图片资源加载方法,其中所述依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则的步骤包括:The method for loading a webpage image resource according to claim 7, wherein the step of determining a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded comprises:
    若当前的DOM树节点包括有需要加载的外联图片资源时,按照预设的图片资源加载规则加载所述外联图片资源,以及若当前的DOM树节点不包括有需要加载的外联图片资源时,不加载所述外联图片资源。If the current DOM tree node includes an out-of-picture resource to be loaded, the out-of-picture resource is loaded according to a preset image resource loading rule, and if the current DOM tree node does not include an out-of-picture resource to be loaded. The out-of-picture resource is not loaded.
  9. 根据权利要求7所述的网页图片资源加载方法,其中所述依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则的步骤包括:The method for loading a webpage image resource according to claim 7, wherein the step of determining a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded comprises:
    若DOM树节点包括有需要加载的外联图片资源,且引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性时,加载所述外联图片资源。If the DOM tree node includes an out-of-picture resource that needs to be loaded, and the function entry tag that references the out-of-picture resource is a visual tag and has a click attribute, the out-of-picture resource is loaded.
  10. 根据权利要求7所述的网页图片资源加载方法,其中所述依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则的步骤包括:The method for loading a webpage image resource according to claim 7, wherein the step of determining a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded comprises:
    若所述DOM节点包括有需要加载的外联图片资源,且引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资 源的宽度、高度、宽高比以及高宽比分别符合预定范围时,加载所述外联图片资源。If the DOM node includes an out-of-picture resource that needs to be loaded, and the function entry tag that references the out-of-picture resource is a visual tag and has a click attribute, and the width, height, and aspect ratio of the out-of-picture resource And loading the out-of-picture resource when the aspect ratio meets the predetermined range respectively.
  11. 根据权利要求7所述的网页图片资源加载方法,其中所述依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则的步骤包括:若所述外联图片资源为图像标签所引用,且所述图像标签具有usemap属性时,加载所述外联图片资源。The method for loading a webpage image resource according to claim 7, wherein the step of determining a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded comprises: When the out-of-picture resource is referenced by the image tag, and the image tag has a usemap attribute, the out-of-picture resource is loaded.
  12. 根据权利要求7所述的网页图片资源加载方法,其中在所述依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则的步骤之后,所述网页图片资源加载方法还包括:The webpage image resource loading method according to claim 7, wherein after the step of determining a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded, The webpage image resource loading method further includes:
    在页面解析完毕时,渲染生成的DOM树以显示网页内容。When the page is parsed, the generated DOM tree is rendered to display the content of the web page.
  13. 一种用户终端,其中所述用户终端包括:A user terminal, wherein the user terminal comprises:
    存储器;Memory
    处理器;及Processor; and
    网页图片资源加载装置,所述装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述网页图片资源加载装置包括:a webpage image resource loading device, the device is installed in the memory and includes one or more software function modules executed by the processor, and the webpage image resource loading device includes:
    页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析以生成DOM树;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree in the no-image browsing mode;
    检测单元,用于遍历并检测所述DOM树中的DOM树节点是否包括有需要加载的外联图片资源;a detecting unit, configured to traverse and detect whether the DOM tree node in the DOM tree includes an out-of-picture resource that needs to be loaded;
    图片资源加载单元,用于依据所述DOM树节点是否包括有需要加载的外联图片资源而确定所述外联图片资源的加载规则。And a picture resource loading unit, configured to determine a loading rule of the out-of-picture resource according to whether the DOM tree node includes an out-of-picture resource to be loaded.
  14. 一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行权利要求7~12任一项所述的方法。A computer readable storage medium carrying one or more computer program programs, the one or more processors executing any one of claims 7 to 12 when the computer program program is executed by one or more processors The method described in the item.
  15. 一种网页图片资源加载方法,包括:A webpage image resource loading method includes:
    在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;In the no-image browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree node;
    检测所述DOM树节点是否包括有外联图片资源;以及Detecting whether the DOM tree node includes an out-of-picture resource;
    若所述DOM树节点包括有外联图片资源,判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。If the DOM tree node includes an out-of-picture resource, determine whether the out-of-picture resource meets the loading rule, and if yes, load and display the out-of-picture resource.
  16. 根据权利要求15所述的网页图片资源加载方法,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性。The webpage image resource loading method according to claim 15, wherein the loading rule comprises: a function entry tag that references the out-of-picture resource is a visual tag and has a click attribute.
  17. 根据权利要求16所述的网页图片资源加载方法,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的尺寸符合预定范围。The webpage image resource loading method according to claim 16, wherein the loading rule comprises: a function entry label that references the out-of-picture resource is a visual label and has a click attribute, and the size of the out-of-picture resource is in accordance with a predetermined range.
  18. 根据权利要求17所述的网页图片资源加载方法,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的宽度、高度、宽高比以及高宽比分别符合预定范围。The webpage image resource loading method according to claim 17, wherein the loading rule comprises: a function entry label that references the out-of-picture resource is a visual label and has a click attribute, and the width and height of the out-of-picture resource The aspect ratio and the aspect ratio respectively meet the predetermined range.
  19. 根据权利要求15所述的网页图片资源加载方法,其中所述加载规则包括:所述外联图片资源为图像标签所引用,且所述图像标签具有usemap属性。The webpage image resource loading method according to claim 15, wherein the loading rule comprises: the out-of-picture resource is referenced by an image tag, and the image tag has a usemap attribute.
  20. 根据权利要求15所述的网页图片资源加载方法,其中还包括步骤:若不符合所述加载规则,则不加载所述外联图片资源。The webpage image resource loading method according to claim 15, further comprising the step of: if the loading rule is not met, the out-of-picture resource is not loaded.
  21. 一种网页图片资源加载装置,包括:A webpage image resource loading device includes:
    页面解析单元,用于在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;a page parsing unit, configured to perform page parsing on the acquired webpage data to generate a DOM tree node in the no-image browsing mode;
    检测单元,用于检测所述DOM树节点是否包括有外联图片资源;以及a detecting unit, configured to detect whether the DOM tree node includes an out-of-picture resource;
    图片资源加载单元,若所述DOM树节点包括有外联图片资源,所述图片资源加载单元用于判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。a picture resource loading unit, if the DOM tree node includes an out-of-picture resource, the picture resource loading unit is configured to determine whether the out-of-picture resource meets a loading rule, and if yes, load and display the out-of-picture resource.
  22. 根据权利要求21所述的网页图片资源加载装置,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性。The webpage picture resource loading apparatus according to claim 21, wherein the loading rule comprises: a function entry label that references the out-of-line picture resource is a visual label and has a click attribute.
  23. 根据权利要求22所述的网页图片资源加载装置,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的尺寸符合预定范围。The webpage image resource loading apparatus according to claim 22, wherein the loading rule comprises: a function entry label that references the out-of-line picture resource is a visual label and has a click attribute, and the size of the out-of-picture resource is in accordance with a predetermined range.
  24. 根据权利要求23所述的网页图片资源加载装置,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的宽度、高度、宽高比以及高宽比分别符合预定范围。The webpage image resource loading apparatus according to claim 23, wherein the loading rule comprises: a function entry label that references the out-of-picture resource is a visual label and has a click attribute, and a width and a height of the out-of-picture resource The aspect ratio and the aspect ratio respectively meet the predetermined range.
  25. 根据权利要求21所述的网页图片资源加载装置,其中所述加载规则包括:所述外联图片资源为图像标签所引用,且所述图像标签具有usemap属性。The webpage picture resource loading apparatus according to claim 21, wherein the loading rule comprises: the out-of-picture resource is referenced by an image tag, and the image tag has a usemap attribute.
  26. 根据权利要求21所述的网页图片资源加载装置,其中所述图片资源加载单元用于:若不符合所述加载规则,则不加载所述外联图片资源。The webpage image resource loading apparatus according to claim 21, wherein the picture resource loading unit is configured to: if the loading rule is not met, not to load the out-of-picture resource.
  27. 一种用户终端,包括:A user terminal comprising:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to:
    在无图浏览模式下,对获取到的网页数据进行页面解析生成DOM树节点;In the no-image browsing mode, page analysis is performed on the obtained webpage data to generate a DOM tree node;
    检测所述DOM树节点是否包括有外联图片资源;以及Detecting whether the DOM tree node includes an out-of-picture resource;
    若所述DOM树节点包括有外联图片资源,判断所述外联图片资源是否符合加载规则,若符合则加载显示所述外联图片资源。If the DOM tree node includes an out-of-picture resource, determine whether the out-of-picture resource meets the loading rule, and if yes, load and display the out-of-picture resource.
  28. 根据权利要求27所述的用户终端,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性。The user terminal of claim 27, wherein the loading rule comprises: a function entry tag that references the out-of-picture resource is a visual tag and has a click attribute.
  29. 根据权利要求28所述的用户终端,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的尺寸符合预定范围。The user terminal according to claim 28, wherein the loading rule comprises: a function entry tag that references the out-of-picture resource is a visual tag and has a click attribute, and the size of the out-of-picture resource conforms to a predetermined range.
  30. 根据权利要求29所述的用户终端,其中所述加载规则包括:引用所述外联图片资源的功能入口标签为可视化标签且具有点击属性,且所述外联图片资源的宽度、高度、宽高比以及高宽比分别符合预定范围。The user terminal according to claim 29, wherein the loading rule comprises: a function entry tag that references the out-of-line picture resource is a visual tag and has a click attribute, and a width, a height, a width and a height of the out-of-picture resource The ratio and the aspect ratio respectively meet the predetermined range.
  31. 根据权利要求27所述的用户终端,其中所述加载规则包括:所述外联图片资源为图像标签所引用,且所述图像标签具有usemap属性。The user terminal of claim 27, wherein the loading rule comprises the out-of-picture resource being referenced by an image tag and the image tag having a usemap attribute.
  32. 根据权利要求27所述的用户终端,其中所述一个或多个程序配置用于:若不符合所述加载规则,则不加载所述外联图片资源。The user terminal of claim 27, wherein the one or more programs are configured to not load the out-of-picture resource if the loading rule is not met.
  33. 一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行权利要求15~20任一项所述的方法。A computer readable storage medium carrying one or more computer program programs, executed by one or more processors, the one or more processors executing any one of claims 15-20 The method described in the item.
PCT/CN2017/120265 2017-01-25 2017-12-29 User terminal and webpage image resource loading device and method, storage medium WO2018137470A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710061038.3 2017-01-25
CN201710061038.3A CN108280101A (en) 2017-01-25 2017-01-25 user terminal and web page picture resource loading device and method

Publications (1)

Publication Number Publication Date
WO2018137470A1 true WO2018137470A1 (en) 2018-08-02

Family

ID=62801089

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/120265 WO2018137470A1 (en) 2017-01-25 2017-12-29 User terminal and webpage image resource loading device and method, storage medium

Country Status (2)

Country Link
CN (1) CN108280101A (en)
WO (1) WO2018137470A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359257A (en) * 2018-10-09 2019-02-19 上海二三四五网络科技有限公司 A kind of control method and control device realized in browser of mobile terminal without figure browsing
CN113934949B (en) * 2021-11-24 2022-10-14 掌阅科技股份有限公司 Information page display method, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929953A (en) * 2012-10-08 2013-02-13 北京奇虎科技有限公司 Webpage picture display device and method
CN102929952A (en) * 2012-10-08 2013-02-13 北京奇虎科技有限公司 Web page image display device and method
CN102982181A (en) * 2012-12-18 2013-03-20 北京奇虎科技有限公司 Method and device for showing webpage data on browser side
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system
CN104715060A (en) * 2012-06-29 2015-06-17 北京奇虎科技有限公司 Picture display method and device based on web pages

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217037B (en) * 2012-04-23 2018-03-23 北京奇虎科技有限公司 A kind of method and device for showing webpage in the terminal
CN102819561B (en) * 2012-06-29 2015-04-29 北京奇虎科技有限公司 Picture display method and device based on webpage
CN103823851B (en) * 2014-02-14 2018-02-02 小米科技有限责任公司 Webpage display process and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715060A (en) * 2012-06-29 2015-06-17 北京奇虎科技有限公司 Picture display method and device based on web pages
CN102929953A (en) * 2012-10-08 2013-02-13 北京奇虎科技有限公司 Webpage picture display device and method
CN102929952A (en) * 2012-10-08 2013-02-13 北京奇虎科技有限公司 Web page image display device and method
CN102982181A (en) * 2012-12-18 2013-03-20 北京奇虎科技有限公司 Method and device for showing webpage data on browser side
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system

Also Published As

Publication number Publication date
CN108280101A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
KR102384130B1 (en) Hover-based interaction with rendered content
US8307279B1 (en) Smooth zooming in web applications
WO2018076795A1 (en) Page refreshing method and device
US20170220220A1 (en) Advertisement generation apparatus and terminal device
US20130080910A1 (en) Dynamic visualization of page element access rates in a web application
KR20140012664A (en) Method for rearranging web page
US20140059420A1 (en) Appending a uniform resource identifier (uri) fragment identifier to a uniform resource locator (url)
WO2016168983A1 (en) Method and electronic device for displaying web page
CN106708502B (en) Webpage processing method and device
JP2011065488A (en) Information processing apparatus, data acquisition method and program
US20170032494A1 (en) Methods for displaying a webpage fragment on a desktop and systems for taking a snapshot of webpage fragment for displaying on a desktop
US8782538B1 (en) Displaying a suggested query completion within a web browser window
TW201501016A (en) Data searching method and electronic apparatus thereof
WO2014040534A1 (en) Method and apparatus for manipulating and presenting images included in webpages
US9465814B2 (en) Annotating search results with images
WO2018137470A1 (en) User terminal and webpage image resource loading device and method, storage medium
CN105320432A (en) Scroll bar display method and apparatus
US10838585B1 (en) Interactive content element presentation
EP3043251A1 (en) Method of displaying content and electronic device implementing same
JP6224682B2 (en) Information display program, information display device, information display method, and distribution device
TWI489370B (en) System and method for rendering widget
JP5959064B2 (en) Computer, method and program for displaying document file
JP6158903B2 (en) Information display program, information display device, information display method, and distribution device
KR20120073179A (en) Method for providing ads in web page using keywords
US11288336B2 (en) Systems and methods for providing content items in situations involving suboptimal network conditions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17894100

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17894100

Country of ref document: EP

Kind code of ref document: A1