WO2018129774A1 - 页面处理方法及装置 - Google Patents
页面处理方法及装置 Download PDFInfo
- Publication number
- WO2018129774A1 WO2018129774A1 PCT/CN2017/073017 CN2017073017W WO2018129774A1 WO 2018129774 A1 WO2018129774 A1 WO 2018129774A1 CN 2017073017 W CN2017073017 W CN 2017073017W WO 2018129774 A1 WO2018129774 A1 WO 2018129774A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- terminal
- instruction
- cache resource
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5683—Storage of data provided by user terminals, i.e. reverse caching
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—Two-dimensional [2D] image generation
- G06T11/60—Creating or editing images; Combining images with text
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present invention relates to the field of mobile communications, and in particular to a page processing method and apparatus.
- the embodiment of the invention provides a page processing method and device, so as to at least solve the technical problem that the processing speed of executing the back operation in the page is slow.
- a page processing method includes: receiving a first instruction, where the first instruction is used to indicate access to a first page, where the first page is visited by a terminal Page Reading the stored cache resource of the first page from the terminal memory; reloading the first page based on the cache resource of the first page; and displaying the reloaded first page on the terminal.
- the method further includes: after receiving the access request for accessing the first page for the first time, acquiring a cache resource of the first page from a server; for the first page Caching resources for loading and parsing operations to display the first page on the terminal; after displaying the first page on the terminal, receiving a second instruction, wherein the second instruction is for indicating Accessing the second page; saving the cache resource of the first page into the terminal memory in response to the second instruction.
- saving the cache resource of the first page to the terminal memory includes: acquiring a cache resource of the first page and a network of the first page after suspending the loading task of the first page
- the resource address is stored in the memory of the terminal by the association between the cache resource of the first page and the network resource address of the first page.
- the first instruction includes a forward instruction or a backward instruction, where the forward instruction is used to indicate that the currently displayed page is switched to a next page, the next page is the first page, and the backward The instruction is used to indicate that the currently displayed page is switched to the previous page, and the previous page is the first page.
- the cache resource of the first page includes: a focus position of the first page and size information of the first page, where reloading the first page based on the cache resource of the first page includes: following The size information and the current display frame reload the first page, wherein the current display frame is determined based on the display interface of the terminal; displaying the reloaded first page on the terminal includes: at the terminal The content corresponding to the focus position of the first page is displayed on the top.
- the cache resource of the first page includes at least one of: a page display frame of the terminal, a page content of the first page, page layout information of the first page, and the first page s frame View information, the loaded document content in the first page, and a focus position of the first page, wherein the focus position represents a page browsing position when the terminal last accessed the first page.
- the method is applied to a browser using an open source page engine.
- a page processing apparatus including: a receiving unit, configured to receive a first instruction, where the first instruction is used to indicate access to a first page, the first The page is a page that has been accessed by the terminal; the reading unit is configured to read the stored cache resource of the first page from the terminal memory; and the loading unit is configured to reload the cache resource based on the first page a first page; a display unit, configured to display the reloaded first page on the terminal.
- the device before receiving the first instruction, further includes: a first obtaining module, configured to acquire, by the server, a cache resource of the first page after receiving an access request for accessing the first page for the first time; a display module, configured to load and parse the cache resource of the first page to display the first page on the terminal, and a receiving module, configured to display the first page on the terminal After receiving the second instruction, where the second instruction is used to indicate access to the second page, and the response module is configured to save the cache resource of the first page to the terminal memory in response to the second instruction in.
- a first obtaining module configured to acquire, by the server, a cache resource of the first page after receiving an access request for accessing the first page for the first time
- a display module configured to load and parse the cache resource of the first page to display the first page on the terminal
- a receiving module configured to display the first page on the terminal
- the response module is configured to save the cache resource of the first page to the terminal memory in response to the second instruction in.
- the response module includes: a second obtaining module, configured to acquire a cache resource of the first page and a network resource address of the first page after suspending the loading task of the first page;
- a saving module is configured to save the association relationship between the cache resource of the first page and the network resource address of the first page in the memory of the terminal.
- the first instruction includes a forward instruction or a backward instruction, where the forward instruction is used to indicate that the currently displayed page is switched to a next page, the next page is the first page, and the backward The instruction is used to indicate that the currently displayed page is switched to the previous page, and the previous page is the first page.
- the cache resource of the first page includes: a focus position of the first page and size information of the first page, where the loading unit includes: reloading the first according to the size information and the current display frame a page, wherein the current display frame is determined based on a display interface of the terminal; the display unit includes: displaying content corresponding to a focus position of the first page on the terminal.
- the cache resource of the first page includes at least one of: a page display frame of the terminal, a page content of the first page, page layout information of the first page, and the first page Frame view information, the loaded document content in the first page, and a focus position of the first page, wherein the focus position represents page browsing when the terminal last accessed the first page position.
- the device is applied to a browser using an open source page engine.
- the terminal receives the first instruction, and re-accesses the first page that the terminal has visited, under the instruction of the first instruction, where the terminal accesses the first page for the first time, and is in the first
- the cache resource of the first page is stored in the terminal memory, so that when the terminal accesses the first page again, the cache resource of the first page can be directly read from the terminal memory, and Reloading the first page according to the read cache resource of the first page, and displaying the reloaded first page on the terminal, where the terminal can receive an instruction for instructing the terminal to access the accessed page again.
- FIG. 1 is a flowchart of a page processing method according to an embodiment of the present invention.
- FIG. 2 is a flowchart of an optional page resource storage method according to an embodiment of the present invention.
- FIG. 3 is a flowchart of an optional page resource reading method according to an embodiment of the present invention.
- FIG. 4 is a flowchart of an optional page processing method according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a page processing apparatus according to an embodiment of the present invention.
- an embodiment of a page processing method is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and, although The logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in a different order than the ones described herein.
- FIG. 1 is a flowchart of a page processing method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
- Step S102 receiving a first instruction, where the first instruction is used to indicate access to the first page, where the first page is a page that has been accessed by the terminal;
- Step S104 reading the stored cache resource of the first page from the terminal memory
- Step S106 Reload the first page based on the cache resource of the first page
- Step S108 displaying the reloaded first page on the terminal.
- the terminal receives the first instruction, and re-accesses the first page that the terminal has visited, under the instruction of the first instruction, where the terminal jumps after the first page accessing the first page
- the cache resource of the first page is stored in the terminal memory, so that when the terminal accesses the first page again, the cache resource of the first page can be directly read from the terminal memory, and according to the read
- the cached resource of the first page is reloaded to reload the first page, and the reloaded first page is displayed on the terminal.
- the terminal does not need to Reloading the parsing webpage from the network can directly read all the caching resources of the webpage from the terminal memory, which not only saves the consumption of the traffic, but also can quickly realize the re-access of the visited page, thereby solving the problem in the page. Perform a back operation The technical problem of slow processing speed.
- the terminal memory is a storage space set in the local cache of the terminal, and the terminal may save all the resources of the accessed page in the locally cached storage space, so that the terminal can receive the access to the terminal again.
- the entire cache resource of the page corresponding to the instruction is directly read from the locally cached storage space, and the page is reloaded and displayed without re-downloading the resource of the page on the network, thereby Reduce the consumption of browsing and speed up page generation.
- the cache resource of the first page stored in the terminal memory may use a Page Cache page cache mechanism to save the cache resource of the first page in the page cache linked list.
- Page Cache also known as pcache
- Chinese name is the page cache, used to cache the logical content of the file when reading and writing files, thereby speeding up data access and saving and reading the cache resources of the first page. Faster.
- the terminal memory storing the cache resource of the first page may be a doubly linked list for storing the cache resource of the first page and the cache resource of the first page stored from the linked list.
- the terminal may be a mobile device, and the first page may be displayed on the browser of the mobile device under the control of the first instruction.
- a browser developed based on the CrossWalk kernel is installed on the terminal, and the embodiment of the present application can be applied to a scenario in which a page is displayed through a browser installed on the terminal.
- the method before receiving the first instruction, further includes: after receiving the access request for accessing the first page for the first time, acquiring the cache resource of the first page from the server; performing the cache resource of the first page Loading and parsing operations to display the first page on the terminal; after displaying the first page on the terminal, Receiving a second instruction, wherein the second instruction is used to indicate access to the second page; and in response to the second instruction, saving the cache resource of the first page to the terminal memory.
- the terminal after receiving the access request of the first page for the first time, receives the cache resource included in the first page from the server of the first page, and then analyzes and loads the received cache resource. Generating a first page corresponding to the received resource, and displaying the generated first page on the terminal, so that the user browses the first page on the terminal device; in addition, after the user displays the first page on the terminal, the user again A new instruction is issued to enable the terminal to generate another page after receiving the instruction, and the page displayed by the terminal after displaying the first page is the second page, and the instruction for generating the second page is the second instruction, wherein the terminal is responding
- the second instruction before the process of generating the second page, saves the cache resource of the original first page displayed in the terminal in the terminal memory, so that the terminal can re-receive the first instruction for generating the first page.
- the cache resource of the first page that has been received can be read from the terminal memory, and preparation work is provided for generating the first page again.
- saving the cache resource of the first page to the terminal memory includes: after suspending the loading task of the first page, acquiring the cache resource of the first page and the network resource address of the first page; The relationship between the cache resource of the first page and the network resource address of the first page is saved in the terminal memory.
- the process of saving the cache resource of the first page to the terminal memory may first suspend the uncompleted load task in the first page, and then obtain the cache resource of the first page and the network resource address of the first page. And storing the obtained association relationship between the cache resource of the first page and the network resource address of the first page in the page cache linked list, and saving the page cache linked list in the terminal memory.
- the first instruction includes a forward instruction or a backward instruction, wherein the forward instruction is used to refer to The current page is switched to the next page, and the next page is the first page.
- the back instruction is used to indicate that the currently displayed page is switched to the previous page, and the previous page is the first page.
- the first instruction for instructing to generate the first page may include a forward instruction and a backward instruction, and the terminal displays the multiple pages at a time in the indicated order under a series of instructions of the user, and in the process of displaying the page
- the terminal sorts the displayed pages in order, wherein the instruction indicating that the terminal displays the page may be the first instruction, and the first instruction may include a forward instruction and a backward instruction, and the current page is displayed at the terminal. If the forward command is received, the current page displayed by the terminal is switched to the next page in the sequence of the page according to the displayed page order, and the next page is used as the first page; the current page is displayed on the terminal. If the back instruction is received, the current page displayed by the terminal is switched to the previous page in the sequence of the pages according to the displayed page order, and the previous page is used as the first page.
- reading the cached resource of the stored first page from the terminal memory includes: reading, from the terminal memory, a cache resource of the first page corresponding to the network resource address of the first page.
- the content saved in the memory of the terminal includes a cache resource of the first page and a network resource address corresponding to the first page.
- the terminal may be first in the terminal. Identifying, in the memory, the network resource address of the first page that needs to be read, and then reading the cache resource of the first page corresponding to the network resource address of the first page that has been identified, thereby identifying the first page corresponding network in the terminal memory
- the resource address can quickly find the cache resource of the first page that needs to be read, so that the process of reading can be faster.
- the network resource address that is, the URL, the full name of the English name Uniform Rwsource Locatot, and the Chinese name is the uniform resource locator, which is a simple representation of the location and access method of the page resource.
- the cache resource is saved in a linked list of Values corresponding to the Key (key), so that the terminal can read the first page corresponding to the URL from the linked list according to the corresponding key value pair if the first page needs to be acquired. Cache resources so that the first page can be generated based on the cached resources of the read page.
- saving the cache resource of the first page to the terminal memory comprises: comparing a data capacity of the cache resource of the first page with a size of a free storage capacity of the terminal memory; if the cache resource of the first page is If the data capacity is not greater than the free storage capacity of the terminal memory, the cache resource of the first page is directly saved to the terminal memory; if the data capacity of the cache resource of the first page is greater than the free storage capacity of the terminal memory, after cleaning the terminal memory, Save the cache resources of the first page to the terminal memory.
- the terminal may first compare the data capacity of the cache resource of the first page to be saved with the free storage capacity of the terminal memory, if the first page If the data capacity of the cache resource is not greater than the free storage capacity of the terminal memory, the cache resource of the first page is directly saved in the terminal memory. If the data capacity of the cache resource of the first page is greater than the free storage capacity of the terminal memory, then After cleaning the terminal memory, save the cache resources of the first page to the terminal memory.
- the cache resource of the first page can be accurately and effectively saved to the free storage space of the terminal memory;
- the amount of free storage space in the terminal memory is insufficient to save the cache resource of the first page, that is, when the data capacity of the cache resource of the first page is greater than the free storage capacity of the terminal memory, the content in the memory of the terminal is cleared, and the idle memory in the terminal memory is saved.
- the capacity is sufficient to save the cache resource of the first page, and the cache resource of the first page is saved in the terminal memory, so that the cache resource of the first page can be accurately and effectively saved to the terminal memory.
- the capacity required for the terminal memory can be reduced, and the space utilization of the terminal memory can be improved.
- the memory of the terminal can be cleaned up and the object with the earliest storage time can be selected.
- the cache of the first saved page in the terminal memory is cached.
- the resource is deleted, so that the free storage capacity of the terminal memory is greater than the cache resource of the first page, so that the cache resource of the first page can be completely saved to the terminal memory.
- the cleaning of the terminal memory may select to clean the object longer than the predetermined duration.
- the cache of each page is saved according to the terminal memory. The time of the resource, the time to save the cache resource of each page to the current time, and compare the duration of the cache resource of each page with the preset duration in the terminal, and the cache resource of the page that exceeds the predetermined duration The deletion is performed to ensure that the storage space in the terminal memory can be effectively utilized.
- the data capacity of the cache resource of the first page and the free storage capacity of the terminal memory are further compared. If the data capacity of the cache resource of the first page is greater than the free storage capacity of the terminal memory, The process of cleaning the memory of the terminal is repeated until the data capacity of the cache resource of the first page is not greater than the free storage capacity of the terminal memory, so that the cache resource of the first page is saved in the terminal memory.
- the cache resource of the first page is saved in the terminal memory, and the cache resource of the first page may be saved in the cleaned terminal memory.
- the cache resource of the first page is saved in the terminal memory, and after the terminal memory is cleaned, the cache resources saved in the terminal memory are cleaned in the terminal memory according to the order of saving time.
- the positions are arranged in order, and the cache resources of the first page to be saved are arranged last.
- the cache resource of the first page includes: a focus position of the first page and size information of the first page, where reloading the first page based on the cache resource of the first page includes: according to the size information and the current
- the display framework reconstructs the first page, wherein the current display framework is determined based on the display interface of the terminal; displaying the reloaded first page on the terminal comprises: displaying the content corresponding to the focus position of the first page on the terminal.
- the first page may be a large page, and the first page cannot be completely displayed on the terminal at one time. Therefore, the terminal can only display part of the content in the first page at a time, and part of the content of the display. That is, to display the content, by moving the first page display part by sliding the terminal to the terminal, the different parts of the first page may be displayed on the terminal, wherein the display part displays the content corresponding to the focus position of the first page. .
- the cached resource of the saved first page includes the location of the focus in the first page and the size information of the first page, where the location of the focus in the first page indicates that the terminal is in the process of accessing the first page.
- the ratio is such that the terminal reloads the first page based on the cache resource of the first page, and the display content of the first page when the terminal accesses the first page is restored, so that the first page that is redisplayed can be followed.
- the position and scale of the last visit are displayed.
- reloading the first page based on the cache resource of the first page may be re-created according to the size information of the first page saved in the cache resource and the display frame determined by the display interface in the current terminal. Loading the first page, so that the terminal can display the focus position of the first page according to the display interface of the current terminal. Corresponding content of the first page.
- the location of the focus of the first page is that the terminal switches the first time when the first page is accessed.
- the position of the first page displayed at the end of the terminal display interface in front of the page, and the position of the focus of the first page enables the terminal to display the first page when the first page is left when the first page is redisplayed.
- the content of the display so that the user of the terminal can continue to browse the content of the first page at the position where the page was previously left.
- the cache resource of the first page includes at least one of the following: a page display frame of the terminal, page content of the first page, page layout information of the first page, frame view information of the first page, The content of the document loaded in the first page, and the focus position of the first page, wherein the focus position indicates the page browsing position when the terminal last accessed the first page.
- the display content of the page when the first page is left last may be displayed on the display interface of the terminal, so that the user of the terminal can continue to browse the content before leaving the first page last time.
- the page processing method in the above embodiment may be applied to a browser using an open source page engine.
- the terminal of the Android (Android) browser based on the CrossWalk kernel may receive a first instruction for instructing access to the first page, and then read the stored first page from the terminal memory according to the first instruction.
- the cache resource enables the terminal to reload the first page based on the cache resource of the first page and display the reloaded first page on the terminal, wherein CrossWalk is an open source page engine.
- CrossWalk the Chinese name is the crosswalk engine, is an open source page engine that supports the Android (Android) mobile operating system.
- Android the Chinese name is Android
- FIG. 2 is a flowchart of an optional page resource storage method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
- Step S202 creating a PageCache doubly linked list.
- the PageCache doubly linked list is used as the terminal memory for storing the cache resource of the first page, and the unique URL of the first page is used as the key (key value) of the linked list, and the cache resource of the first page is saved in the PageCache doubly linked list, which can speed up the saving.
- the storage speed of a page's cache resources facilitates the reading of the cache resources of the first page.
- Step S204 receiving an instruction to generate a new page.
- the user using the terminal sends a second instruction for switching to the terminal, and after receiving the second instruction, the terminal converts from displaying the first page to displaying the second page.
- Step S206 suspending the loading task and other events of the current page.
- step S204 After receiving the second instruction issued by step S204, the task being loaded and other events in progress are suspended in the first page. For example, stop page loading (ie, stop the "stopAllLoaders()” command), cancel navigation (ie, cancel the "navigationScheduler().cancel()” command), suspend the file cache task (ie, suspend the Document task "tasksWereSuspended() ) "Command” and suspend the active object instruction (ie, suspend the Document active object "suspendActiveDOMObjects ()” instruction), and set the flag to add the load task and other events to the PageCache doubly linked list (set to join the PageCache flag "setInPageCache (true )"instruction).
- stop page loading ie, stop the "stopAllLoaders()" command
- cancel navigation ie, cancel the "navigationScheduler().cancel()” command
- suspend the file cache task ie, suspend the Document task "tasksWereSus
- Step S208 saving various main objects of the current page.
- the cache resource of the first page is saved. For example, saving the presentation frame of the first page for the restoration of the page element (ie, saving the "LocalFrame” object) and the page content of the first page (ie, saving the "Document” object); saving the recovery for the page view First page Page layout information (ie, saving the "LayoutView” object) and the frame view information of the first page (ie, saving the "FrameView” object); and saving the first page loaded for page loading, user operation response is loaded
- the document content ie, the "documentLoader” object is saved) and the focus position of the first page (ie, the "DomWindow” object is saved).
- Step S210 traversing all the sub-frames of the current page.
- step S206 and step S208 are repeated until all the sub-frame pages in the first page are cached until the sub-frame traversal is completed.
- Step S212 adding the saved resource of the current page into the PageCache doubly linked list by using the URL as a Key.
- the cached resource of the first page saved directly is added to the PageCache linked list; when the size of the PageCache linked list is greater than the preset value of the program, the earliest object of the linked list is called, and the memory is released.
- the PageCache linked list size is not greater than the preset value of the program, and the saved cached resources of the first page are added to the PageCache linked list.
- FIG. 3 is a flowchart of an optional page resource reading method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
- Step S302 receiving an instruction to return to the original webpage.
- the user using the terminal issues a first instruction to switch to the terminal, and the terminal receives the first instruction, and converts from displaying the second page to displaying the first page.
- the terminal in displaying the first page, the terminal first determines whether there is a cache resource of the first page in the PageCache linked list cached by the step of FIG. 2, and if so, from the PageCache list.
- the cache resource of the first page corresponding to the URL is read; if not, the first page is reloaded according to the normal loading page process.
- Step S304 reading the resources of the page from the PageCache linked list.
- the cache resource of the first page is read in the PageCache linked list, and the first page is reloaded.
- the cached resource of the read first page includes all the information of the first page, for example, reading the identifier of the loading task and other events in the first page (setting the pageCache flag “setInPageCache(false)” instruction); reading the first page The size of a page (ie, reading the "setLayoutSize(intsize)” object) and the scaling of the first page (ie, reading the "setPageScaleFactor()” object); placing the first page in the current display frame of the terminal (ie , read the "LocalFrame” object), configure the view (ie, execute the "setView (view)” instruction); read the focus position of the first page (ie, read the "DomWindow” object), and configure (ie, execute "setDOMWindow()” instruction); and restore file caching tasks (ie, resume suspending the Document task
- Step S306 traversing all the sub-frames of the current page.
- step S301 is repeated until all the sub-frame pages in the first page saved in the PageCache linked list are reloaded until the sub-frame traversal is completed.
- step S308 the page cache is restored and displayed in the browser.
- the first page that is reloaded is displayed on the browser of the terminal.
- FIG. 4 is a flowchart of an optional page processing method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
- Step S402 receiving a second instruction input by the user.
- the user issues a second instruction to convert the first page to the second page, and the terminal receives the second instruction input by the user.
- Step S404 saving the cache resource of the first page.
- the cache resource of the first page is saved, including the layout information of the file of the first page (document tree), the page content of the first page (documentLoader), and the frame of the first page.
- the main page resources such as the view information (LocalFrame) and the focus position (domWindow) of the first page are saved in the linked list corresponding to the URL.
- Step S406 receiving a first instruction input by the user.
- the user issues a first instruction to restore back to the first page from the second page, and the terminal receives the first instruction input by the user.
- Step S408 reading the cache resource of the first page.
- the terminal After the user clicks back, that is, after the user issues a first instruction to restore the first page from the second page, the terminal receives the first instruction input by the user, and queries the corresponding data from the linked list through the URL.
- step S410 the first page is displayed.
- the main resource of the cached page when the user clicks back, no longer needs to re-parse the webpage from the network, and can directly read all resources of the webpage from the cache, including the location.
- the information not only saves the traffic consumption, but also realizes the forward and backward operations quickly, and can return to the position where the user left the page before, so that the user can browse the page.
- FIG. 5 is a schematic diagram of a page processing apparatus according to an embodiment of the present invention.
- the receiving unit 51 is configured to receive a first instruction, where the first instruction is used to indicate access to the first page, the first page is a page that has been accessed by the terminal, and the reading unit 53 is configured to read from the terminal memory.
- the cached resource of the first page is stored;
- the loading unit 55 is configured to reload the first page based on the cache resource of the first page;
- the display unit 57 is configured to display the reloaded first page On the terminal.
- the terminal receives the first instruction by using the receiving unit, and re-accesses the first page that the terminal has visited, under the instruction of the first instruction, where the terminal accesses the first page after the first time, and
- the cache resource of the first page is stored in the terminal memory, so that when the terminal accesses the first page again, the terminal can be used to directly access the memory from the terminal.
- the cached resource of the first page is read, and the first page is reloaded according to the cached resource of the read first page by the loading unit, and the reloaded first page is displayed on the terminal by using the display unit, and can be received at the terminal.
- the device before receiving the first instruction, further includes: a first obtaining module, configured to acquire a cache resource of the first page from the server after receiving the access request for accessing the first page for the first time; a display module, configured to load and parse the cache resource of the first page to display the first page on the terminal, and a receiving module, configured to receive the second instruction after displaying the first page on the terminal, where The second instruction is used to indicate that the second page is accessed; and the response module is configured to save the cache resource of the first page into the terminal memory in response to the second instruction.
- a first obtaining module configured to acquire a cache resource of the first page from the server after receiving the access request for accessing the first page for the first time
- a display module configured to load and parse the cache resource of the first page to display the first page on the terminal
- a receiving module configured to receive the second instruction after displaying the first page on the terminal, where The second instruction is used to indicate that the second page is accessed
- the response module is configured to save the cache resource
- the response module includes: a second obtaining module, configured to suspend loading of the first page After the task, the cache resource of the first page and the network resource address of the first page are obtained; the first saving module is configured to save the association relationship between the cache resource of the first page and the network resource address of the first page into the memory of the terminal. in.
- the first instruction includes a forward instruction or a backward instruction, wherein the forward instruction is used to indicate that the currently displayed page is switched to the next page, the next page is the first page, and the back instruction is used to indicate Switch the currently displayed page to the previous page, and the previous page is the first page.
- the reading unit includes: a reading module, configured to read, from the terminal memory, a cache resource of the first page corresponding to the network resource address of the first page.
- the response module includes: a comparison module, configured to compare a data capacity of the cache resource of the first page with a size of a free storage capacity of the terminal memory; and a second save module, if the cache resource of the first page If the data capacity is not greater than the free storage capacity of the terminal memory, the cache resource of the first page is directly saved to the terminal memory; and the third save module, if the data capacity of the cache resource of the first page is greater than the free storage capacity of the terminal memory, After the terminal memory is cleaned, the cache resources of the first page are saved to the terminal memory.
- the cache resource of the first page includes: a focus position of the first page and size information of the first page
- the loading unit includes: a building module, configured to reload the content according to the size information and the current display frame.
- a page wherein the current display frame is determined based on the display interface of the terminal;
- the display unit includes: a display module, configured to display content corresponding to a focus position of the first page on the terminal.
- the cache resource of the first page includes at least one of the following: a page display frame of the terminal, page content of the first page, page layout information of the first page, frame view information of the first page, The content of the document loaded in the first page, and the focus position of the first page, wherein the focus position indicates the page browsing position when the terminal last accessed the first page.
- the page processing apparatus in the above embodiment may be applied to a browser using an open source page engine.
- the disclosed technical contents may be implemented in other manners.
- the device embodiments described above are only schematic.
- the division of the unit may be a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the portion contributing to or contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device All or part of the steps of the method of the various embodiments of the present invention may be performed (for a personal computer, server or network device, etc.).
- the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种页面处理方法及装置,其中,该方法包括:接收第一指令,其中,第一指令用于指示访问第一页面,第一页面为在终端已访问过的页面(S102);从终端内存中读取存储的第一页面的缓存资源(S104);基于第一页面的缓存资源重新加载第一页面(S106);将重新加载的第一页面展示在终端上(S108)。所述方法解决了在页面中执行后退操作的处理速度慢的技术问题。
Description
本发明涉及移动通信领域,具体而言,涉及一种页面处理方法及装置。
随着互联网普及率的提高,手机浏览器用户的增长,以及浏览器使用场景的增加,手机浏览器作为移动互联网的第一大入口使用频率也越来越高。然而,现有技术中,当用户在基于CrossWalk内核的浏览器中浏览页面时,若用户在当前页面执行了后退操作时,后退的页面会重新加载,也即,后退的网页的主资源需要重新解析,该种处理方式浪费了流量,也影响了浏览速度,并且每次后退重新加载的页面都会回到页面的开头,用户需要手动滑动到之前离开网页的位置,严重影响了用户体验。
针对上述在页面中执行后退操作的处理速度慢的问题,目前基于CrossWalk内核的浏览器尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种页面处理方法及装置,以至少解决在页面中执行后退操作的处理速度慢的技术问题。
根据本发明实施例的一个方面,提供了一种页面处理方法,包括:接收第一指令,其中,所述第一指令用于指示访问第一页面,所述第一页面为在终端已访问过的页面;
从终端内存中读取存储的所述第一页面的缓存资源;基于所述第一页面的缓存资源重新加载所述第一页面;将重新加载的第一页面展示在所述终端上。
进一步地,在接收第一指令之前,所述方法还包括:在接收到首次访问所述第一页面的访问请求之后,从服务器获取所述第一页面的缓存资源;对所述第一页面的缓存资源进行加载和解析操作,以将所述第一页面展示在所述终端上;在所述终端上展示所述第一页面之后,接收第二指令,其中,所述第二指令用于指示访问第二页面;响应于所述第二指令,将所述第一页面的缓存资源保存至所述终端内存中。
进一步地,将所述第一页面的缓存资源保存至所述终端内存包括:在挂起所述第一页面的加载任务之后,获取所述第一页面的缓存资源和所述第一页面的网络资源地址;将所述第一页面的缓存资源和所述第一页面的网络资源地址的关联关系,保存入所述终端的内存中。
进一步地,所述第一指令包括前进指令或后退指令,其中,所述前进指令用于指示将当前展示的页面切换为下一页面,所述下一页面为所述第一页面,所述后退指令用于指示将当前展示的页面切换为上一页面,所述上一页面为所述第一页面。
进一步地,所述第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,基于所述第一页面的缓存资源重新加载所述第一页面包括:按照所述尺寸信息和当前展示框架重新加载所述第一页面,其中,所述当前展示框架基于所述终端的展示界面而确定;将重新加载的第一页面展示在所述终端上包括:在所述终端上展示与所述第一页面的焦点位置相对应的内容。
进一步地,所述第一页面的缓存资源包括下述至少之一:所述终端的页面展示框架、所述第一页面的页面内容、所述第一页面的页面布局信息、所述第一页面的框架
视图信息、所述第一页面中已加载的文档内容、以及所述第一页面的焦点位置,其中,所述焦点位置表示通过所述终端上次访问所述第一页面时的页面浏览位置。
进一步地,所述方法应用于使用开源的页面引擎的浏览器中。
根据本发明实施例的另一方面,还提供了一种页面处理装置,包括:接收单元,用于接收第一指令,其中,所述第一指令用于指示访问第一页面,所述第一页面为在终端已访问过的页面;读取单元,用于从终端内存中读取存储的所述第一页面的缓存资源;加载单元,用于基于所述第一页面的缓存资源重新加载所述第一页面;展示单元,用于将重新加载的第一页面展示在所述终端上。
进一步地,在接收第一指令之前,所述装置还包括:第一获取模块,用于在接收到首次访问所述第一页面的访问请求之后,从服务器获取所述第一页面的缓存资源;展示模块,用于对所述第一页面的缓存资源进行加载和解析操作,以将所述第一页面展示在所述终端上;接收模块,用于在所述终端上展示所述第一页面之后,接收第二指令,其中,所述第二指令用于指示访问第二页面;响应模块,用于响应于所述第二指令,将所述第一页面的缓存资源保存至所述终端内存中。
进一步地,所述响应模块包括:第二获取模块,用于在挂起所述第一页面的加载任务之后,获取所述第一页面的缓存资源和所述第一页面的网络资源地址;第一保存模块,用于将所述第一页面的缓存资源和所述第一页面的网络资源地址的关联关系,保存入所述终端的内存中。
进一步地,所述第一指令包括前进指令或后退指令,其中,所述前进指令用于指示将当前展示的页面切换为下一页面,所述下一页面为所述第一页面,所述后退指令用于指示将当前展示的页面切换为上一页面,所述上一页面为所述第一页面。
进一步地,所述第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,所述加载单元包括:按照所述尺寸信息和当前展示框架重新加载所述第一页面,其中,所述当前展示框架基于所述终端的展示界面而确定;所述展示单元包括:在所述终端上展示与所述第一页面的焦点位置相对应的内容。
进一步地,所述第一页面的缓存资源包括下述至少之一:所述终端的页面展示框架、所述第一页面的页面内容、所述第一页面的页面布局信息、所述第一页面的框架视图信息、所述第一页面中已加载的文档内容、以及所述第一页面的焦点位置,其中,所述焦点位置表示通过所述终端上次访问所述第一页面时的页面浏览位置。
进一步地,所述装置应用于使用开源的页面引擎的浏览器中。
在本发明实施例中,终端接收第一指令,并在第一指令的指示下重新访问终端已访问过的第一页面,其中,在终端第一次访问第一页面之后、且在由该第一页面跳转至其他页面的情况下,将第一页面的缓存资源存储在终端内存中,使终端再次访问该第一页面时,可以直接从终端内存中读取第一页面的缓存资源,并根据该读取的第一页面的缓存资源重新加载第一页面,将重新加载的第一页面展示在终端上,可以在终端接收到用于指示再次终端访问已访问过的页面的指令的情况下,不需要重新从网络上加载解析网页,可以直接从终端内存中读取该网页的全部缓存资源,既节省了流量的消耗,又能快速实现对已访问过的页面的重新访问,进而解决了在页面中执行后退操作的处理速度慢的技术问题。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发
明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的一种页面处理方法的流程图;
图2是根据本发明实施例的一种可选的页面资源存储方法的流程图;
图3是根据本发明实施例的一种可选的页面资源读取方法的流程图;
图4是根据本发明实施例的一种可选的页面处理方法的流程图;
图5是根据本发明实施例的一种页面处理装置的示意图。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或
对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本发明实施例,提供了一种页面处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图1是根据本发明实施例的一种页面处理方法的流程图,如图1所示,该方法包括如下步骤:
步骤S102,接收第一指令,其中,第一指令用于指示访问第一页面,第一页面为在终端已访问过的页面;
步骤S104,从终端内存中读取存储的第一页面的缓存资源;
步骤S106,基于第一页面的缓存资源重新加载第一页面;
步骤S108,将重新加载的第一页面展示在终端上。
通过上述步骤,终端接收第一指令,并在第一指令的指示下重新访问终端已访问过的第一页面,其中,在终端第一次访问第一页面之后、且在由该第一页面跳转至其他页面的情况下,将第一页面的缓存资源存储在终端内存中,使终端再次访问该第一页面时,可以直接从终端内存中读取第一页面的缓存资源,并根据该读取的第一页面的缓存资源重新加载第一页面,将重新加载的第一页面展示在终端上,可以在终端接收到用于指示再次终端访问已访问过的页面的指令的情况下,不需要重新从网络上加载解析网页,可以直接从终端内存中读取该网页的全部缓存资源,既节省了流量的消耗,又能快速实现对已访问过的页面的重新访问,进而解决了在页面中执行后退操作
的处理速度慢的技术问题。
作为一个可选的实施例,终端内存是设置在终端本地缓存中的存储空间,终端可以在本地缓存的存储空间中保存已访问过的页面的全部资源,使终端可以在接收到再次访问终端已访问过的页面的指令的情况下,直接从本地缓存的存储空间中直接读取指令对应的页面的全部缓存资源,重新加载并展示该页面,而无需重新在网络上下载该页面的资源,从而减少浏览的消耗,加快页面生成速度。
在一个可选的实施例中,在终端内存中存储的第一页面的缓存资源可以采用Page Cache页面缓存机制,将第一页面的缓存资源保存在页面高速缓存链表中。
需要说明的是,Page Cache,又称pcache,中文名称是页面缓存,用于在读写文件时,缓存文件的逻辑内容,从而加快数据的访问,使第一页面的缓存资源的保存和读取更加快速。
可选地,存储第一页面的缓存资源的终端内存可以是双向链表,用于存储第一页面的缓存资源和从链表中读取已存储的第一页面的缓存资源。
在上述实施例中,终端可以是移动设备,在第一指令的控制下,可以在移动设备的浏览器上展示第一页面。
可选地,终端上安装有基于CrossWalk内核开发的浏览器,本申请实施例可以应用在通过终端上安装的浏览器来展示页面的场景中。
作为一个可选的实施例,在接收第一指令之前,方法还包括:在接收到首次访问第一页面的访问请求之后,从服务器获取第一页面的缓存资源;对第一页面的缓存资源进行加载和解析操作,以将第一页面展示在终端上;在终端上展示第一页面之后,
接收第二指令,其中,第二指令用于指示访问第二页面;响应于第二指令,将第一页面的缓存资源保存至终端内存。
具体地,终端在第一次接收到第一页面的访问请求之后,从该第一页面的服务器处接收展示该第一页面所包含的缓存资源,再对接收到的缓存资源进行分析和加载操作,生成接收的资源对应的第一页面,并将生成的第一页面展示在终端上,供用户在终端设备上浏览该第一页面;另外,用户在终端展示过第一页面之后,又向终端发出新的指令,使终端接收该指令后生成其他页面,则终端在展示第一页面后又展示的页面即为第二页面,生成第二页面的指令便是第二指令,其中,终端在响应第二指令,生成第二页面的过程前,还会将在终端展示的原第一页面的缓存资源保存终端内存中,从而可以使终端在重新接收到生成第一页面的第一指令的情况下,能够从终端内存中读取已经接收过的第一页面的缓存资源,为再次生成第一页面提供准备工作。
在一个可选的实施例中,将第一页面的缓存资源保存至终端内存包括:在挂起第一页面的加载任务之后,获取第一页面的缓存资源和第一页面的网络资源地址;将第一页面的缓存资源和第一页面的网络资源地址的关联关系,保存入终端内存。
具体地,将第一页面的缓存资源保存至终端内存的过程,可以先挂起在第一页面中未完成的加载任务,然后获取该第一页面的缓存资源和第一页面的网络资源地址,并将获取的第一页面的缓存资源和第一页面的网络资源地址之间的关联关系保存在页面高速缓存链表中,并将该页面高速缓存链表保存在终端内存中。通过将第一页面的缓存资源和第一页面的网络资源地址保存在页面高速缓存链表中,可以便于在接下来的操作过程中从链表中读取该第一页面的缓存资源。
一个可选的实施例,第一指令包括前进指令或后退指令,其中,前进指令用于指
示将当前展示的页面切换为下一页面,下一页面为第一页面,后退指令用于指示将当前展示的页面切换为上一页面,上一页面为第一页面。
具体地,用于指示生成第一页面的第一指令可以包括前进指令和后退指令,终端在接收到用户的一系列指示下,按照指示的顺序一次展示多个页面,并且在展示页面的过程中,终端将展示过的页面按照先后顺序将展示过的页面进行排序,其中,指示终端展示页面的指令可以是第一指令,并且第一指令可以包括前进指令和后退指令,在终端展示当前页面的情况下接收到前进指令,则按照展示过的页面先后顺序,将终端展示的当前页面切换为上述页面先后顺序中的下一页面,并将该下一页面作为第一页面;在终端展示当前页面的情况下接收到后退指令,则按照展示过的页面先后顺序,将终端展示的当前页面切换为上述页面先后顺序中的上一页面,并将该上一页面作为第一页面。
作为一个可选的实施例,从终端内存中读取存储的第一页面的缓存资源包括:从终端内存中,读取与第一页面的网络资源地址相对应的第一页面的缓存资源。
具体地,在终端内存中保存的内容包括第一页面的缓存资源和与该第一页面对应的网络资源地址,在从终端内存中读取第一页面的缓存资源的过程中,可以先在终端内存中识别需要读取的第一页面的网络资源地址,再读取已被识别出的第一页面的网络资源地址对应的第一页面的缓存资源,从而通过识别终端内存中第一页面对应网络资源地址,可以快速找出需要被读取的第一页面的缓存资源,使读取的过程可以更加快速。
需要说明的是,网络资源地址,即URL,英文全称Uniform Rwsource Locatot,中文名称为统一资源定位符,是获得页面资源的位置和访问方法的一种简洁表示,是
互联网上标准资源的页面地址,每个页面都有一个唯一对应的URL,可以采用键值对的方式,将第一页面的唯一URL作为键值对中的Key(键),将第一页面的缓存资源保存至与Key(键)对应的Value(值)的链表内,使终端在需要获取该第一页面的情况下,可以根据相应的键值对从链表中读取URL对应的第一页面的缓存资源,从而可以根据读取的页面的缓存资源生成第一页面。
在一个可选的实施例中,将第一页面的缓存资源保存至终端内存包括:比较第一页面的缓存资源的数据容量与终端内存的空闲存储容量的大小;若第一页面的缓存资源的数据容量不大于终端内存的空闲存储容量,则将第一页面的缓存资源直接保存至终端内存;若第一页面的缓存资源的数据容量大于终端内存的空闲存储容量,则在清理终端内存之后,将第一页面的缓存资源保存至终端内存中。
具体地,终端在将第一页面的缓存资源保存至终端内存的过程中,可以先比较待保存的第一页面的缓存资源的数据容量与终端内存中的空闲存储容量的大小,若第一页面的缓存资源的数据容量不大于终端内存的空闲存储容量,则将第一页面的缓存资源直接保存至终端内存内,若第一页面的缓存资源的数据容量大于终端内存的空闲存储容量,则在清理终端内存之后,再将第一页面的缓存资源保存至终端内存之中。
可选地,通过判断第一页面的缓存资源的数据容量与终端内存中空闲存储空间的大小,可以保证第一页面的缓存资源能够准确、有效地保存至终端内存的空闲存储空间中;另外在终端内存中空闲存储空间不足保存第一页面的缓存资源,即第一页面的缓存资源的数据容量大于终端内存的空闲存储容量的情况下,清理终端内存中的内容,使终端内存中的空闲存储容量足够保存第一页面的缓存资源,再将第一页面的缓存资源保存至终端内存内,保证第一页面的缓存资源能够准确、有效地保存至终端内存的
空闲存储空间中,并且通过清理终端内存,可以减少终端内存所需的容量,提高终端内存的空间利用率。
可选的实施例,清理终端内存可以选择清理存储时间最早的对象,在第一页面的缓存资源的数据容量大于终端内存的空闲存储容量的情况下,将终端内存内最先保存的页面的缓存资源删除,使终端内存的空闲存储容量大于第一页面的缓存资源,从而能够将第一页面的缓存资源完整地保存至终端内存。
作为一个可选的实施例,清理终端内存可以选择清理超过预定时长的对象,在第一页面的缓存资源的数据容量大于终端内存的空闲存储容量的情况下,根据终端内存内保存各个页面的缓存资源的时间,确定保存各个页面的缓存资源的时间到当前时间的时长,再将各个页面的缓存资源的时长与终端内预设的时长作对比,将超过预定时长所多赢的页面的缓存资源进行删除,从而可以保证终端内存内的存储空间可以被有效利用。
可选地,在清理终端内存后还需要再次比较第一页面的缓存资源的数据容量与终端内存的空闲存储容量的大小,若第一页面的缓存资源的数据容量大于终端内存的空闲存储容量,还需要重复清理终端内存的过程,直至出现第一页面的缓存资源的数据容量不大于终端内存的空闲存储容量情况,从而将第一页面的缓存资源保存至终端内存内。
一个可选的实施例,在终端内存内保存第一页面的缓存资源,可以将第一页面的缓存资源保存在清理后的终端内存的位置。
另一个可选的实施例,在终端内存内保存第一页面的缓存资源,可以在清理终端内存后,将终端内存内保存的缓存资源按照保存时间的先后顺序在终端内存清理后的
位置依次排列,并将需要保存的第一页面的缓存资源排列在最后。
一个可选的实施例,第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,基于第一页面的缓存资源重新加载第一页面包括:按照尺寸信息和当前展示框架重构第一页面,其中,当前展示框架基于终端的展示界面而确定;将重新加载的第一页面展示在终端上包括:在终端上展示与第一页面的焦点位置相对应的内容。
可选地,第一页面可以是一个大篇幅的页面,无法一次性地终端上完整地显示该第一页面,因此,终端每次只能展示第一页面中的部分内容,该展示的部分内容即为展示内容,通过向终端发出滑动等移动第一页面展示部分的操作,可以将第一页面的不同部分展示在终端上,其中,展示部分展示的是第一页面的焦点位置相对应的内容。
具体地,保存的第一页面的缓存资源包括第一页面中焦点的位置和第一页面的尺寸信息,其中,第一页面中焦点的位置表示终端在上一次访问该第一页面的过程中,根据终端使用者的浏览需要在终端设备上展示的该页面的位置;第一页面中的尺寸信息表示中终端在上一次访问该第一页面的过程中,该第一页面在终端上进行展示的比例,使终端在基于第一页面的缓存资源重新加载第一页面的操作,可以还原终端在上一次访问该第一页面时该第一页面的展示内容,让重新展示的第一页面都能按照上一次访问的位置和比例展示,另外,基于第一页面的缓存资源重新加载第一页面可以根据缓存资源中保存的第一页面的尺寸信息以及由当前终端内的展示界面确定的展示框架,重新加载第一页面,使终端能够根据当前终端的展示界面展示与第一页面的焦点位置相对应的第一页面的内容。
可选地,第一页面的焦点的位置是终端在上一次访问第一页面的情况下,切换第
一页面前在终端展示界面最后展示的第一页面的位置,通过第一页面的焦点的位置,可以使终端在重新展示第一页面的情况下,能够展示上一次离开的第一页面时终端所展示的内容,从而是终端的使用者可以在之前离开页面的位置继续浏览第一页面的内容。
作为一个可选的实施例,第一页面的缓存资源包括下述至少之一:终端的页面展示框架、第一页面的页面内容、第一页面的页面布局信息、第一页面的框架视图信息、第一页面中已加载的文档内容、以及第一页面的焦点位置,其中,焦点位置表示通过终端上次访问第一页面时的页面浏览位置。通过上述第一页面中的资源信息,可以在终端的展示界面展示上次离开该第一页面时页面的展示内容,让终端的使用者可以继续浏览上次离开第一页面前的内容。
可选地,上述实施例中的页面处理方法可以应用于使用开源的页面引擎的浏览器中。
作为一个可选的实施例,基于CrossWalk内核的Android(安卓)浏览器的终端可以接收用于指示访问第一页面的第一指令,再根据第一指令从终端内存中读取存储的第一页面的缓存资源,使终端可以基于第一页面的缓存资源重新加载第一页面,并将重新加载的第一页面展示在终端上,其中,CrossWalk是一种开源的页面引擎。
需要说明的是,CrossWalk,中文名称是人行横道引擎,是一种支持Android(安卓)移动操作系统的开源页面引擎,其中,Android,中文名称是安卓,是一种使用于移动设备操作系统。
图2是根据本发明实施例的一种可选的页面资源存储方法的流程图,如图2所示,该方法包括如下步骤:
步骤S202,创建PageCache双向链表。
采用PageCache双向链表作为存储第一页面的缓存资源的终端内存,使用第一页面的唯一URL作为链表的Key(键值),将第一页面的缓存资源保存在PageCache双向链表中,可以加快保存第一页面的缓存资源的存储速度,便于第一页面的缓存资源的读取。
步骤S204,接收生成新页面的指令。
使用终端的用户向终端发出切换的第二指令,终端接收该第二指令后,由展示第一页面转换为展示第二页面。
步骤S206,挂起当前页面的加载任务和其它事件。
在接收到由步骤S204发出的第二指令后,挂起第一页面中正在加载任务和正在进行的其他事件。例如,停止页面加载(即,停止“stopAllLoaders()”指令),取消导航(即,取消“navigationScheduler().cancel()”指令),挂起文件缓存任务(即,挂起Document任务“tasksWereSuspended()”指令)和挂起活跃对象指令(即,挂起Document活跃对象“suspendActiveDOMObjects()”指令),以及设置将加载任务和其他事件加入到PageCache双向链表的标志(设置加入PageCache标志“setInPageCache(true)”指令)。
步骤S208,保存当前页面的各种主要对象。
在挂起当前页面的加载任务和其它事件后,保存第一页面的缓存资源。例如,保存用于页面元素的恢复的第一页面的展示框架(即,保存“LocalFrame”对象)和第一页面的页面内容(即,保存“Document”对象);保存用于页面视图的恢复的第一页面
的页面布局信息(即,保存“LayoutView”对象)和第一页面的框架视图信息(即,保存“FrameView”对象);以及保存用于页面加载、用户操作响应的恢复的第一页面中已加载的文档内容(即,保存“documentLoader”对象)和第一页面的焦点位置(即,保存“DomWindow”对象)。
步骤S210,遍历当前页面的所有子框。
遍历第一页面的所有子框,重复进行步骤S206和步骤S208,直到子框遍历完毕为止,用以缓存第一页面内的所有子框页面。
步骤S212,将保存的当前页面的资源以URL为Key添加进PageCache双向链表中。
当PageCache链表大小不大于程序预设值时,直接保存的第一页面的缓存资源添加到PageCache链表中;当PageCache链表大小大于程序预设值时,调用清理链表的最早一个对象,并释放内存,使得PageCache链表大小不大于程序预设值,再将保存的第一页面的缓存资源添加到PageCache链表中。
图3是根据本发明实施例的一种可选的页面资源读取方法的流程图,如图3所示,该方法包括如下步骤:
步骤S302,接收返回原网页的指令。
使用终端的用户向终端发出切换的第一指令,终端接收该第一指令,由展示第二页面转换为展示第一页面。
需要说明的是,终端在展示第一页面的过中,先判断通过图2步骤缓存的PageCache链表中是否存在第一页面的缓存资源,若存在,则从PageCache链表中
读取URL对应的第一页面的缓存资源;若不存在,则按正常加载页面流程重新加载第一页面。
步骤S304,从PageCache链表中读取页面的资源。
在接收到步骤S301发出的第一指令后,在PageCache链表中读取第一页面的缓存资源,重新加载第一页面。读取的第一页面的缓存资源包括第一页面的全部信息,例如,读取第一页面中加载任务和其他事件的标识(设置读取PageCache标志“setInPageCache(false)”指令);读取第一页面的大小(即,读取“setLayoutSize(intsize)”对象)和第一页面的缩放比例(即,读取“setPageScaleFactor()”对象);将第一页面在终端的当前展示框架中(即,读取“LocalFrame”对象),配置视图(即,执行“setView(view)”指令);读取第一页面的焦点位置(即,读取“DomWindow”对象),并进行配置(即,执行“setDOMWindow()”指令);以及恢复文件缓存任务(即,恢复挂起Document任务“tasksWereSuspended()”指令)和恢复活跃对象指令(即,恢复挂起Document活跃对象“suspendActiveDOMObjects()”指令)。
步骤S306,遍历当前页面的所有子框。
遍历第一页面的所有子框,重复进行步骤S301,直到子框遍历完毕为止,重新加载PageCache链表中保存的第一页面内的所有子框页面。
步骤S308,页面缓存恢复完成,在浏览器中展示出来。
将重新加载的第一页面在终端的浏览器上展示。
图4是根据本发明实施例的一种可选的页面处理方法的流程图,如图2所示,该方法包括如下步骤:
步骤S402,接收用户输入的第二指令。
用户发出将第一页面转换为第二页面的第二指令,终端接收用户输入的第二指令。
步骤S404,保存第一页面的缓存资源。
用户点击第一页面的链接进入第二页面之前,保存第一页面的缓存资源,包括第一页面的文件的布局信息(document树)、第一页面的页面内容(documentLoader)、第一页面的框架视图信息(LocalFrame)、第一页面的焦点位置(domWindow)等主要页面资源,保存到URL对应的链表里。
步骤S406,接收用户输入的第一指令。
用户发出从第二页面还原回第一页面的第一指令,终端接收用户输入的第一指令。
步骤S408,读取第一页面的缓存资源。
在用户点击后退后,即用户发出从第二页面还原回第一页面的第一指令后,终端接收用户输入的第一指令,通过URL从链表里查询到对应的数据。
步骤S410,展示第一页面。
将缓存的页面资源重新加载,并展示在Crosswalk界面上。
在上述实施例中,通过实现PageCache页面缓存机制,缓存页面的主要资源,在用户点击后退的情况下,不再需要重新从网络加载解析网页,可以从缓存中直接读取网页所有资源,包括位置信息,既节省了流量消耗,又能快速实现前进后退操作,并且可以回到用户之前离开页面的位置,便于用户浏览页面。
图5是根据本发明实施例的一种页面处理装置的示意图,如图5所示,该装置包
括:接收单元51,用于接收第一指令,其中,第一指令用于指示访问第一页面,第一页面为在终端已访问过的页面;读取单元53,用于从终端内存中读取存储的所述第一页面的缓存资源;加载单元55,用于基于所述第一页面的缓存资源重新加载所述第一页面;展示单元57,用于将重新加载的第一页面展示在所述终端上。
在上述实施例中,终端通过接收单元,接收第一指令,并在第一指令的指示下重新访问终端已访问过的第一页面,其中,在终端第一次访问第一页面之后、且在由该第一页面跳转至其他页面的情况下,将第一页面的缓存资源存储在终端内存中,使终端再次访问该第一页面时,可以通过读取单元,用于直接从终端内存中读取第一页面的缓存资源,并通过加载单元,根据该读取的第一页面的缓存资源重新加载第一页面,将重新加载的第一页面通过展示单元展示在终端上,可以在终端接收到用于指示再次终端访问已访问过的页面的指令的情况下,不需要重新从网络上加载解析网页,可以直接从终端内存中读取该网页的全部缓存资源,既节省了流量的消耗,又能快速实现对已访问过的页面的重新访问,进而解决了在页面中执行后退操作的处理速度慢的技术问题。
在一个可选的实施例中,在接收第一指令之前,装置还包括:第一获取模块,用于在接收到首次访问第一页面的访问请求之后,从服务器获取第一页面的缓存资源;展示模块,用于对第一页面的缓存资源进行加载和解析操作,以将第一页面展示在终端上;接收模块,用于在终端上展示第一页面之后,接收第二指令,其中,第二指令用于指示访问第二页面;响应模块,用于响应于第二指令,将第一页面的缓存资源保存至终端内存中。
一个可选的实施例,响应模块包括:第二获取模块,用于在挂起第一页面的加载
任务之后,获取第一页面的缓存资源和第一页面的网络资源地址;第一保存模块,用于将第一页面的缓存资源和第一页面的网络资源地址的关联关系,保存入终端的内存中。
在一个可选的实施例中,第一指令包括前进指令或后退指令,其中,前进指令用于指示将当前展示的页面切换为下一页面,下一页面为第一页面,后退指令用于指示将当前展示的页面切换为上一页面,上一页面为第一页面。
作为一个可选的实施例,读取单元包括:读取模块,用于从终端内存中,读取与第一页面的网络资源地址相对应的第一页面的缓存资源。
在一个可选的实施例中,响应模块包括:比较模块,用于比较第一页面的缓存资源的数据容量与终端内存的空闲存储容量的大小;第二保存模块,若第一页面的缓存资源的数据容量不大于终端内存的空闲存储容量,则将第一页面的缓存资源直接保存至终端内存;第三保存模块,若第一页面的缓存资源的数据容量大于终端内存的空闲存储容量,则在清理终端内存之后,将第一页面的缓存资源保存至终端内存中。
一个可选的实施例,第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,加载单元包括:构建模块,用于按照尺寸信息和当前展示框架重新加载第一页面,其中,当前展示框架基于终端的展示界面而确定;展示单元包括:展示模块,用于在终端上展示与第一页面的焦点位置相对应的内容。
作为一个可选的实施例,第一页面的缓存资源包括下述至少之一:终端的页面展示框架、第一页面的页面内容、第一页面的页面布局信息、第一页面的框架视图信息、第一页面中已加载的文档内容、以及第一页面的焦点位置,其中,焦点位置表示通过终端上次访问第一页面时的页面浏览位置。
可选地,上述实施例中的页面处理装置可以应用于使用开源的页面引擎的浏览器中。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质
上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
Claims (14)
- 一种页面处理方法,其特征在于,包括:接收第一指令,其中,所述第一指令用于指示访问第一页面,所述第一页面为在终端已访问过的页面;从终端内存中读取存储的所述第一页面的缓存资源;基于所述第一页面的缓存资源重新加载所述第一页面;将重新加载的第一页面展示在所述终端上。
- 根据权利要求1所述的方法,其特征在于,在接收第一指令之前,所述方法还包括:在接收到首次访问所述第一页面的访问请求之后,从服务器获取所述第一页面的缓存资源;对所述第一页面的缓存资源进行加载和解析操作,以将所述第一页面展示在所述终端上;在所述终端上展示所述第一页面之后,接收第二指令,其中,所述第二指令用于指示访问第二页面;响应于所述第二指令,将所述第一页面的缓存资源保存至所述终端内存中。
- 根据权利要求2所述的方法,其特征在于,将所述第一页面的缓存资源保存至所述终端内存包括:在挂起所述第一页面的加载任务之后,获取所述第一页面的缓存资源和所述 第一页面的网络资源地址;将所述第一页面的缓存资源和所述第一页面的网络资源地址的关联关系,保存入所述终端的内存中。
- 根据权利要求1所述的方法,其特征在于,所述第一指令包括前进指令或后退指令,其中,所述前进指令用于指示将当前展示的页面切换为下一页面,所述下一页面为所述第一页面,所述后退指令用于指示将当前展示的页面切换为上一页面,所述上一页面为所述第一页面。
- 根据权利要求1所述的方法,其特征在于,所述第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,基于所述第一页面的缓存资源重新加载所述第一页面包括:按照所述尺寸信息和当前展示框架重新加载所述第一页面,其中,所述当前展示框架基于所述终端的展示界面而确定;将重新加载的第一页面展示在所述终端上包括:在所述终端上展示与所述第一页面的焦点位置相对应的内容。
- 根据权利要求1所述的方法,其特征在于,所述第一页面的缓存资源包括下述至少之一:所述终端的页面展示框架、所述第一页面的页面内容、所述第一页面的页面布局信息、所述第一页面的框架视图信息、所述第一页面中已加载的文档内容、以及所述第一页面的焦点位置,其中,所述焦点位置表示通过所述终端上次访问所述第一页面时的页面浏览位置。
- 根据权利要求1所述的方法,其特征在于,所述方法应用于使用开源的页面引擎的 浏览器中。
- 一种页面处理装置,其特征在于,包括:接收单元,用于接收第一指令,其中,所述第一指令用于指示访问第一页面,所述第一页面为在终端已访问过的页面;读取单元,用于从终端内存中读取存储的所述第一页面的缓存资源;加载单元,用于基于所述第一页面的缓存资源重新加载所述第一页面;展示单元,用于将重新加载的第一页面展示在所述终端上。
- 根据权利要求8所述的装置,其特征在于,在接收第一指令之前,所述装置还包括:第一获取模块,用于在接收到首次访问所述第一页面的访问请求之后,从服务器获取所述第一页面的缓存资源;展示模块,用于对所述第一页面的缓存资源进行加载和解析操作,以将所述第一页面展示在所述终端上;接收模块,用于在所述终端上展示所述第一页面之后,接收第二指令,其中,所述第二指令用于指示访问第二页面;响应模块,用于响应于所述第二指令,将所述第一页面的缓存资源保存至所述终端内存中。
- 根据权利要求9所述的装置,其特征在于,所述响应模块包括:第二获取模块,用于在挂起所述第一页面的加载任务之后,获取所述第一页 面的缓存资源和所述第一页面的网络资源地址;第一保存模块,用于将所述第一页面的缓存资源和所述第一页面的网络资源地址的关联关系,保存入所述终端的内存中。
- 根据权利要求8所述的装置,其特征在于,所述第一指令包括前进指令或后退指令,其中,所述前进指令用于指示将当前展示的页面切换为下一页面,所述下一页面为所述第一页面,所述后退指令用于指示将当前展示的页面切换为上一页面,所述上一页面为所述第一页面。
- 根据权利要求8所述的装置,其特征在于,所述第一页面的缓存资源包括:第一页面的焦点位置和第一页面的尺寸信息,其中,所述加载单元包括:按照所述尺寸信息和当前展示框架重新加载所述第一页面,其中,所述当前展示框架基于所述终端的展示界面而确定;所述展示单元包括:在所述终端上展示与所述第一页面的焦点位置相对应的内容。
- 根据权利要求8所述的装置,其特征在于,所述第一页面的缓存资源包括下述至少之一:所述终端的页面展示框架、所述第一页面的页面内容、所述第一页面的页面布局信息、所述第一页面的框架视图信息、所述第一页面中已加载的文档内容、以及所述第一页面的焦点位置,其中,所述焦点位置表示通过所述终端上次访问所述第一页面时的页面浏览位置。
- 根据权利要求8所述的装置,其特征在于,所述装置应用于使用开源的页面引擎的浏览器中。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/570,901 US10783211B2 (en) | 2017-01-16 | 2017-02-07 | Page processing method and device thereof |
| EP17844614.2A EP3373163A1 (en) | 2017-01-16 | 2017-02-07 | Method and device for page processing |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710030437.3A CN106886570B (zh) | 2017-01-16 | 2017-01-16 | 页面处理方法及装置 |
| CN201710030437.3 | 2017-01-16 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018129774A1 true WO2018129774A1 (zh) | 2018-07-19 |
Family
ID=59176302
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/073017 Ceased WO2018129774A1 (zh) | 2017-01-16 | 2017-02-07 | 页面处理方法及装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US10783211B2 (zh) |
| EP (1) | EP3373163A1 (zh) |
| CN (1) | CN106886570B (zh) |
| WO (1) | WO2018129774A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111291294A (zh) * | 2020-01-23 | 2020-06-16 | 北京无限光场科技有限公司 | 信息加载的方法及装置、终端和存储介质 |
| CN113971057A (zh) * | 2020-07-22 | 2022-01-25 | 北京奇虎科技有限公司 | 页面组件信息缓存方法、装置、设备及存储介质 |
Families Citing this family (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107682397B (zh) * | 2017-08-28 | 2019-02-26 | 平安科技(深圳)有限公司 | 客户资源获取方法、装置、终端设备及存储介质 |
| CN107844583A (zh) * | 2017-11-13 | 2018-03-27 | 深圳峰创智诚科技有限公司 | 应用程序页面返回的实现方法和装置 |
| CN108769832A (zh) * | 2018-03-16 | 2018-11-06 | 青岛海信宽带多媒体技术有限公司 | 一种网页显示方法、装置及机顶盒 |
| CN108491546A (zh) * | 2018-04-04 | 2018-09-04 | 武汉斗鱼网络科技有限公司 | 一种页面切换方法及电子设备 |
| CN108833980B (zh) * | 2018-05-24 | 2021-04-27 | 烽火通信科技股份有限公司 | 一种基于多窗口实现的iptv页面生成和重现的方法 |
| CN109240568A (zh) * | 2018-08-21 | 2019-01-18 | 杭州迪普科技股份有限公司 | 一种菜单页面的显示方法、装置及存储介质 |
| CN109960768A (zh) * | 2019-02-28 | 2019-07-02 | 北京摩拜科技有限公司 | 地图界面的显示方法、装置、终端设备及系统 |
| CN112214696B (zh) * | 2019-07-10 | 2023-10-20 | 腾讯科技(深圳)有限公司 | 一种页面展示的方法及相关装置 |
| CN110717117A (zh) * | 2019-09-06 | 2020-01-21 | 平安普惠企业管理有限公司 | tab页权限同步更新方法、装置、设备及可读存储介质 |
| CN113065080A (zh) * | 2019-12-12 | 2021-07-02 | 北京沃东天骏信息技术有限公司 | 一种页面展示的方法及装置 |
| CN111035927A (zh) * | 2019-12-12 | 2020-04-21 | 珠海海鸟科技有限公司 | 一种资源管理方法、装置及可读存储介质 |
| CN113094126A (zh) * | 2019-12-23 | 2021-07-09 | 华为技术有限公司 | 终端应用的窗体处理方法、应用服务器、终端及存储介质 |
| CN111522609A (zh) * | 2020-03-18 | 2020-08-11 | 视联动力信息技术股份有限公司 | 一种页面的显示方法及装置 |
| CN111897478A (zh) * | 2020-08-11 | 2020-11-06 | 聚好看科技股份有限公司 | 一种页面显示方法及显示设备 |
| CN112232855A (zh) * | 2020-09-25 | 2021-01-15 | 上海淇毓信息科技有限公司 | 一种页面加载方法、装置和电子设备 |
| CN113867860A (zh) * | 2021-09-22 | 2021-12-31 | 北京明略昭辉科技有限公司 | 数据渲染方法、系统、存储介质及电子设备 |
| CN113901368B (zh) * | 2021-09-30 | 2025-09-05 | 北京百度网讯科技有限公司 | 页面处理方法、装置、电子设备及计算机存储介质 |
| CN115202778A (zh) * | 2022-06-06 | 2022-10-18 | 上海万物新生环保科技集团有限公司 | 页面刷新方法、设备以及计算机可读介质 |
| CN117130699B (zh) * | 2023-04-06 | 2024-10-25 | 荣耀终端有限公司 | 一种界面显示方法及电子设备 |
| CN116841686B (zh) * | 2023-08-29 | 2024-05-31 | 荣耀终端有限公司 | 一种应用页面的展示方法 |
| CN118035581B (zh) * | 2024-02-20 | 2026-05-15 | 浪潮通用软件有限公司 | 一种ofd文件多级缓存预览方法、装置、设备及介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101170763A (zh) * | 2006-10-24 | 2008-04-30 | 张扬 | 手机浏览器用户接口的系统与装置 |
| CN102591943A (zh) * | 2011-12-27 | 2012-07-18 | 厦门雅迅网络股份有限公司 | 一种移动终端的页面数据处理方法 |
| CN103699595A (zh) * | 2013-12-11 | 2014-04-02 | 小米科技有限责任公司 | 一种终端浏览器的页面缓存方法和装置及终端 |
| CN104239302A (zh) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | 页面内容获取方法、装置及应用设备与移动终端 |
| CN104765622A (zh) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | 页面资源的加载方法及装置 |
| CN105989012A (zh) * | 2015-01-28 | 2016-10-05 | 深圳市腾讯计算机系统有限公司 | 一种页面显示方法、装置、移动终端和系统 |
Family Cites Families (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB0326915D0 (en) * | 2003-11-19 | 2003-12-24 | Ibm | A method and system for updating/reloading the content of pages browsed over a network |
| US8010624B2 (en) * | 2008-03-27 | 2011-08-30 | Amazon Technologies, Inc. | Dynamic composition for image transmission |
| CN101770511B (zh) * | 2009-12-31 | 2012-09-05 | 优视科技有限公司 | 一种用于移动通讯设备终端加快回退操作的浏览系统及其应用方法 |
| CN101788949B (zh) * | 2010-03-10 | 2015-01-28 | 中兴通讯股份有限公司 | 一种实现嵌入式系统函数监控的方法及装置 |
| JP5062315B2 (ja) * | 2010-09-09 | 2012-10-31 | ブラザー工業株式会社 | 画像処理プログラム |
| JP5278396B2 (ja) * | 2010-09-27 | 2013-09-04 | ブラザー工業株式会社 | 画像形成制御プログラム、画像形成制御方法および画像処理装置 |
| US8880652B2 (en) * | 2011-09-14 | 2014-11-04 | Hewlett-Packard Development Company, L.P. | Heuristic browser predictive pre-caching |
| CN102385613A (zh) * | 2011-09-30 | 2012-03-21 | 广州市动景计算机科技有限公司 | 一种网页页面定位方法及其系统 |
| CN103106196B (zh) * | 2011-11-09 | 2016-06-01 | 腾讯科技(深圳)有限公司 | 一种恢复浏览器网页的方法和装置 |
| US20130238725A1 (en) * | 2012-03-12 | 2013-09-12 | Unisys Corporation | Chat and notification services for a web-based conference collaboration tool |
| US20130311274A1 (en) * | 2012-05-16 | 2013-11-21 | Yahoo! Inc. | Method and system for editing a web page |
| KR20140097820A (ko) * | 2013-01-30 | 2014-08-07 | 삼성전자주식회사 | 전자장치에서 웹페이지 내의 특정 객체의 속성을 조절하기 위한 방법 및 장치 |
| US9426200B2 (en) * | 2013-03-12 | 2016-08-23 | Sap Se | Updating dynamic content in cached resources |
| CN103237035B (zh) * | 2013-04-28 | 2015-10-28 | 哈尔滨工业大学 | 可控分布式代理平台 |
| US20150074224A1 (en) * | 2013-09-10 | 2015-03-12 | Opera Software Asa | Method and apparatus for automatic reload of documents |
| US9697189B2 (en) * | 2013-11-15 | 2017-07-04 | Instart Logic, Inc. | Partial website optimization for a web publisher |
| KR102151457B1 (ko) * | 2014-08-25 | 2020-09-03 | 삼성전자 주식회사 | 통신 시스템에서 페이지 로딩 시간 단축 방법 및 장치 |
| CN106296255B (zh) * | 2015-06-11 | 2021-01-26 | 腾讯科技(深圳)有限公司 | 页面信息展示方法及装置 |
| CN106503193A (zh) * | 2016-11-02 | 2017-03-15 | 网宿科技股份有限公司 | 恢复浏览器中页面的方法及其装置 |
-
2017
- 2017-01-16 CN CN201710030437.3A patent/CN106886570B/zh not_active Expired - Fee Related
- 2017-02-07 WO PCT/CN2017/073017 patent/WO2018129774A1/zh not_active Ceased
- 2017-02-07 EP EP17844614.2A patent/EP3373163A1/en not_active Ceased
- 2017-02-07 US US15/570,901 patent/US10783211B2/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101170763A (zh) * | 2006-10-24 | 2008-04-30 | 张扬 | 手机浏览器用户接口的系统与装置 |
| CN102591943A (zh) * | 2011-12-27 | 2012-07-18 | 厦门雅迅网络股份有限公司 | 一种移动终端的页面数据处理方法 |
| CN104239302A (zh) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | 页面内容获取方法、装置及应用设备与移动终端 |
| CN103699595A (zh) * | 2013-12-11 | 2014-04-02 | 小米科技有限责任公司 | 一种终端浏览器的页面缓存方法和装置及终端 |
| CN104765622A (zh) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | 页面资源的加载方法及装置 |
| CN105989012A (zh) * | 2015-01-28 | 2016-10-05 | 深圳市腾讯计算机系统有限公司 | 一种页面显示方法、装置、移动终端和系统 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3373163A4 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111291294A (zh) * | 2020-01-23 | 2020-06-16 | 北京无限光场科技有限公司 | 信息加载的方法及装置、终端和存储介质 |
| CN113971057A (zh) * | 2020-07-22 | 2022-01-25 | 北京奇虎科技有限公司 | 页面组件信息缓存方法、装置、设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106886570A (zh) | 2017-06-23 |
| US20190050493A1 (en) | 2019-02-14 |
| CN106886570B (zh) | 2020-11-13 |
| EP3373163A4 (en) | 2018-09-12 |
| EP3373163A1 (en) | 2018-09-12 |
| US10783211B2 (en) | 2020-09-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106886570B (zh) | 页面处理方法及装置 | |
| US11328114B2 (en) | Batch-optimized render and fetch architecture | |
| US11153402B2 (en) | Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service | |
| CN105095280B (zh) | 一种浏览器缓存方法和装置 | |
| CN108255890B (zh) | 页面的处理方法和装置 | |
| CN103853417A (zh) | 网络动态图片的滚动分页显示方法和装置 | |
| JP2016517108A (ja) | ページスナップショットの作成 | |
| CN104572777A (zh) | 基于UIWebView组件的网页加载方法及装置 | |
| CN103246678A (zh) | 一种网页内容预览方法和装置 | |
| WO2018054170A1 (zh) | 浏览器资源预拉取方法、终端及存储介质 | |
| CN103856507B (zh) | 网络动态图片的静态显示方法和装置 | |
| WO2016107464A1 (zh) | 一种卡片式桌面的实现方法和装置 | |
| CN108874393A (zh) | 渲染方法、装置、存储介质和计算机设备 | |
| CN104462571A (zh) | 进行网页加载的方法、装置和浏览器客户端 | |
| CN105260424A (zh) | 用户浏览网页历史记录和最常访问的处理方法及装置 | |
| CN116806336A (zh) | 加速网页和网络应用程序的加载 | |
| US11477158B2 (en) | Method and apparatus for advertisement anti-blocking | |
| CN107391534B (zh) | 页面显示、页面文件返回方法及装置、计算机存储介质 | |
| JP6568985B2 (ja) | バッチ最適化レンダリング及びフェッチアーキテクチャ | |
| CN112910973B (zh) | 一种应用程序页面选择方法及装置 | |
| CN106603603A (zh) | 用于支持html5浏览器的多文件异步上传方法及系统 | |
| WO2025163423A1 (zh) | 页面跳转的处理、页面内容提供方法、设备及存储介质 | |
| CN110020373A (zh) | 静态页面存储、浏览的方法和装置 | |
| WO2015058614A1 (zh) | 一种书签存储方法及装置、确定待浏览书签的方法及装置 | |
| CN113934953B (zh) | 网页首屏渲染方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |