CN112507259A - Webpage loading method and device, electronic equipment and storage medium - Google Patents

Webpage loading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112507259A
CN112507259A CN202011480468.7A CN202011480468A CN112507259A CN 112507259 A CN112507259 A CN 112507259A CN 202011480468 A CN202011480468 A CN 202011480468A CN 112507259 A CN112507259 A CN 112507259A
Authority
CN
China
Prior art keywords
webpage
target
web page
loading
cache database
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.)
Pending
Application number
CN202011480468.7A
Other languages
Chinese (zh)
Inventor
李将
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202011480468.7A priority Critical patent/CN112507259A/en
Publication of CN112507259A publication Critical patent/CN112507259A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The disclosure provides a webpage loading method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The webpage loading method comprises the following steps: receiving request information used for creating a target page by a webpage loading process through a target process; determining webpage attribute parameters based on a target process, and detecting whether target attribute parameters matched with the webpage attribute parameters exist in a preset cache database or not; in response to detecting that the target attribute parameters exist in the cache database, acquiring corresponding webpage contents based on the webpage attribute parameters through a target process, and acquiring webpage objects stored in the cache database; and constructing a target webpage by using the webpage object according to the webpage content so as to realize the loading of the target webpage by the webpage loading process. The technical scheme of the embodiment of the disclosure can avoid the problems that the occupation of system memory is large and information disturbance is caused to users because the same webpage is opened for multiple times by multiple processes.

Description

Webpage loading method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a web page loading method, a web page loading apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of internet technology, PC (Personal Computer) end software is also changing day by day, but most notably, the installation package of PC end software is larger and larger, and is not convenient for management; therefore, the related art proposes to split a program in software into a plurality of processes, so that the functions of the processes are relatively independent, and the processes are mutually dependent during operation.
However, in the process of running multiple processes, multiple identical web pages may need to be opened, which may occupy a large amount of program running memory, so that the program running speed is reduced, and further the phenomenon of page blocking often occurs; meanwhile, multiple processes open multiple webpages, which also causes information interference to users and affects user experience. Therefore, how to avoid the problem that a plurality of processes open a plurality of same web pages has important practical significance.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the disclosure aims to provide a webpage loading method, a webpage loading device, an electronic device and a computer readable storage medium, so as to overcome the problem that the running speed of a program is low due to the fact that a plurality of processes open a plurality of identical webpages at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, a method for loading a web page is provided, which includes: the method comprises the following steps: determining a target process, and receiving request information used for creating a target webpage by a webpage loading process through the target process; acquiring a webpage attribute parameter corresponding to the target webpage in the request information based on the target process, and detecting whether a preset cache database has a target attribute parameter matched with the webpage attribute parameter; in response to detecting that the target attribute parameters exist in the cache database, acquiring, by the target process, web page content corresponding to the target web page based on the web page attribute parameters, and acquiring a web page object stored in the cache database; and constructing the target webpage according to the webpage content and the webpage object so as to realize the loading of the webpage loading process on the target webpage.
In some example embodiments of the present disclosure, based on the foregoing, the method further includes: in response to detecting that the target attribute parameter does not exist in the cache database, creating, by the target process, the target webpage based on the webpage attribute parameter to enable the webpage loading process to load the target webpage; and caching the webpage attribute parameters and the webpage objects corresponding to the target webpage into the cache database.
In some example embodiments of the present disclosure, based on the foregoing scheme, the determining the target process includes: acquiring memory occupation amounts corresponding to a plurality of processes in operation from a task manager; and taking the process with the minimum memory occupation amount in the plurality of processes as a target process.
In some example embodiments of the present disclosure, based on the foregoing solution, before determining the target process and receiving, by the target process, request information for creating the target web page by the web page loading process, the method further includes: establishing inter-process communication between the target process and the webpage loading process in a preset inter-process communication mode; the preset inter-process communication mode comprises one or more combinations of pipeline communication, first-in first-out communication, message queue communication, semaphore communication and shared memory area communication.
In some example embodiments of the present disclosure, based on the foregoing scheme, before receiving, by a target process, request information used by a web page loading process for creating a target web page, and acquiring a web page attribute parameter corresponding to the target web page in the request information, the method further includes: acquiring a preset configuration file, and determining the webpage attribute parameters and the environment parameters corresponding to the target process according to the configuration file; and initializing the webpage attribute parameters and the environment parameters to obtain the initialized target process.
In some example embodiments of the present disclosure, based on the foregoing scheme, the acquiring, by the target process, the web page attribute parameter corresponding to the target web page in the request information, and detecting whether a target attribute parameter matching the web page attribute parameter exists in a preset cache database includes: acquiring second webpage identification data corresponding to the target attribute parameters from the cache database through the target process, and determining first webpage identification data corresponding to the webpage attribute parameters; and detecting whether the second webpage identification data matched with the first webpage identification data exists in the cache database.
In some example embodiments of the present disclosure, based on the foregoing solution, the web page attribute parameter further includes resource location data, and the acquiring, by the target process, the web page content corresponding to the target web page based on the web page attribute parameter in response to detecting that the target attribute parameter exists in the cache database, and acquiring the web page object stored in the cache database includes: acquiring first webpage identification data for calling a webpage object and resource positioning data for loading webpage content through the target process; loading the webpage content of the target webpage based on the resource positioning data through the target process; and calling the webpage object corresponding to the target webpage from the cache database through the target process based on the first webpage identification data.
In some example embodiments of the present disclosure, based on the foregoing solution, in response to detecting that the target attribute parameter does not exist in the cache database, creating, by the target process, the target web page based on the web page attribute parameter to implement loading of the target web page by the web page loading process includes: acquiring first webpage identification data and resource positioning data corresponding to the webpage attribute parameters through the target process; acquiring a webpage object corresponding to the first webpage identification data from a network server through the target process based on the first webpage identification data, and acquiring webpage content corresponding to the webpage object based on the resource positioning data; and creating the target webpage based on the webpage object and the webpage content through the target process so as to realize the loading of the webpage loading process on the target webpage.
In some example embodiments of the present disclosure, based on the foregoing, the method further includes: and in response to the target process receiving request information for closing the target webpage, deleting the first webpage identification data and the webpage object in the cache database through the target process to close the target webpage.
According to a second aspect of the embodiments of the present disclosure, there is provided a web page loading apparatus, including: the target process determining module is used for determining a target process and receiving request information used for creating a target webpage by a webpage loading process through the target process; the webpage attribute parameter detection module is used for acquiring webpage attribute parameters corresponding to the target webpage in the request information based on the target process and detecting whether target attribute parameters matched with the webpage attribute parameters exist in a preset cache database or not; the webpage content and webpage object acquisition module is used for responding to the detection that the target attribute parameter exists in the cache database, acquiring webpage content corresponding to the target webpage based on the webpage attribute parameter through the target process, and acquiring a webpage object stored in the cache database; and the target webpage loading module is used for constructing the target webpage according to the webpage content and the webpage object so as to realize the loading of the webpage loading process on the target webpage.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the target web page loading module further includes a cache database caching unit, where the cache database caching unit is configured to: in response to detecting that the target attribute parameter does not exist in the cache database, creating, by the target process, the target webpage based on the webpage attribute parameter to enable the webpage loading process to load the target webpage; and caching the webpage attribute parameters and the webpage objects corresponding to the target webpage into the cache database.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the target process determining module further includes a target process determining unit, where the target process determining unit is configured to: acquiring memory occupation amounts corresponding to a plurality of processes in operation from a task manager; and taking the process with the minimum memory occupation amount in the plurality of processes as a target process.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the web page loading apparatus further includes a multi-process communication establishing unit, where the multi-process communication establishing unit is configured to: establishing inter-process communication between the target process and the webpage loading process in a preset inter-process communication mode; the preset inter-process communication mode comprises one or more combinations of pipeline communication, first-in first-out communication, message queue communication, semaphore communication and shared memory area communication.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web page loading apparatus further includes a target process initialization unit, where the target process initialization unit is configured to: acquiring a preset configuration file, and determining the webpage attribute parameters and the environment parameters corresponding to the target process according to the configuration file; and initializing the webpage attribute parameters and the environment parameters to obtain the initialized target process.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the web page attribute parameter detection module further includes a web page attribute parameter detection unit, where the web page attribute parameter detection unit is configured to: acquiring second webpage identification data corresponding to the target attribute parameters from the cache database through the target process, and determining first webpage identification data corresponding to the webpage attribute parameters; and detecting whether the second webpage identification data matched with the first webpage identification data exists in the cache database.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the module for acquiring web content and web object further includes a target web loading unit, where the target web loading unit is configured to: acquiring first webpage identification data for calling a webpage object and resource positioning data for loading webpage content through the target process; calling the webpage object corresponding to the target webpage from the cache database through the target process based on the first webpage identification data; and loading the webpage content of the target webpage based on the resource positioning data through the target process.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the target web page loading module further includes a target web page loading unit, where the target web page loading unit is configured to: acquiring first webpage identification data and resource positioning data corresponding to the webpage attribute parameters through the target process; acquiring a webpage object corresponding to the first webpage identification data from a network server through the target process based on the first webpage identification data, and acquiring webpage content corresponding to the webpage object based on the resource positioning data; and creating the target webpage based on the webpage object and the webpage content through the target process so as to realize the loading of the webpage loading process on the target webpage.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the web page loading apparatus further includes a target page closing unit, where the target page closing unit is configured to: and in response to the target process receiving request information for closing the target webpage, deleting the first webpage identification data and the webpage object in the cache database through the target process to close the target webpage.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, implement any one of the above-mentioned web page loading methods.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the web page loading method according to any one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the webpage loading method in the example embodiment of the disclosure, a target process is determined, and request information used for creating a target webpage by a webpage loading process is received by the target process; acquiring a webpage attribute parameter corresponding to a target webpage in the request information based on a target process, and detecting whether a preset cache database has a target attribute parameter matched with the webpage attribute parameter; in response to the detection that the target attribute parameters exist in the cache database, acquiring webpage content corresponding to a target webpage based on the webpage attribute parameters through a target process, and acquiring a webpage object stored in the cache database; and constructing a target webpage according to the webpage content and the webpage object so as to realize the loading of the target webpage by the webpage loading process. On one hand, by determining a target process and establishing communication between the target process and a webpage loading process, after the target process receives a request message of the webpage loading process and acquires a webpage attribute parameter corresponding to a target webpage in the request message, acquiring webpage content corresponding to the target webpage through the target process based on the webpage attribute parameter, and loading a webpage object corresponding to the target webpage from a cache database, the target webpage is loaded, the utilization rate of the target process is improved, the memory occupation of the loaded target webpage is reduced, the problem of low running efficiency of an application program is avoided, and therefore the phenomena of slow page loading and page blocking occur; on the other hand, when other processes need to load the target webpage, the webpage object corresponding to the target webpage can be loaded from the cache database through the target process, and the webpage content corresponding to the target webpage is reloaded based on the webpage attribute parameters sent by the other processes, so that the situation that a plurality of processes need to open the same target webpage for many times, the target webpage needs to be created for many times is avoided, and the resource consumption is reduced; on the other hand, when the target attribute parameters are detected to exist in the cache database, the webpage content corresponding to the target webpage is obtained through the target process based on the webpage attribute parameters, the webpage objects stored in the cache database are obtained, and a new target webpage is quickly constructed by combining the cached webpage objects and the updated webpage content, so that the loading rate and the data utilization rate of the target webpage are improved, and further the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a schematic diagram of a web page loading method, according to some embodiments of the present disclosure;
FIG. 2 schematically illustrates another web page loading method flow, in accordance with some embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow diagram for determining a target process, in accordance with some embodiments of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of target process initialization, according to some embodiments of the present disclosure;
FIG. 5 schematically illustrates a flow diagram for detecting whether first web page identification data matches second web page identification data, in accordance with some embodiments of the present disclosure;
FIG. 6 schematically illustrates a flow diagram for obtaining web page objects and web page content, according to some embodiments of the present disclosure;
FIG. 7 schematically illustrates another flow diagram for obtaining web page objects and web page content, according to some embodiments of the present disclosure;
FIG. 8 schematically illustrates a schematic diagram of a web page loading apparatus, according to some embodiments of the present disclosure;
FIG. 9 schematically illustrates a structural schematic of a computer system of an electronic device, in accordance with some embodiments of the present disclosure;
fig. 10 schematically illustrates a schematic diagram of a computer-readable storage medium, according to some embodiments of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
Furthermore, the drawings are merely schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
In this exemplary embodiment, a web page loading method is first provided, and the web page loading method may be applied to a terminal device such as a mobile phone and a computer, and may also be applied to a server. The terminal device includes a data detection unit such as a data detector, and a data buffer unit such as a buffer database.
Fig. 1 schematically illustrates a schematic diagram of a web page loading method flow, according to some embodiments of the present disclosure. Referring to fig. 1, the web page loading method may include the following steps:
step S110, determining a target process, and receiving request information of a webpage loading process for creating a target webpage through the target process;
step S120, acquiring the web page attribute parameters corresponding to the target web page in the request information based on the target process, and detecting whether target attribute parameters matched with the web page attribute parameters exist in a preset cache database;
step S130, in response to detecting that the target attribute parameter exists in the cache database, acquiring, by the target process, web page content corresponding to the target web page based on the web page attribute parameter, and acquiring a web page object stored in the cache database;
step S140, constructing the target webpage according to the webpage content and the webpage object to implement the loading of the webpage loading process on the target webpage.
According to the webpage loading method in the embodiment, on one hand, by determining the target process and establishing communication between the target process and the webpage loading process, after the target process receives the request message of the webpage loading process and acquires the webpage attribute parameters corresponding to the target webpage in the request message, the target process acquires the webpage content corresponding to the target webpage based on the webpage attribute parameters and loads the webpage object corresponding to the target webpage from the cache database, so that the target webpage is loaded, the utilization rate of the target process is improved, the memory occupation amount of the loaded target webpage is reduced, and the phenomena of slow page loading and page blockage caused by low running efficiency of an application program are avoided; on the other hand, when other processes need to load the target webpage, the webpage object corresponding to the target webpage can be loaded from the cache database through the target process, and the webpage content corresponding to the target webpage is reloaded based on the webpage attribute parameters sent by the other processes, so that the situation that a plurality of processes need to open the same target webpage for many times, the target webpage needs to be created for many times is avoided, and the resource consumption is reduced; on the other hand, when the target attribute parameters are detected to exist in the cache database, the webpage content corresponding to the target webpage is obtained through the target process based on the webpage attribute parameters, the webpage objects stored in the cache database are obtained, and a new target webpage is quickly constructed by combining the cached webpage objects and the updated webpage content, so that the loading rate of the webpage and the utilization rate of data are improved, and further the user experience is improved.
Next, taking an example that the web page loading method is applied to the terminal device, the web page loading method in this example embodiment is further described.
In step S110, a target process is determined, and request information for creating a target web page by the web page loading process is received through the target process.
In an example embodiment of the present disclosure, the target process may refer to a process with fewer functions and less memory occupied during running, for example, the target process may be a process without complex functions such as video playing and screen recording, or may be a media process for communicating with other processes, and of course, the target process may also be another process with less memory occupied, which is not particularly limited in this embodiment.
The web page loading process may refer to a process that has a need for loading a web page, and the target web page may refer to a web page that needs to be loaded by the web page loading process, which is not particularly limited in this embodiment.
Preferably, a process with the least memory occupation amount can be selected from the multiple processes as a target process through the task browser, and then communication including modes of pipelines, first-in first-out, message queues, semaphores, shared memory areas and the like can be established between the target process and other processes, so that the webpage loading process can conveniently send the webpage loading requirement to the target process.
In step S120, a web page attribute parameter corresponding to the target web page in the request information is obtained based on the target process, and it is detected whether a target attribute parameter matching the web page attribute parameter exists in a preset cache database.
In an example embodiment of the present disclosure, the web page attribute parameter may refer to an attribute parameter required for loading a web page, for example, the web page attribute parameter may be web page identification data such as WebID, or may also be resource location data such as WebURL, and of course, the web page attribute slave parameter may also be other attribute parameters for loading a web page, which is not particularly limited in this example embodiment.
The target attribute parameter may refer to an attribute parameter stored in the cache database, for example, the target attribute parameter may be a web page attribute parameter corresponding to a target web page, a web page attribute parameter corresponding to another web page, or a user attribute parameter of an open web page, which is not particularly limited in this embodiment.
Optionally, the web page loading process may package and send the web page attribute parameter of the opened target web page to the target process, the target process analyzes the web page attribute parameter sent by the web page loading process, and further queries whether a target attribute parameter corresponding to the web page attribute parameter sent by the web page loading process exists in the cache database, and if a target attribute parameter matching the web page attribute parameter exists in the cache database, the web page interface corresponding to the web page identification data may be directly called from the cache database, and further, the web page content is loaded according to the resource positioning data.
In step S130, in response to detecting that the target attribute parameter exists in the cache database, acquiring, by the target process, web page content corresponding to the target web page based on the web page attribute parameter, and acquiring a web page object stored in the cache database.
In an example embodiment of the present disclosure, the web page object may refer to a web page interface architecture, for example, the web page object may be a web page interface architecture including buttons for downloading, printing, collecting, logging in, and the like, and the web page object may also be a web page interface architecture including a display area related to author information or related search, and of course, the web page object may also be other scroll bars constituting the web page interface architecture, which is not particularly limited in this example embodiment.
The target process can directly acquire the webpage identification data from the cache database when detecting that second webpage identification data matched with the first webpage identification data sent by the webpage loading process exists in the cache database, acquire the webpage object corresponding to the target webpage according to the webpage identification data, load webpage content corresponding to the target webpage according to resource positioning data in the webpage attribute parameters sent by the webpage loading process, and further can realize loading of the target webpage according to the webpage object and the webpage content of the target webpage.
In step S140, the target webpage is constructed according to the webpage content and the webpage object, so as to implement the loading of the webpage loading process on the target webpage.
In an example embodiment of the present disclosure, the web page content may refer to specific information that is desired to be delivered to the user, for example, the web page content may be specific text content in a web page interface, such as a web page title and text information under the title, and the web page content may also be specific picture content, and of course, the web page content may also be other audio or animation content, which is not limited in this example embodiment.
Preferably, the target process can directly call the webpage identification data to obtain the webpage object of the target webpage when detecting that the webpage identification data sent by the webpage loading process exists in the cache database, and further load the webpage content corresponding to the target webpage according to the resource positioning data sent by the webpage loading process, and construct the target webpage through the webpage object and the webpage content corresponding to the target webpage; because the inter-process communication is established between the target process and the webpage loading process, after the target webpage is constructed through the target process, the webpage loading process can load the target webpage through the inter-process communication.
FIG. 2 schematically illustrates another web page loading method flow diagram, according to some embodiments of the present disclosure.
Referring to fig. 2, when it is detected that there is no target attribute parameter matching with the web page attribute parameter in the cache database, the web page loading method may include the following steps:
step S210, in response to detecting that the target attribute parameter does not exist in the cache database, creating the target webpage based on the webpage attribute parameter through the target process to realize the loading of the webpage loading process on the target webpage;
step S220, caching the web page attribute parameters and the web page object corresponding to the target web page in the cache database.
The cache database may refer to a tool for caching data, for example, the cache database may be a non-relational database, may also refer to a relational database, and may also refer to a memory database, and of course, the cache database may also refer to other tools for caching data, which is not particularly limited in this embodiment.
Preferably, when the target process detects that there is no second webpage identification data matched with the first webpage identification data sent by the webpage loading process in the cache database, at this time, the target process may obtain the webpage object corresponding to the webpage identification data from the network server according to the first webpage identification data. Furthermore, the corresponding web page content may be loaded according to the resource location data in the web page attribute parameter sent by the web page loading process, then the target web page is loaded according to the web page object and the web page content, and the web page object corresponding to the target web page and the first web page identification data are stored in a cache database, such as a memory cache database. When the target process detects that other processes need to open the target process, the target process only needs to acquire the webpage object from the cache database such as a memory and reload the target webpage according to the resource positioning data sent by other processes, more time does not need to be consumed to read the first webpage identification data and the corresponding webpage object from other databases, the target process does not need to send a data packet according to other processes to analyze corresponding webpage attribute parameters, and then the webpage object and the webpage content are called according to the webpage attribute parameters, so that the loading rate of the target webpage is improved, and meanwhile, the utilization rate of the data is also improved.
Fig. 3 schematically illustrates a flow diagram of determining a target process, according to some embodiments of the present disclosure.
Referring to fig. 3, the process of determining the target process may include the steps of:
in step S310, memory occupied amounts corresponding to the running of the processes are obtained from the task manager;
in step S320, the process with the smallest memory usage amount in the plurality of processes is taken as the target process.
The memory occupation amount may refer to the memory occupied by the computer terminal during the process running, for example, the memory occupation amount may be a percentage of the memory occupied by the PC terminal during the process running, or may also be a specific amount of the memory occupied by the PC terminal during the process running, of course, the memory occupation amount may also be other indexes for measuring the size of the memory occupied by the process running, which is not particularly limited in this embodiment.
Preferably, the memory occupation amount of each process can be obtained through the task manager, and a lightweight process with less functions and smaller memory occupation amount is selected from the multiple processes as a target process. The target process can be used for receiving data packets sent by other processes, analyzing the webpage attribute parameters in the data packets and loading the webpage according to the webpage attribute parameters, so that other processes can directly acquire webpage objects and webpage contents, memory space consumed by other processes in the running process is avoided for loading the webpage, the utilization rate of the lightweight process is improved, and the resource utilization rate of the system is further improved.
In an exemplary embodiment of the present disclosure, before determining a target process and receiving request information for creating a target web page by a web page loading process through the target process, inter-process communication between the target process and the web page loading process may be established in a preset inter-process communication manner; the preset inter-process communication mode may include any one of pipe communication, first-in first-out communication, message queue communication, semaphore communication, or shared memory area communication, and may also be a combination of various forms among pipe communication, first-in first-out communication, message queue communication, semaphore communication, and shared memory area, which is not limited in this example embodiment.
Preferably, the communication between the target process and the web page loading process can be established through one or more combinations of preset pipeline communication, first-in first-out communication, message queue communication, semaphore communication and shared memory area communication, so that the data of the web page loading process can be sent to the target process, the resources in the target process can be shared to the web page process, and the communication efficiency and the resource sharing efficiency between the target process and the web page loading process are improved.
FIG. 4 schematically illustrates a flow diagram of target process initialization, according to some embodiments of the present disclosure.
Referring to fig. 4, the process of target process initialization may include the following steps:
in step S410, a preset configuration file is obtained, and the web page attribute parameter and the environment parameter corresponding to the target process are determined according to the configuration file;
in step S420, the web page attribute parameters and the environment parameters are initialized to obtain the initialized target process.
The configuration file may refer to a file containing configuration resources for implementing web page loading, for example, the configuration file may be a configuration resource file containing web page identification data and resource positioning data, a configuration resource file corresponding to a typesetting format, or a configuration resource file corresponding to domain name resolution, and of course, the configuration file may also refer to other configuration resource files, which is not limited in this embodiment.
The environment parameter may refer to a necessary parameter for rendering a web page, for example, the environment parameter may refer to a border color parameter, a background brightness parameter, a resolution of a page, and the like, and of course, the environment parameter may also refer to other parameters for rendering a web page, which is not limited in this embodiment.
After the webpage attribute parameters and the environmental parameters of the target process are initialized, when the target process receives a request for loading the target webpage sent by the webpage loading process, the target webpage can be directly loaded according to the webpage attribute parameters contained in the request information in the webpage loading process, and the problem of incompatibility caused by loading the target webpage by different browsers can be avoided.
Fig. 5 schematically illustrates a flow diagram for detecting whether first web page identification data matches second web page identification data, in accordance with some embodiments of the present disclosure.
Referring to fig. 5, the process of detecting whether the first web page identification data matches the second web page identification data may include the steps of:
in step S510, obtaining, by the target process, second webpage identification data corresponding to the target attribute parameter from the cache database, and determining first webpage identification data corresponding to the webpage attribute parameter;
in step S520, it is detected whether the second webpage identification data matching the first webpage identification data exists in the cache database.
The first webpage identification data may refer to webpage identification data sent to the target process by the webpage loading process, and the second webpage identification data may refer to webpage identification data in the cache database.
Preferably, the web page attribute parameters sent by the web page loading process can be analyzed through the target process, whether second web page identification data matched with the first web page identification data exists in the cache database or not is detected, if the second web page identification data matched with the first web page identification data exists in the cache database, the target process can directly call the web page object corresponding to the first web page identification data from the cache database, the target process does not need to send a request message containing the first web page identification data to the web page server, and then pay by a user, and the web page server transmits the corresponding web page object to the target server, so that the problems of high delay and high cost of web page loading are greatly avoided.
FIG. 6 schematically illustrates a flow diagram for obtaining web page objects and web page content, according to some embodiments of the present disclosure. Referring to fig. 6, acquiring the web page object and the web page content may include the steps of:
in step S610, acquiring, by the target process, first webpage identification data for calling a webpage object and resource location data for loading webpage content;
in step S620, loading, by the target process, the web page content of the target web page based on the resource location data;
in step S630, the web page object corresponding to the target web page is called from the cache database by the target process based on the first web page identification data.
The resource positioning data may refer to positioning data for determining a position of a document or other data in a web page, for example, the resource positioning data may be positioning data for determining a position of a title of the web page, or may also be positioning data for determining a position of a text and a picture under the title of the web page in the web page, and of course, the resource positioning data may also be positioning data for determining a position of other content, which is not particularly limited in this embodiment.
Preferably, when the target process detects that the second webpage identification data matched with the first webpage identification data exists in the cache database, the second webpage identification data can be directly called from the cache database, the webpage object is further obtained according to the second webpage identification data, the webpage content is obtained according to the resource positioning data, therefore, the target process can load a complete target webpage according to the webpage object and the webpage content, and a further webpage loading process can obtain the target webpage through communication with the target process. The webpage loading process does not need to occupy extra memory for opening the target webpage, and loads the target webpage and shares the target webpage through the target process, so that the running efficiency of the webpage loading process is reduced, and meanwhile, the loading rate of the target webpage is greatly improved by directly calling the webpage object from the cache database; when other processes need to open the target process, the target process can share the target webpage to other processes only by refreshing the content of the target webpage according to the resource positioning data sent by other processes, so that the problem that the phenomenon that the webpage interface is blocked due to the fact that a plurality of processes open the same target webpage for many times is avoided, and further information troubles are caused to users, so that the user experience is poor is solved.
FIG. 7 schematically illustrates another flow diagram for obtaining web page objects and web page content, according to some embodiments of the present disclosure. Referring to fig. 7, acquiring the web page object and the web page content may include the steps of:
in step S710, acquiring, by the target process, first webpage identification data and resource location data corresponding to the webpage attribute parameter;
in step S720, acquiring, by the target process, a web page object corresponding to the first web page identification data from a network server based on the first web page identification data, and acquiring, based on the resource location data, web page content corresponding to the web page object;
in step S730, the target web page is created by the target process based on the web page object and the web page content, so as to implement the loading of the target web page by the web page loading process.
The network server may refer to a server that stores and allocates network shared resources, for example, the network server may be a server that shares files, a server that provides application programs, or a server that shares disk space, and of course, the network server may also be another server that stores or allocates network resources, which is not limited in this embodiment.
Preferably, after the target process parses the first webpage identification data and the resource positioning data in the webpage attribute parameters according to the webpage attribute parameters sent by the webpage loading process, the target process sends request information to the webpage server based on the first webpage identification data, the network server parses the address of the target process and the first webpage identification data, and further sends the webpage object corresponding to the first webpage identification data to the target process, and simultaneously the target process obtains the webpage content of the target webpage according to the resource positioning data, so as to load the target webpage based on the webpage object, the webpage content and the environment parameters, and cache the webpage object corresponding to the target webpage and the first webpage identification data in the cache database, when other processes need to open the target webpage, the webpage object corresponding to the target webpage can be directly obtained from the cache database, the data utilization efficiency is greatly improved, and the convenience of loading the target webpage is also improved.
In an exemplary embodiment of the present disclosure, after opening the target webpage, the target webpage may be closed according to the following steps: and in response to the target process receiving the request information for closing the target webpage, deleting the first webpage identification data and the webpage object in the cache database through the target process to close the target webpage.
Preferably, after the target process opens the target webpage, the target process can share the target webpage to the webpage loading process in a preset communication mode, when the target process detects webpage closing request information sent by the webpage loading process, and when other processes are detected and the target webpage is not loaded, the target webpage can be closed by deleting the webpage object and the webpage identification data corresponding to the target webpage, so that the program running smoothness in the webpage loading process is improved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In addition, in the present exemplary embodiment, a web page loading apparatus is also provided. Referring to fig. 8, the web page loading apparatus 800 includes: the system comprises a target process determining module 810, a web page attribute parameter detecting module 820, a web page content and web page object obtaining module 830 and a target web page loading module 840. Wherein:
a target process determining module 810, configured to determine a target process, and receive, by the target process, request information for creating a target web page by a web page loading process; a web page attribute parameter detection module 820, configured to obtain, based on the target process, a web page attribute parameter corresponding to the target web page in the request information, and detect whether a target attribute parameter matching the web page attribute parameter exists in a preset cache database; a web content and web object obtaining module 830, configured to, in response to detecting that the target attribute parameter exists in the cache database, obtain, by the target process, web content corresponding to the target web page based on the web attribute parameter, and obtain a web object stored in the cache database; a target webpage loading module 840, configured to construct the target webpage according to the webpage content and the webpage object, so as to implement the loading of the target webpage by the webpage loading process.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the target webpage loading module 840 further includes a cache database caching unit, where the cache database caching unit is configured to: in response to detecting that the target attribute parameter does not exist in the cache database, creating, by the target process, the target webpage based on the webpage attribute parameter to enable the webpage loading process to load the target webpage; and caching the webpage attribute parameters and the webpage objects corresponding to the target webpage into the cache database.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the target process determining module 810 further includes a target process determining unit, where the target process determining unit is configured to: acquiring memory occupation amounts corresponding to a plurality of processes in operation from a task manager; and taking the process with the minimum memory occupation amount in the plurality of processes as a target process.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web page loading apparatus 800 further includes a multi-process communication establishing unit, where the multi-process communication establishing unit is configured to: establishing inter-process communication between the target process and the webpage loading process in a preset inter-process communication mode; the preset inter-process communication mode comprises one or more combinations of pipeline communication, first-in first-out communication, message queue communication, semaphore communication and shared memory area communication.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web page loading apparatus 800 further includes a target process initialization unit, where the target process initialization unit is configured to: acquiring a preset configuration file, and determining the attribute parameters and the environment parameters corresponding to the target process according to the configuration file; and initializing the attribute parameters and the environment parameters to obtain the initialized target process.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web page attribute parameter detecting module 820 further includes a web page attribute parameter detecting unit, where the web page attribute parameter detecting unit is configured to: acquiring second webpage identification data corresponding to the target attribute parameters from the cache database through the target process, and determining first webpage identification data corresponding to the webpage attribute parameters; and detecting whether the second webpage identification data matched with the first webpage identification data exists in the cache database.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web content and web object obtaining module 830 further includes a web content and web object obtaining unit, where the web content and web object obtaining unit is configured to: acquiring first webpage identification data for calling a webpage object and resource positioning data for loading webpage content through the target process; loading the webpage content of the target webpage based on the resource positioning data through the target process; and calling the webpage object corresponding to the target webpage from the cache database through the target process based on the first webpage identification data.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the target web page loading module 830 further includes a target web page loading unit, where the target web page loading unit is configured to: acquiring first webpage identification data and resource positioning data corresponding to the webpage attribute parameters through the target process; acquiring a webpage object corresponding to the first webpage identification data from a network server through the target process based on the first webpage identification data, and acquiring webpage content corresponding to the webpage object based on the resource positioning data; and creating the target webpage based on the webpage object and the webpage content through the target process so as to realize the loading of the webpage loading process on the target webpage.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the web page loading apparatus 800 further includes a target page closing unit, where the target page closing unit is configured to: and in response to the target process receiving request information for closing the target webpage, deleting the first webpage identification data and the webpage object in the cache database through the target process to close the target webpage.
The specific details of each module of the web page loading apparatus have been described in detail in the corresponding web page loading method, and therefore are not described herein again.
It should be noted that although several modules or units of the web page loading apparatus are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above webpage loading method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to such an embodiment of the disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present disclosure described in the above section "exemplary method" of the present specification. For example, the processing unit 910 may execute step S110 shown in fig. 1, determine a target process, and receive, by the target process, request information for creating a target web page by a web page loading process; step S120, acquiring the web page attribute parameters corresponding to the target web page in the request information based on the target process, and detecting whether target attribute parameters matched with the web page attribute parameters exist in a preset cache database; step S130, in response to detecting that the target attribute parameter exists in the cache database, acquiring, by the target process, web page content corresponding to the target web page based on the web page attribute parameter, and acquiring a web page object stored in the cache database; step S140, constructing the target webpage with the webpage object according to the webpage content to realize the loading of the target webpage by the webpage loading process.
The storage unit 920 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)921 and/or a cache memory unit 922, and may further include a read only memory unit (ROM) 923.
Storage unit 920 may also include a program/utility 924 having a set (at least one) of program modules 925, such program modules 925 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 970 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. As shown, the network adapter 960 communicates with the other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 10, a program product 1000 for implementing the above-described web page loading method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A webpage loading method is characterized by comprising the following steps:
determining a target process, and receiving request information used for creating a target webpage by a webpage loading process through the target process;
acquiring a webpage attribute parameter corresponding to the target webpage in the request information based on the target process, and detecting whether a preset cache database has a target attribute parameter matched with the webpage attribute parameter;
in response to detecting that the target attribute parameters exist in the cache database, acquiring, by the target process, web page content corresponding to the target web page based on the web page attribute parameters, and acquiring a web page object stored in the cache database;
and constructing the target webpage according to the webpage content and the webpage object so as to realize the loading of the webpage loading process on the target webpage.
2. The web page loading method according to claim 1, further comprising:
in response to detecting that the target attribute parameter does not exist in the cache database, creating, by the target process, the target webpage based on the webpage attribute parameter to enable the webpage loading process to load the target webpage; and
and caching the webpage attribute parameters and the webpage objects corresponding to the target webpage into the cache database.
3. The method for loading a web page according to claim 1, wherein the determining a target process comprises:
acquiring memory occupation amounts corresponding to a plurality of processes in operation from a task manager;
and taking the process with the minimum memory occupation amount in the plurality of processes as a target process.
4. The web page loading method according to claim 1, before determining the target process and receiving, by the target process, request information for creating the target web page by the web page loading process, further comprising:
establishing inter-process communication between the target process and the webpage loading process in a preset inter-process communication mode; the preset inter-process communication mode comprises one or more combinations of pipeline communication, first-in first-out communication, message queue communication, semaphore communication and shared memory area communication.
5. The web page loading method according to claim 1, wherein before receiving, by a target process, request information for creating a target web page by a web page loading process and acquiring a web page attribute parameter corresponding to the target web page in the request information, the method further comprises:
acquiring a preset configuration file, and determining the webpage attribute parameters and the environment parameters corresponding to the target process according to the configuration file;
and initializing the webpage attribute parameters and the environment parameters to obtain the initialized target process.
6. The web page loading method according to claim 1, wherein the web page attribute parameter includes first web page identification data, the target attribute parameter includes second web page identification data, and the obtaining, based on the target process, the web page attribute parameter corresponding to the target web page in the request information and detecting whether a target attribute parameter matching the web page attribute parameter exists in a preset cache database includes:
acquiring second webpage identification data corresponding to the target attribute parameters from the cache database through the target process, and determining first webpage identification data corresponding to the webpage attribute parameters; and
and detecting whether the second webpage identification data matched with the first webpage identification data exists in the cache database.
7. The method for loading a web page according to claim 1, wherein the web page attribute parameters further include resource location data, and the obtaining, by the target process, the web page content corresponding to the target web page based on the web page attribute parameters and the web page object stored in the cache database in response to detecting that the target attribute parameters exist in the cache database includes:
acquiring first webpage identification data for calling a webpage object and resource positioning data for loading webpage content through the target process;
loading the webpage content of the target webpage based on the resource positioning data through the target process;
and calling the webpage object corresponding to the target webpage from the cache database through the target process based on the first webpage identification data.
8. The web page loading method according to claim 2, wherein the creating, by the target process, the target web page based on the web page attribute parameter to implement the loading of the target web page by the web page loading process in response to detecting that the target attribute parameter does not exist in the cache database comprises:
acquiring first webpage identification data and resource positioning data corresponding to the webpage attribute parameters through the target process;
acquiring a webpage object corresponding to the first webpage identification data from a network server through the target process based on the first webpage identification data, and acquiring webpage content corresponding to the webpage object based on the resource positioning data;
and creating the target webpage based on the webpage object and the webpage content through the target process so as to realize the loading of the webpage loading process on the target webpage.
9. The web page loading method according to any one of claims 1 to 6, the method further comprising:
and in response to the target process receiving request information for closing the target webpage, deleting the first webpage identification data and the webpage object in the cache database through the target process to close the target webpage.
10. A web page loading apparatus, comprising:
the target process determining module is used for determining a target process and receiving request information used for creating a target webpage by a webpage loading process through the target process;
the webpage attribute parameter detection module is used for acquiring webpage attribute parameters corresponding to the target webpage in the request information based on the target process and detecting whether target attribute parameters matched with the webpage attribute parameters exist in a preset cache database or not;
the webpage content and webpage object acquisition module is used for responding to the detection that the target attribute parameter exists in the cache database, acquiring webpage content corresponding to the target webpage based on the webpage attribute parameter through the target process, and acquiring a webpage object stored in the cache database;
and the target webpage loading module is used for constructing the target webpage according to the webpage content and the webpage object so as to realize the loading of the webpage loading process on the target webpage.
11. An electronic device, comprising:
a processor; and
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the web page loading method of any one of claims 1 to 9.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a web page loading method according to any one of claims 1 to 9.
CN202011480468.7A 2020-12-15 2020-12-15 Webpage loading method and device, electronic equipment and storage medium Pending CN112507259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011480468.7A CN112507259A (en) 2020-12-15 2020-12-15 Webpage loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011480468.7A CN112507259A (en) 2020-12-15 2020-12-15 Webpage loading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112507259A true CN112507259A (en) 2021-03-16

Family

ID=74972094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011480468.7A Pending CN112507259A (en) 2020-12-15 2020-12-15 Webpage loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112507259A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090112A (en) * 2021-10-27 2022-02-25 青岛海尔科技有限公司 Configuration file loading method and device, storage medium and electronic device
CN114374557A (en) * 2022-01-07 2022-04-19 挂号网(杭州)科技有限公司 Webpage data requesting method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917074A (en) * 2012-11-09 2013-02-06 北京奇虎科技有限公司 Server-side browser realization method and server
CN103744845A (en) * 2013-03-01 2014-04-23 王新 Method and system for WEB platform data caching
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN106936727A (en) * 2015-12-30 2017-07-07 中国移动通信集团云南有限公司 A kind of Webpage display process and device
CN107451181A (en) * 2017-06-14 2017-12-08 北京小度信息科技有限公司 Page rendering method and apparatus
CN107958076A (en) * 2017-12-11 2018-04-24 广州华多网络科技有限公司 A kind of method, apparatus, storage medium and electronic equipment for loading embedded webpage
CN108228818A (en) * 2017-12-29 2018-06-29 网易(杭州)网络有限公司 Web page resources loading method and device, electronic equipment and storage medium
CN110489683A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The caching method and device storage medium, computer equipment of webpage
CN111177601A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Page rendering processing method, device and equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917074A (en) * 2012-11-09 2013-02-06 北京奇虎科技有限公司 Server-side browser realization method and server
CN103744845A (en) * 2013-03-01 2014-04-23 王新 Method and system for WEB platform data caching
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN106936727A (en) * 2015-12-30 2017-07-07 中国移动通信集团云南有限公司 A kind of Webpage display process and device
CN107451181A (en) * 2017-06-14 2017-12-08 北京小度信息科技有限公司 Page rendering method and apparatus
CN107958076A (en) * 2017-12-11 2018-04-24 广州华多网络科技有限公司 A kind of method, apparatus, storage medium and electronic equipment for loading embedded webpage
CN108228818A (en) * 2017-12-29 2018-06-29 网易(杭州)网络有限公司 Web page resources loading method and device, electronic equipment and storage medium
CN111177601A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Page rendering processing method, device and equipment and readable storage medium
CN110489683A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The caching method and device storage medium, computer equipment of webpage

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090112A (en) * 2021-10-27 2022-02-25 青岛海尔科技有限公司 Configuration file loading method and device, storage medium and electronic device
CN114090112B (en) * 2021-10-27 2023-06-16 青岛海尔科技有限公司 Method and device for loading configuration file, storage medium and electronic device
CN114374557A (en) * 2022-01-07 2022-04-19 挂号网(杭州)科技有限公司 Webpage data requesting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
CN108804707B (en) Page processing method and device and related equipment
CN102799372B (en) A kind of method for uploading of pictorial information and upload device
US8650474B2 (en) Methods for web content optimization in single page display environments and systems thereof
CN111221521A (en) Method and device for generating log code, computer system and readable storage medium
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
CN112507259A (en) Webpage loading method and device, electronic equipment and storage medium
CN111258736A (en) Information processing method and device and electronic equipment
CN111913922B (en) Binary structured log generation method, device, equipment and storage medium
CN111125591B (en) Method, device, terminal and storage medium for counting exposure information
CN103677519A (en) Method for collecting multimedia resource, terminal and server
CN113312119B (en) Information synchronization method and device, computer readable storage medium and electronic equipment
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
EP3642727B1 (en) Resource pre-fetch using age threshold
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN111259381A (en) Page interaction method and device, computer readable medium and electronic equipment
CN114036431A (en) Page cache skipping method and device, electronic equipment and storage medium
CN113806650A (en) Webpage application processing method and device, storage medium and electronic equipment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN113282285A (en) Code compiling method and device, electronic equipment and storage medium
CN114257575B (en) Client data processing method and device, electronic equipment and storage medium
CN111767111A (en) Page data processing method and device, electronic equipment and storage medium
US20190325073A1 (en) Systems and Methods for Providing Content Items in Situations Involving Suboptimal Network Conditions
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
CN112130811A (en) Data processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination