WO2017219691A1 - 页面内容加载方法、装置及电子设备 - Google Patents

页面内容加载方法、装置及电子设备 Download PDF

Info

Publication number
WO2017219691A1
WO2017219691A1 PCT/CN2017/073975 CN2017073975W WO2017219691A1 WO 2017219691 A1 WO2017219691 A1 WO 2017219691A1 CN 2017073975 W CN2017073975 W CN 2017073975W WO 2017219691 A1 WO2017219691 A1 WO 2017219691A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
page
current
current webpage
loading
Prior art date
Application number
PCT/CN2017/073975
Other languages
English (en)
French (fr)
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 WO2017219691A1 publication Critical patent/WO2017219691A1/zh
Priority to US16/202,301 priority Critical patent/US20190107929A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present application relates to the field of web browsing technologies, and in particular, to a page content loading method, device, and electronic device.
  • mobile devices have gradually become an indispensable tool in people's daily life, such as mobile phones, smart phones, smart watches, smart terminals and so on.
  • the user interacts with the mobile device operating system on the mobile device by sliding the screen, and the mobile device loads and displays the interface and content information in the device screen in response to the user's swipe gesture.
  • the page When a user browses webpage information on a mobile device, the page is generally dragged by a gesture of sliding up and down. Since the information content of different webpages is different, when the user browses the webpage, the page is continuously dragged until the bottom of the page, because the page content is already loaded. When you are finished, you will not be able to continue dragging. You cannot continue to provide users with content that is of interest to the user on the current page.
  • the embodiment of the present application provides a page content loading method, device, and electronic device, which can continuously load customized content at the bottom of the page according to a user's drag operation before the user drags the page to the bottom of the page, thereby being able to The page continues to provide content that the user is interested in.
  • the embodiment of the present application provides a page content loading method, including:
  • the customized content is loaded below the bottom of the current web page.
  • the ratio of the content that is not displayed in the last complete page above the bottom of the current web page to the full page includes:
  • the loading the customized content at the bottom of the current webpage includes:
  • the predetermined number of pieces of content data are loaded to the bottom of the current web page.
  • the loading the predetermined quantity of content data blocks to the bottom of the current webpage includes:
  • the method further includes: when detecting that the user pulls to the loaded When the bottom of the content is customized and continues to be pulled, the predetermined number of pieces of content data are loaded below the loaded customized content.
  • the loading the predetermined quantity of content data blocks under the loaded customized content includes:
  • a predetermined number of pieces of content data that match the current web page are loaded below the loaded customized content.
  • a seventh implementation manner of the first aspect the matching, by the current webpage, the content webpage, the predetermined number of content data blocks that match the current webpage,
  • the method further includes:
  • the loaded content data block is removed according to the left and right sliding instructions.
  • the embodiment of the present application provides a page content loading apparatus, including:
  • a detecting unit configured to detect a pulling operation of the user on the current webpage
  • An obtaining unit configured to: when the detecting unit detects that the user pulls the current webpage to start displaying the content of the last complete page above the bottom of the current webpage, acquiring the last complete page above the bottom of the current webpage The proportion of the displayed content to the full page;
  • the first loading unit is configured to load the customized content below the bottom of the current webpage when the proportion of the content not displayed in the last complete page above the bottom of the current webpage is equal to a predetermined ratio.
  • the acquiring unit includes:
  • a first obtaining subunit configured to obtain a height of a bottom of the current displayed page from a bottom of the current webpage and a height of a last full page
  • a calculating subunit configured to calculate, according to a height of a bottom of the current display page acquired by the first obtaining subunit from a bottom of the current webpage and a height of a last full page, a last one above the bottom of the current webpage The proportion of content that is not displayed on the full page as a percentage of the full page.
  • the first loading unit includes:
  • a second acquiring subunit configured to acquire a predetermined number of content data blocks
  • a first loading subunit configured to load the predetermined number of content data blocks acquired by the second acquiring subunit to the bottom of the current webpage.
  • the first loading subunit is configured to cache the predetermined number of content data blocks, when the detecting unit When detecting that the user pulls the current webpage to the bottom of the current webpage and continues to pull, the cached predetermined number of content data chunks are loaded to the bottom of the current webpage.
  • the second obtaining subunit is configured to acquire a predetermined number of content data blocks that match a webpage access record of the user.
  • the device further includes: a second loading unit, where the first loading unit is at the bottom of the current webpage After loading the customized content, when the detecting unit detects that the user pulls to the bottom of the loaded customized content and continues to pull, the predetermined number of pieces of content data are loaded under the loaded customized content.
  • the second loading unit includes:
  • a matching subunit configured to match the current webpage with the content style library, and obtain a predetermined number of content data blocks that match the current webpage
  • a second loading subunit configured to load, under the loaded customized content, a predetermined number of pieces of content data that match the current webpage.
  • the matching subunit And acquiring a feature of the current webpage, matching the feature of the current webpage with the content style library, and acquiring a predetermined number of content data blocks that match the feature of the current webpage.
  • the device further includes:
  • a receiving unit configured to receive a left and right sliding instruction issued by the user for the loaded content data block
  • a removing unit configured to remove the loaded content data block according to the left and right sliding instructions received by the receiving unit.
  • an embodiment of the present application provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor And a memory disposed on the circuit board; a power supply circuit for powering each circuit or device of the electronic device; a memory for storing executable program code; and the processor operating by reading executable program code stored in the memory
  • the program corresponding to the program code is used to execute the page content loading method described in any of the foregoing.
  • the method for loading a page content, the device, and the electronic device provided by the embodiment of the present application, when detecting that the user pulls the current webpage to the content of the last complete page above the bottom of the current webpage, starts to display, and obtains the current webpage.
  • the customized content is loaded at the bottom of the current web page.
  • the present application can continuously load customized content at the bottom of the page according to the user's drag operation before the user drags the page to the bottom of the page, so that the content of interest to the user can be seamlessly compared with the user being viewed.
  • the content is connected so that users can get the content they are interested in on the current page.
  • Embodiment 1 is a flowchart of Embodiment 1 of a page content loading method of the present application
  • Embodiment 2 is a flowchart of Embodiment 2 of a page content loading method of the present application
  • Embodiment 3 is a schematic structural diagram of Embodiment 1 of a page content loading apparatus according to the present application.
  • Embodiment 4 is a schematic structural diagram of Embodiment 2 of a page content loading apparatus according to the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
  • Embodiment 1 is a flowchart of Embodiment 1 of a page content loading method of the present application. As shown in FIG. 1 , the method in this embodiment may include:
  • Step 101 Detect a user pulling operation on a current webpage.
  • the webpage address requested by the user is first obtained, and the webpage browsing request is sent to the webpage server according to the webpage address, the webpage code is obtained from the webpage server, and then the webpage code is parsed, and the webpage content is typeset and displayed, and displayed. Current page.
  • Step 102 When it is detected that the user pulls the current webpage to the content of the last complete page above the bottom of the current webpage, the content that is not displayed in the last complete page above the bottom of the current webpage is obtained. The proportion of the full page.
  • the height of the bottom of the current display page and the height of the last full page may be obtained, and the height of the bottom of the current display page from the bottom of the current web page is divided by the last full page.
  • the height, the ratio obtained is the ratio of the content not displayed in the last complete page above the bottom of the current web page to the full page.
  • Step 103 When the proportion of the content not displayed in the last complete page above the bottom of the current webpage is equal to a predetermined ratio, the customized content is loaded at the bottom of the current webpage.
  • a predetermined number of content data blocks may be first acquired from the cloud, and then the predetermined number of content data blocks are loaded into the bottom of the current web page in a card information stream.
  • Each data block contains a picture and a link, and the user clicks on the picture or link to jump to the detailed page.
  • a predetermined number of pieces of content data matching the user's webpage access record may be obtained, which matches the user's webpage access record, that is, matches the user's usage habit or the number of user visits is relatively large, thereby obtaining Content that users are interested in.
  • the customized content may be an advertisement, a news, a video, or the like.
  • the predetermined ratio is a value greater than 0 and less than 100, so that after the last complete page above the bottom of the current webpage has been displayed, the last complete page above the bottom of the current webpage is completely displayed before The customized content data block is loaded to ensure that the card information stream can be loaded unbuffered after the web page reaches the bottom.
  • the content when it is detected that the user pulls the current webpage to the content of the last complete page above the bottom of the current webpage, the content is displayed, and the content that is not displayed in the last complete page above the bottom of the current webpage is obtained.
  • the proportion of the full page is equal to a predetermined ratio, the customized content is loaded below the bottom of the current webpage.
  • the present application can hold the page at the bottom of the page according to the user's drag operation before the user drags the page to the bottom of the page.
  • the customized content is continuously loaded, so that the content of interest to the user can be seamlessly connected with the content that the user is viewing, so that the user can obtain the content of interest on the current page.
  • Embodiment 2 is a flowchart of Embodiment 2 of a page content loading method of the present application. As shown in FIG. 2, the method in this embodiment may include:
  • Step 201 Detect a user's pulling operation on the current webpage.
  • the process of detecting the user's pull operation on the current webpage is similar to the step 101 of the foregoing method embodiment, and details are not described herein again.
  • Step 202 When it is detected that the user pulls the current webpage to the content of the last complete page above the bottom of the current webpage, the content that is not displayed in the last complete page above the bottom of the current webpage is obtained. The proportion of the full page.
  • the process of obtaining the proportion of the content of the complete page that is not displayed in the last complete page at the bottom of the current webpage is similar to the step 102 of the foregoing method embodiment, and details are not described herein again.
  • Step 203 When the proportion of the content not displayed in the last complete page above the bottom of the current webpage is equal to a predetermined ratio, the customized content is loaded at the bottom of the current webpage.
  • the process of loading the customized content at the bottom of the current webpage is similar to the step 103 of the foregoing method embodiment.
  • the obtained predetermined number of pieces of content data may be cached first, and when the user is detected to pull the current webpage to the bottom of the current webpage and continue to pull, the cached predetermined number of content data blocks are loaded into the At the bottom of the current page.
  • the cached content does not need to be re-acquired from the cloud when the page content loading is performed on the same webpage next time.
  • Data blocks which can be used directly by the cached content data blocks.
  • the cached content data block can be loaded regardless of how many times the cached content data block is loaded, but if it is cached If the content data block has exceeded the set cache period, it will no longer be loaded.
  • Step 204 When it is detected that the user pulls to the bottom of the loaded customized content and continues to pull, the predetermined number of content data blocks are loaded under the loaded customized content.
  • the user when the user pulls the current page until the loaded customized content is completely displayed, if the user continues to pull, the user can continue to load the same amount of content data blocks under the loaded customized content to meet the user's viewing requirements. .
  • the feature of the current webpage may be acquired, the feature of the current webpage is matched with the content style library, and a predetermined number of content data blocks matching the features of the current webpage are acquired, and then the loaded A predetermined number of pieces of content data that match the characteristics of the current web page are loaded below the customized content.
  • Step 205 Receive a left and right sliding instruction issued by the user for the loaded content data block.
  • part or all of the loaded content data block may be selected to perform a left and right sliding operation.
  • Step 206 Remove the loaded content data block according to the left and right sliding instructions.
  • the electronic device when the user selects part or all of the loaded content data block and performs a left and right sliding operation, the electronic device receives the left and right sliding instruction, and removes part or all of the loaded content data block selected by the user.
  • the present application can continuously load customized content at the bottom of the page according to the user's drag operation before the user drags the page to the bottom of the page, so that the content of interest to the user can be seamlessly compared with the user being viewed.
  • the content is connected so that users can get the content they are interested in on the current page.
  • the apparatus of this embodiment may include: a detecting unit 11, an obtaining unit 12, and a first loading unit 13, wherein the detecting unit 11,
  • the acquiring unit 12 is configured to: when the detecting unit 11 detects that the user pulls the current webpage to the content of the last complete page above the bottom of the current webpage, and starts acquiring a content that is not displayed in the last complete page above the bottom of the current web page as a proportion of the full page; a first loading unit 13 for not displaying content in the last complete page above the bottom of the current web page When the proportion of the full page is equal to a predetermined ratio, the customized content is loaded at the bottom of the current web page.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
  • the apparatus of this embodiment is based on the apparatus structure shown in FIG. 3.
  • the obtaining unit 12 may include: An acquisition sub-unit 121, configured to acquire a height of a bottom of the current display page from a bottom of the current webpage and a height of a last full page, and a calculation sub-unit 122, configured to acquire the content according to the first acquisition sub-unit 121
  • the height of the bottom of the current display page is the height of the bottom of the current web page and the height of the last full page, and the ratio of the content not displayed in the last complete page above the bottom of the current web page to the full page is calculated.
  • the first loading unit 13 may include: a second acquiring sub-unit 131, configured to acquire a predetermined number of pieces of content data; a first loading sub-unit 132, configured to acquire the second acquiring sub-unit 131 The predetermined number of pieces of content data are loaded below the bottom of the current web page.
  • the first loading sub-unit 132 may be configured to cache the predetermined number of content data blocks, and when the detecting unit 11 detects that the user pulls the current webpage to the bottom of the current webpage and continues to pull, Cache The predetermined number of content data blocks are loaded to the bottom of the current web page.
  • the second obtaining sub-unit 131 may be configured to acquire a predetermined number of pieces of content data that match a webpage access record of the user.
  • the device may further include: a second loading unit 14 configured to: after the first loading unit 13 loads the customized content below the bottom of the current webpage, when the detecting unit 11 detects that the user pulls to When the bottom of the loaded customized content continues to be pulled, the predetermined number of pieces of content data are loaded below the loaded customized content.
  • a second loading unit 14 configured to: after the first loading unit 13 loads the customized content below the bottom of the current webpage, when the detecting unit 11 detects that the user pulls to When the bottom of the loaded customized content continues to be pulled, the predetermined number of pieces of content data are loaded below the loaded customized content.
  • the second loading unit 14 may include:
  • the matching sub-unit 141 is configured to match the current webpage with the content style library, and acquire a predetermined number of content data blocks that match the current webpage;
  • the second loading sub-unit 142 is configured to load a predetermined number of pieces of content data that match the current webpage under the loaded customized content.
  • the matching sub-unit 141 may be configured to acquire a feature of the current webpage, match the feature of the current webpage with a content style library, and acquire a predetermined number of content data blocks that match the feature of the current webpage. .
  • the device may further include: a receiving unit 15 configured to receive a left and right sliding instruction issued by the user for the loaded content data block; and a removing unit 16 configured to slide the left and right according to the receiving unit 15 An instruction to remove the loaded content data block.
  • a receiving unit 15 configured to receive a left and right sliding instruction issued by the user for the loaded content data block
  • a removing unit 16 configured to slide the left and right according to the receiving unit 15 An instruction to remove the loaded content data block.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 or FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • 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 well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • the embodiment of the present application further provides an electronic device, where the electronic device includes the device described in any of the foregoing embodiments.
  • FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The process of the embodiment shown in FIG. 1 or FIG. 2 may be implemented.
  • the electronic device may include: a housing 31, a processor 32, and a memory. 33, a circuit board 34 and a power supply circuit 35, wherein the circuit board 34 is disposed inside the space enclosed by the casing 31, the processor 32 and the memory 33 are disposed on the circuit board 34; and the power supply circuit 35 is used for the electronic device Each circuit or device is powered; the memory 33 is for storing executable program code; the processor 32 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 33 for performing any of the foregoing Page content loading method.
  • the electronic device exists in a variety of forms including, but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, with computing and processing functions. Generally also have mobile Internet features. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • each unit/module may be implemented in the same software or software and/or hardware when implementing the present application.
  • the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

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

Abstract

一种页面内容加载方法、装置及电子设备,能够解决现有技术中当用户拖动页面到页面底部时,无法在当前页面为用户继续提供用户感兴趣的内容的问题。所述方法包括:检测用户在当前网页的拉动操作(101);当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例(102);当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容(103)。

Description

页面内容加载方法、装置及电子设备
相关申请的交叉引用
本申请要求北京金山安全软件有限公司于2016年6月23日提交的、发明名称为“页面内容加载方法、装置及电子设备”的、中国专利申请号“201610463159.6”的优先权。
技术领域
本申请涉及网页浏览技术领域,尤其涉及一种页面内容加载方法、装置及电子设备。
背景技术
目前,移动设备已经逐渐成为人们日常生活中不可或缺的工具,例如手机、智能手机、智能手表、智能终端等。用户在移动设备上通过滑动屏幕与移动设备操作系统进行交互,移动设备响应用户的滑动手势,在设备屏幕中加载和显示界面和内容信息。
当用户在移动设备上浏览网页信息时,一般情况会通过上下滑动的手势拖动页面,由于不同网站页面信息容量不同,当用户浏览网页时持续拖动页面直到页面底部时,由于页面内容已经加载完毕,会出现无法继续拖动的情况,无法在当前页面为用户继续提供用户感兴趣的内容。
发明内容
有鉴于此,本申请实施例提供一种页面内容加载方法、装置及电子设备,能够当用户拖动页面到页面底部之前,根据用户的拖动操作在页面底部持续加载定制内容,从而能够在当前页面为用户继续提供用户感兴趣的内容。
第一方面,本申请实施例提供一种页面内容加载方法,包括:
检测用户在当前网页的拉动操作;
当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例;
当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
结合第一方面,在第一方面的第一种实施方式中,所述获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例包括:
获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高 度;
根据所述当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,计算所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
结合第一方面,在第一方面的第二种实施方式中,所述在所述当前网页底部下方加载定制内容包括:
获取预定数量的内容数据块;
将所述预定数量的内容数据块加载至所述当前网页底部下方。
结合第一方面的第二种实施方式,在第一方面的第三种实施方式中,所述将所述预定数量的内容数据块加载至所述当前网页底部下方包括:
对所述预定数量的内容数据块进行缓存;
当检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所述预定数量的内容数据块加载至所述当前网页底部下方。
结合第一方面的第二种实施方式,在第一方面的第四种实施方式中,所述获取预定数量的内容数据块包括:获取与用户的网页访问记录相匹配的预定数量的内容数据块。
结合第一方面的第三种实施方式,在第一方面的第五种实施方式中,在所述当前网页底部下方加载定制内容之后,所述方法还包括:当检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
结合第一方面的第五种实施方式,在第一方面的第六种实施方式中,所述在所述已加载的定制内容的下方加载所述预定数量的内容数据块包括:
将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块;
在所述已加载的定制内容的下方加载与当前网页相匹配的预定数量的内容数据块。
结合第一方面的第六种实施方式,在第一方面的第七种实施方式中,所述将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块包括:
获取当前网页的特征;
将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块。
结合第一方面的第五种实施方式,在第一方面的第八种实施方式中,所述方法还包括:
接收用户针对已加载的内容数据块发出的左右滑动指令;
根据所述左右滑动指令,对所述已加载的内容数据块进行移除。
第二方面,本申请实施例提供一种页面内容加载装置,包括:
检测单元,用于检测用户在当前网页的拉动操作;
获取单元,用于当所述检测单元检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例;
第一加载单元,用于当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
结合第二方面,在第二方面的第一种实施方式中,所述获取单元包括:
第一获取子单元,用于获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度;
计算子单元,用于根据所述第一获取子单元获取的所述当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,计算所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
结合第二方面,在第二方面的第二种实施方式中,所述第一加载单元包括:
第二获取子单元,用于获取预定数量的内容数据块;
第一加载子单元,用于将所述第二获取子单元获取的所述预定数量的内容数据块加载至所述当前网页底部下方。
结合第二方面的第二种实施方式,在第二方面的第三种实施方式中,所述第一加载子单元,用于对所述预定数量的内容数据块进行缓存,当所述检测单元检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所述预定数量的内容数据块加载至所述当前网页底部下方。
结合第二方面的第二种实施方式,在第二方面的第四种实施方式中,所述第二获取子单元,用于获取与用户的网页访问记录相匹配的预定数量的内容数据块。
结合第二方面的第三种实施方式,在第二方面的第五种实施方式中,所述装置还包括:第二加载单元,用于在所述第一加载单元在所述当前网页底部下方加载定制内容之后,当所述检测单元检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
结合第二方面的第五种实施方式,在第二方面的第六种实施方式中,所述第二加载单元包括:
匹配子单元,用于将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块;
第二加载子单元,用于在所述已加载的定制内容的下方加载与当前网页相匹配的预定数量的内容数据块。
结合第二方面的第六种实施方式,在第二方面的第七种实施方式中,所述匹配子单元, 用于获取当前网页的特征,将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块。
结合第二方面的第五种实施方式,在第二方面的第八种实施方式中,所述装置还包括:
接收单元,用于接收用户针对已加载的内容数据块发出的左右滑动指令;
移除单元,用于根据所述接收单元接收的所述左右滑动指令,对所述已加载的内容数据块进行移除。
第三方面,本申请实施例提供一种电子设备,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一所述的页面内容加载方法。
本申请实施例提供的一种页面内容加载方法、装置及电子设备,当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示,且获取到所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。与现有技术相比,本申请能够当用户拖动页面到页面底部之前,根据用户的拖动操作在页面底部持续加载定制内容,从而能够将用户感兴趣的内容无缝地与用户正在查看的内容衔接,便于用户在当前页面获取自己感兴趣的内容。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请页面内容加载方法实施例一的流程图;
图2为本申请页面内容加载方法实施例二的流程图;
图3为本申请页面内容加载装置实施例一的结构示意图;
图4为本申请页面内容加载装置实施例二的结构示意图;
图5为本申请电子设备实施例的结构示意图。
具体实施方式
下面结合附图对本申请实施例进行详细描述。
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
图1为本申请页面内容加载方法实施例一的流程图,如图1所示,本实施例的方法可以包括:
步骤101、检测用户在当前网页的拉动操作。
本实施例中,首先获取用户请求访问的网页地址,根据所述网页地址,向网站服务器发送网页浏览请求,从网站服务器获取网页代码,然后解析网页代码,对网页内容进行排版和展示,显示出当前网页。
步骤102、当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
本实施例中,可以获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,将所述当前显示页面的底部距离所述当前网页底部的高度除以最后一个完整页面的高度,得到的比值即所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
步骤103、当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
本实施例中,可以首先从云端获取预定数量的内容数据块,然后以卡片信息流的方式将所述预定数量的内容数据块加载至所述当前网页底部下方。其中,每个数据块中包含图片以及链接,用户点击该图片或链接可以跳转到详细页面。
优选地,可以获取与用户的网页访问记录相匹配的预定数量的内容数据块,所述与用户的网页访问记录相匹配,也即与用户的使用习惯相符或者用户访问次数比较多,从而可以得到用户感兴趣的内容。具体地,所述定制内容可以为广告、新闻、视频等。
其中,所述预定比例为大于0且小于100的值,从而可以使得在当前网页底部之上的最后一个完整的页面已经开始显示之后、当前网页底部之上的最后一个完整的页面完全显示之前已加载完定制的内容数据块,以保证网页到达底部之后,可以无缓冲地加载卡片信息流。
本实施例,当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示,且获取到所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。与现有技术相比,本申请能够当用户拖动页面到页面底部之前,根据用户的拖动操作在页面底部持 续加载定制内容,从而能够将用户感兴趣的内容无缝地与用户正在查看的内容衔接,便于用户在当前页面获取自己感兴趣的内容。
图2为本申请页面内容加载方法实施例二的流程图,如图2所示,本实施例的方法可以包括:
步骤201、检测用户在当前网页的拉动操作。
本实施例中,检测用户在当前网页的拉动操作的过程和上述方法实施例的步骤101类似,此处不再赘述。
步骤202、当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
本实施例中,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例的过程和上述方法实施例的步骤102类似,此处不再赘述。
步骤203、当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
本实施例中,在所述当前网页底部下方加载定制内容的过程和上述方法实施例的步骤103类似。进一步地,可以先对所获取的预定数量的内容数据块进行缓存,当检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所述预定数量的内容数据块加载至所述当前网页底部下方。
其中,如果所述预定数量的内容数据块在缓存之后没有被加载过且没有超过设定的缓存期限,则在下次对相同网页执行页面内容加载时,不需要再从云端重新获取所缓存的内容数据块,可以直接使用所缓存的内容数据块。
另外,如果在进行页面内容加载时,没有从云端获取到新的内容数据块,则可以加载已缓存的内容数据块,不论所缓存的内容数据块被加载过多少次,但是,如果所缓存的内容数据块已超过设定的缓存期限,则不再进行加载。
步骤204、当检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
本实施例中,当用户拉动当前页面至已加载的定制内容完全显示时,如果用户继续拉动,则可以继续在已加载的定制内容的下方加载相同数量的内容数据块,以满足用户的查看需求。
可选地,可以先获取当前网页的特征,将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块,然后在所述已加载的定制内容的下方加载与所述当前网页的特征相匹配的预定数量的内容数据块。
步骤205、接收用户针对已加载的内容数据块发出的左右滑动指令。
本实施例中,当用户不希望继续查看已加载的定制内容时,可以选中已加载的内容数据块的部分或全部,进行左右滑动操作。
步骤206、根据所述左右滑动指令,对所述已加载的内容数据块进行移除。
本实施例中,用户选中已加载的内容数据块的部分或全部并进行左右滑动操作时,电子设备接收到左右滑动指令,对用户选中的已加载的内容数据块的部分或全部进行移除。
本实施例,当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示,且获取到所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。与现有技术相比,本申请能够当用户拖动页面到页面底部之前,根据用户的拖动操作在页面底部持续加载定制内容,从而能够将用户感兴趣的内容无缝地与用户正在查看的内容衔接,便于用户在当前页面获取自己感兴趣的内容。
图3为本申请页面内容加载装置实施例一的结构示意图,如图3所示,本实施例的装置可以包括:检测单元11、获取单元12、第一加载单元13,其中,检测单元11,用于检测用户在当前网页的拉动操作;获取单元12,用于当所述检测单元11检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例;第一加载单元13,用于当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。
图4为本申请页面内容加载装置实施例二的结构示意图,如图4所示,本实施例的装置在图3所示装置结构的基础上,进一步地,所述获取单元12可以包括:第一获取子单元121,用于获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度;计算子单元122,用于根据所述第一获取子单元121获取的所述当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,计算所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
进一步地,所述第一加载单元13可以包括:第二获取子单元131,用于获取预定数量的内容数据块;第一加载子单元132,用于将所述第二获取子单元131获取的所述预定数量的内容数据块加载至所述当前网页底部下方。
进一步地,所述第一加载子单元132,可以用于对所述预定数量的内容数据块进行缓存,当所述检测单元11检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所 述预定数量的内容数据块加载至所述当前网页底部下方。
可选地,所述第二获取子单元131,可以用于获取与用户的网页访问记录相匹配的预定数量的内容数据块。
进一步地,所述装置还可以包括:第二加载单元14,用于在所述第一加载单元13在所述当前网页底部下方加载定制内容之后,当所述检测单元11检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
进一步地,所述第二加载单元14可以包括:
匹配子单元141,用于将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块;
第二加载子单元142,用于在所述已加载的定制内容的下方加载与当前网页相匹配的预定数量的内容数据块。
进一步地,所述匹配子单元141,可以用于获取当前网页的特征,将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块。
进一步地,所述装置还可以包括:接收单元15,用于接收用户针对已加载的内容数据块发出的左右滑动指令;移除单元16,用于根据所述接收单元15接收的所述左右滑动指令,对所述已加载的内容数据块进行移除。
本实施例的装置,可以用于执行图1或图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。
尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令 执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。
在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本申请实施例还提供一种电子设备,所述电子设备包含前述前述任一实施例所述的装置。
图5为本申请电子设备实施例的结构示意图,可以实现本申请图1或图2所示实施例的流程,如图5所示,上述电子设备可以包括:壳体31、处理器32、存储器33、电路板34和电源电路35,其中,电路板34安置在壳体31围成的空间内部,处理器32和存储器33设置在电路板34上;电源电路35,用于为上述电子设备的各个电路或器件供电;存储器33用于存储可执行程序代码;处理器32通过读取存储器33中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一所述的页面内容加载方法。
处理器32对上述步骤的具体执行过程以及处理器32通过运行可执行程序代码来进一步执行的步骤,可以参见本申请图1或图2所示实施例的描述,在此不再赘述。
该电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能, 一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子设备。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
为了描述的方便,描述以上装置是以功能分为各种单元/模块分别描述。当然,在实施本申请时可以把各单元/模块的功能在同一个或多个软件和/或硬件中实现。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。

Claims (19)

  1. 一种页面内容加载方法,其特征在于,包括:
    检测用户在当前网页的拉动操作;
    当检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例;
    当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
  2. 根据权利要求1所述的页面内容加载方法,其特征在于,所述获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例包括:
    获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度;
    根据所述当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,计算所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
  3. 根据权利要求1或2所述的页面内容加载方法,其特征在于,所述在所述当前网页底部下方加载定制内容包括:
    获取预定数量的内容数据块;
    将所述预定数量的内容数据块加载至所述当前网页底部下方。
  4. 根据权利要求3所述的页面内容加载方法,其特征在于,所述将所述预定数量的内容数据块加载至所述当前网页底部下方包括:
    对所述预定数量的内容数据块进行缓存;
    当检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所述预定数量的内容数据块加载至所述当前网页底部下方。
  5. 根据权利要求3或4所述的页面内容加载方法,其特征在于,所述获取预定数量的内容数据块包括:获取与用户的网页访问记录相匹配的预定数量的内容数据块。
  6. 根据权利要求3或4所述的页面内容加载方法,其特征在于,在所述当前网页底部下方加载定制内容之后,所述方法还包括:
    当检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
  7. 根据权利要求6所述的页面内容加载方法,其特征在于,所述在所述已加载的定制 内容的下方加载所述预定数量的内容数据块包括:
    将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块;
    在所述已加载的定制内容的下方加载与当前网页相匹配的预定数量的内容数据块。
  8. 根据权利要求7所述的页面内容加载方法,其特征在于,所述将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块包括:
    获取当前网页的特征;
    将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块。
  9. 根据权利要求6所述的页面内容加载方法,其特征在于,所述方法还包括:
    接收用户针对已加载的内容数据块发出的左右滑动指令;
    根据所述左右滑动指令,对所述已加载的内容数据块进行移除。
  10. 一种页面内容加载装置,其特征在于,包括:
    检测单元,用于检测用户在当前网页的拉动操作;
    获取单元,用于当所述检测单元检测到用户拉动当前网页至所述当前网页底部之上的最后一个完整页面的内容开始显示时,获取所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例;
    第一加载单元,用于当所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例等于预定比例时,在所述当前网页底部下方加载定制内容。
  11. 根据权利要求10所述的页面内容加载装置,其特征在于,所述获取单元包括:
    第一获取子单元,用于获取当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度;
    计算子单元,用于根据所述第一获取子单元获取的所述当前显示页面的底部距离所述当前网页底部的高度以及最后一个完整页面的高度,计算所述当前网页底部之上的最后一个完整页面中未显示的内容占所述完整页面的比例。
  12. 根据权利要求10或11所述的页面内容加载装置,其特征在于,所述第一加载单元包括:
    第二获取子单元,用于获取预定数量的内容数据块;
    第一加载子单元,用于将所述第二获取子单元获取的所述预定数量的内容数据块加载至所述当前网页底部下方。
  13. 根据权利要求12所述的页面内容加载装置,其特征在于,所述第一加载子单元,用于对所述预定数量的内容数据块进行缓存,当所述检测单元检测到用户拉动当前网页至当前网页的底部并继续拉动时,将缓存的所述预定数量的内容数据块加载至所述当前网页 底部下方。
  14. 根据权利要求12或13所述的页面内容加载装置,其特征在于,所述第二获取子单元,用于获取与用户的网页访问记录相匹配的预定数量的内容数据块。
  15. 根据权利要求12或13所述的页面内容加载装置,其特征在于,所述装置还包括:
    第二加载单元,用于在所述第一加载单元在所述当前网页底部下方加载定制内容之后,当所述检测单元检测到用户拉动至已加载的定制内容的底部并继续拉动时,在所述已加载的定制内容的下方加载所述预定数量的内容数据块。
  16. 根据权利要求15所述的页面内容加载装置,其特征在于,所述第二加载单元包括:
    匹配子单元,用于将当前网页与内容样式库进行匹配,获取与当前网页相匹配的预定数量的内容数据块;
    第二加载子单元,用于在所述已加载的定制内容的下方加载与当前网页相匹配的预定数量的内容数据块。
  17. 根据权利要求16所述的页面内容加载装置,其特征在于,所述匹配子单元,用于获取当前网页的特征,将所述当前网页的特征与内容样式库进行匹配,获取与所述当前网页的特征相匹配的预定数量的内容数据块。
  18. 根据权利要求15所述的页面内容加载装置,其特征在于,所述装置还包括:
    接收单元,用于接收用户针对已加载的内容数据块发出的左右滑动指令;
    移除单元,用于根据所述接收单元接收的所述左右滑动指令,对所述已加载的内容数据块进行移除。
  19. 一种电子设备,其特征在于,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一权利要求1-9所述的页面内容加载方法。
PCT/CN2017/073975 2016-06-23 2017-02-17 页面内容加载方法、装置及电子设备 WO2017219691A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/202,301 US20190107929A1 (en) 2016-06-23 2018-11-28 Method and device for loading content of page, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610463159.6A CN106156274A (zh) 2016-06-23 2016-06-23 页面内容加载方法、装置及电子设备
CN201610463159.6 2016-06-23

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/202,301 Continuation US20190107929A1 (en) 2016-06-23 2018-11-28 Method and device for loading content of page, and electronic device

Publications (1)

Publication Number Publication Date
WO2017219691A1 true WO2017219691A1 (zh) 2017-12-28

Family

ID=57353774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073975 WO2017219691A1 (zh) 2016-06-23 2017-02-17 页面内容加载方法、装置及电子设备

Country Status (3)

Country Link
US (1) US20190107929A1 (zh)
CN (1) CN106156274A (zh)
WO (1) WO2017219691A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156274A (zh) * 2016-06-23 2016-11-23 北京金山安全软件有限公司 页面内容加载方法、装置及电子设备
CN106850951B (zh) * 2016-12-19 2020-04-28 北京五八信息技术有限公司 用户兴趣模块展示方法及装置
CN108319624B (zh) * 2017-01-18 2022-04-26 腾讯科技(深圳)有限公司 数据加载方法及装置
CN109684010B (zh) * 2018-12-19 2022-05-13 北京金山安全软件有限公司 一种信息显示方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032820B1 (en) * 1995-06-07 2011-10-04 Google Inc. Efficiently displaying information about the interrelationships between documents
CN103678307A (zh) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 页面显示方法及客户端
CN103713831A (zh) * 2013-11-29 2014-04-09 百度在线网络技术(北京)有限公司 一种页面交互方法与设备
CN103870188A (zh) * 2012-12-17 2014-06-18 富泰华工业(深圳)有限公司 网页控制系统及方法
CN106156274A (zh) * 2016-06-23 2016-11-23 北京金山安全软件有限公司 页面内容加载方法、装置及电子设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8375322B2 (en) * 2008-06-20 2013-02-12 International Busniess Machines Corporation Context sensitive paging
WO2011065285A1 (ja) * 2009-11-26 2011-06-03 楽天株式会社 サーバ装置、端末装置、Webページ上への情報挿入方法、情報挿入プログラム、及びプログラムが記録された記録媒体
CN102222086B (zh) * 2011-05-18 2014-11-26 广州市动景计算机科技有限公司 基于移动终端的网页阅读方法、网页阅读装置及移动终端
US8639680B1 (en) * 2012-05-07 2014-01-28 Google Inc. Hidden text detection for search result scoring
US20140136314A1 (en) * 2012-11-09 2014-05-15 Gold Post Technologies, Inc. Interactive Technology for Conversational Marketing in Mobile Devices
US9594732B2 (en) * 2012-12-20 2017-03-14 Google Inc. Selectively replacing displayed content items based on user interaction
CN103116452A (zh) * 2013-01-31 2013-05-22 华为终端有限公司 桌面组件创建方法、装置和终端设备
KR20140114645A (ko) * 2013-03-19 2014-09-29 삼성전자주식회사 하이퍼링크의 미리 보기 화면 표시 방법 및 그 장치
US11205195B2 (en) * 2013-03-29 2021-12-21 Rakuten Group, Inc. Information processing device, information processing method, and information processing program
CN104102679A (zh) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 显示扩展功能信息区的方法和装置
US10289296B1 (en) * 2015-08-21 2019-05-14 Google Llc Systems and methods for dynamically appending supplemental content to an information resource responsive to scroll activity
CN105608102B (zh) * 2015-10-12 2019-07-05 网易传媒科技(北京)有限公司 一种页面加载方法和设备
CN105550356B (zh) * 2015-12-28 2019-07-16 魅族科技(中国)有限公司 一种浏览内容预加载方法及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032820B1 (en) * 1995-06-07 2011-10-04 Google Inc. Efficiently displaying information about the interrelationships between documents
CN103678307A (zh) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 页面显示方法及客户端
CN103870188A (zh) * 2012-12-17 2014-06-18 富泰华工业(深圳)有限公司 网页控制系统及方法
CN103713831A (zh) * 2013-11-29 2014-04-09 百度在线网络技术(北京)有限公司 一种页面交互方法与设备
CN106156274A (zh) * 2016-06-23 2016-11-23 北京金山安全软件有限公司 页面内容加载方法、装置及电子设备

Also Published As

Publication number Publication date
US20190107929A1 (en) 2019-04-11
CN106156274A (zh) 2016-11-23

Similar Documents

Publication Publication Date Title
US9449107B2 (en) Method and system for gesture based searching
TWI626608B (zh) 互動式展示廣告單元
CN109286850B (zh) 一种基于弹幕的视频标注方法及终端
CN103733197B (zh) 本地和远程媒体项的管理
WO2017219691A1 (zh) 页面内容加载方法、装置及电子设备
WO2015096746A1 (zh) 一种推荐方法、装置及服务器
WO2017054582A1 (zh) 一种信息推送方法、装置及电子设备
US20120084373A1 (en) Computer device for reading e-book and server for being connected with the same
US20160012104A1 (en) Search interfaces with preloaded suggested search queries
US9589033B1 (en) Presenting results from multiple search engines
JP6298215B2 (ja) ユーザーウイッシュリストを用いたコンテンツアイテムの取得及びレンダリングの自動化
CN106469396B (zh) 一种推送广告信息的方法及终端
WO2017219524A1 (zh) 一种页面保存的方法及电子设备
WO2017113673A1 (zh) 一种图片查看方法、装置和电子设备
US20170187822A1 (en) Content prefetching and cache management
WO2017032079A1 (zh) 一种信息浏览方法及移动终端
US8898587B2 (en) Electronic book inscription system
US9910918B2 (en) Presenting tags of a tag cloud in a more understandable and visually appealing manner
WO2015101204A1 (zh) 一种图像缩放方法和终端设备
US20150362976A1 (en) Context based power saving
WO2017161808A1 (zh) 一种桌面图标的处理方法和终端
JP2019537785A (ja) 端末スクリーン上で情報がスクロールされる間に表示される情報
WO2017161810A1 (zh) 一种桌面图标的整理方法和终端
CN107580030B (zh) 一种数据管理方法、装置及服务器
CN107885774B (zh) 数据处理方法和系统

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: 17814430

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.04.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17814430

Country of ref document: EP

Kind code of ref document: A1