CN115470427A - Page loading method, device, equipment and storage medium - Google Patents
Page loading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115470427A CN115470427A CN202211084764.4A CN202211084764A CN115470427A CN 115470427 A CN115470427 A CN 115470427A CN 202211084764 A CN202211084764 A CN 202211084764A CN 115470427 A CN115470427 A CN 115470427A
- Authority
- CN
- China
- Prior art keywords
- loading
- page
- resources
- loaded
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a data processing technology and discloses a page loading method, a device, equipment and a storage medium, wherein the page loading method determines resources to be loaded according to a first loading request when the first loading request of a target page is received, and acquires hardware configuration parameters and an operating state of terminal equipment; determining a loading strategy of the resource to be loaded according to the hardware configuration parameters and the running state, and loading the resource to be loaded according to the loading strategy; acquiring historical habit data of a user in the loading process of resources to be loaded; determining an associated page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment; when a second loading request for loading the associated page is received, the associated page resource is called from the preset cache region according to the second loading request, and the associated page resource is loaded on the associated page.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a page loading method, apparatus, device, and storage medium.
Background
With the continuous development of terminal technology, the terminal can provide more and more functions for the user, the user can also enjoy various services provided by a third party by installing different APPs (applications) on the terminal, and due to the wide use of internet technology, especially mobile internet technology, the terminal can obtain different resources, such as text information, picture information, audio information and the like, from a third party server or other terminals through a network without being limited by time and place.
When a user needs to browse a page, a trigger operation can be executed on a refresh function key or a transfer function key in the page, so that the terminal refreshes or reloads the page, obtains the latest page data of the page, and displays the page based on the page data.
Disclosure of Invention
The embodiments of the present application mainly aim to provide a page loading method, device, equipment and storage medium, which aim to improve page resource loading efficiency and improve page browsing experience of a user.
In a first aspect, an embodiment of the present application provides a page loading method, which is applied to a terminal device, and includes:
when a first loading request of a target page in a target application program is received, determining resources to be loaded of the target page according to the first loading request, and acquiring hardware configuration parameters and an operating state of the terminal equipment;
determining a loading strategy of resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy;
acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded;
determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment;
and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page.
In a second aspect, an embodiment of the present application further provides a page loading apparatus, including:
the request acquisition module is used for determining resources to be loaded of a target page according to a first loading request when the first loading request of the target page in a target application program is received, and acquiring hardware configuration parameters and an operating state of the terminal equipment;
the strategy determining module is used for determining a loading strategy of the resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy;
the habit data module is used for acquiring historical habit data of the user for controlling the target application program in the loading process of the resource to be loaded;
the associated resource module is used for determining an associated page associated with the target page according to the historical habit data, downloading the associated page resource of the associated page, and pre-storing the associated page resource in a preset cache region of the terminal equipment;
and the resource loading module is used for calling the associated page resource from the preset cache region according to a second loading request when the second loading request for loading the associated page is received, and loading the associated page resource on the associated page.
In a third aspect, an embodiment of the present application further provides a terminal device, where the terminal device includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for implementing connection communication between the processor and the memory, where the computer program, when executed by the processor, implements the steps of the page loading method provided in any embodiment of the present specification.
In a fourth aspect, an embodiment of the present application further provides a storage medium for a computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the page loading method provided in any embodiment of the present specification.
The embodiment of the application provides a page loading method, a page loading device, equipment and a storage medium, wherein the page loading method determines resources to be loaded of a target page according to a first loading request when the first loading request of the target page in a target application program is received, and acquires hardware configuration parameters and an operating state of terminal equipment; determining a loading strategy of resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy; acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded; determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment; and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page. According to the method and the device, the associated page resources in the corresponding associated page are downloaded in advance according to the control habit data of the user on the target application program, and the downloaded associated page resources are stored in the local terminal equipment, so that the corresponding page resources can be called locally for loading when the user touches the corresponding associated page loading request, the page resource loading efficiency is improved, and the page browsing experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a page loading method according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating steps of a page loading method according to an embodiment of the present application;
fig. 3 is a schematic block structure diagram of a page loading apparatus according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
With the continuous development of terminal technology, the terminal can provide more and more functions for the user, the user can also enjoy various services provided by a third party by installing different APPs (applications) on the terminal, and due to the wide use of internet technology, especially mobile internet technology, the terminal can obtain different resources, such as text information, picture information, audio information and the like, from a third party server or other terminals through a network without being limited by time and place.
When a user needs to browse a page, a trigger operation can be executed on a refresh function key or a transfer function key in the page, so that the terminal refreshes or reloads the page, obtains the latest page data of the page, and displays the page based on the page data.
In order to solve the above problem, embodiments of the present application provide a page loading method, an apparatus, a device, and a storage medium, where in the page loading method, when a first load request of a target page in a target application is received, a resource to be loaded of the target page is determined according to the first load request, and a hardware configuration parameter and an operating state of the terminal device are obtained; determining a loading strategy of resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy; acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded; determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment; and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page. According to the method and the device, the associated page resources in the corresponding associated page are downloaded in advance according to the control habit data of the user on the target application program, and the downloaded associated page resources are stored in the local terminal equipment, so that the corresponding page resources can be called locally for loading when the user touches the corresponding associated page loading request, the loading efficiency of the page resources is improved, and the page browsing experience of the user is improved.
The page loading method provided by the embodiment of the application is applied to terminal equipment. The terminal equipment can be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and wearable equipment.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a page loading method according to an embodiment of the present application.
As shown in fig. 1, an application program is installed in a terminal device 10, when a user starts a target application program installed in the terminal device 10 and clicks a certain page in the application program, the terminal device 10 downloads a page resource corresponding to the page from a corresponding resource server 20 according to a trigger operation of the user, and also obtains a hardware configuration parameter and an operating state of the terminal device 10, so as to know whether the terminal device 10 meets a condition required for loading the corresponding page resource according to the hardware configuration parameter and the operating state, further determine a loading policy of a resource to be loaded on the target page according to the hardware configuration parameter and the operating state, load the resource to be loaded on the target page according to the loading policy, and obtain historical habit data of the user for operating the target application program in a loading process of the resource to be loaded, thereby determine an associated page associated with the target page according to the historical habit data, download the associated page resource of the associated page to the resource server 20, and pre-store the associated page resource in a preset cache region of the terminal device 10; when a second loading request for loading the associated page is received, the associated page resources are called from the preset cache area according to the second loading request, and the associated page resources are loaded on the associated page, so that the efficiency of loading the page resources is improved, and the page browsing experience of a user is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating steps of a page loading method according to an embodiment of the present application.
As shown in fig. 2, the page loading method includes steps S1 to S5.
Step S1: when a first loading request of a target page in a target application program is received, determining resources to be loaded of the target page according to the first loading request, and acquiring hardware configuration parameters and an operating state of the terminal equipment.
Illustratively, a plurality of application programs are installed in the terminal device 10, when a user operates the terminal device 10 to start a target application program in the application programs, the target application program displays a corresponding initial interface, the user performs a preset operation in the initial interface to trigger a loading request of a target page, after receiving the loading request of the target page, the terminal device 20 determines resources to be loaded on the target page according to the loading request, and simultaneously obtains hardware configuration parameters and an operating state of the terminal device 20.
The hardware configuration parameters include, but are not limited to, CPU parameters, GPU parameters, and memory parameters, and the operating state includes, but is not limited to, occupation information of processors such as CPU and GPU, occupation information of memory, and occupation information of operating memory.
The resources to be loaded include, but are not limited to, text, still pictures, moving pictures, video, audio, and the like, and the same terminal device 10 may have different times for loading different resources to be loaded in the same network environment, for example, a terminal device with a higher hardware configuration parameter has a higher loading speed of the terminal device on the page resources than a terminal device with a lower hardware configuration parameter, or a terminal device running in an overload has a lower loading speed of the terminal device on the page resources than a terminal device running in a normal manner.
Therefore, by analyzing the hardware configuration parameters and the operating state of the terminal device, an advantageous reference can be provided for the loading speed of the resource to be loaded of the target page at the terminal device 10.
In some embodiments, the obtaining the operation state of the terminal device includes:
and when the target application program starts to run, acquiring memory occupation information, processor occupation information and transportation occupation information of the terminal equipment, and determining the running state of the terminal equipment according to the memory occupation information, the processor occupation information and the transportation occupation information.
For example, after the target application in the terminal device 10 is started, the current operating state of the terminal device 10 may be analyzed by obtaining the current occupancy information of the terminal device, the processor occupancy information, and the running occupancy information, so as to determine whether the terminal device 10 is running in an overload state, and in the overload state of the terminal device 10, the loading efficiency of the terminal device 10 on the page resource may be reduced, which affects the user experience, and therefore, the loading scheme of the page resource needs to be changed to increase the loading speed of the page resource.
Step S2: and determining a loading strategy of the resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy.
Exemplarily, a corresponding loading strategy is allocated to the resource to be loaded of the target page according to the hardware configuration parameter and the operating state of the terminal device, so that the page resource of the target page is loaded in an adaptive loading strategy, and the loading efficiency of the page resource is effectively improved.
In some embodiments, the determining, according to the hardware configuration parameter and the operating state, a loading policy of a resource to be loaded on the target page includes:
when the hardware configuration parameters and the running state meet first preset conditions, determining a loading strategy of resources to be loaded of the target page as the first loading strategy;
and when the hardware configuration parameters and the running state do not meet the first preset condition, determining the loading strategy of the resource to be loaded of the target page as the second loading strategy.
Exemplarily, an association relationship between the hardware configuration parameter and the operating state of the terminal device 10 and the loading policy is set in the terminal device 10, and after the hardware configuration parameter and the operating state of the terminal device 10 are obtained, the loading policy corresponding to the resource to be loaded of the current target page may be determined according to the association relationship.
The association relationship is set with preset conditions of a loading policy of the resource to be loaded, for example, when the hardware configuration parameter and the operating state satisfy a first preset condition, the loading policy of the resource to be loaded of the target page is determined as a first loading policy, otherwise, the loading policy of the resource to be loaded of the target page is determined as a second loading policy.
It is understood that the preset conditions may be set as required, for example, the first preset condition is that the CPU of the terminal device 10 is at least 6 cores, the operating memory is at least 6G, the storage space of the storage is at least 30G, and the occupancy rate of the CPU is less than 40% when the target application operates. Or, the first preset condition is that the CPU of the terminal device 10 is at least 6 cores, the operating memory is at least 6G, the storage space of the storage is at least 30G, the occupancy rate of the CPU is less than 40% when the target application operates, and the occupancy rate of the GPU is less than 50%.
In some embodiments, the loading the resources to be loaded of the target page according to the loading policy includes:
when the loading strategy of the resources to be loaded of the target page is determined to be the first loading strategy, loading the core resources and the non-core resources on the target page;
and loading the core resource to the target page when the loading strategy of the resource to be loaded of the target page is determined to be the second loading strategy, or loading the core resource to the target page, converting the non-core resource and loading the converted non-core resource to the target page when the loading strategy of the resource to be loaded of the target page is determined to be the second loading strategy.
For example, the resources to be loaded may be divided into resources of different queues based on the service needs, so that different loading policies are applied to the resources to be loaded in different queues based on the loading conditions, so as to improve the loading efficiency. The core resources may include page resources necessary to guarantee the core business process. The core resource may be understood as a page resource that may block a business process or a page resource that ensures that a page can be normally rendered.
The core resources may also be understood as a minimum set of resources on which the business process is guaranteed to run normally, for example, the core resources may include text and/or still pictures.
The non-core resources are page resources which do not obstruct the core business process and are used for improving the page visual experience and the business effect. Non-core resources may be understood as page resources that do not block a business process but are in the core logical link of a program. Therefore, the loading of the non-core resources can ensure better visual experience and service effect of the page. For example, the non-core resources may include moving pictures and/or video.
When the hardware configuration and the operating state of the terminal device 10 meet the preset conditions, both the core resources and the non-core resources are loaded on the target page according to the preset loading policy, so that the target page loading is realized on the premise of not influencing the page loading speed or efficiency.
When the hardware configuration and the operating state of the terminal device 10 do not meet the preset conditions, the core resources are loaded on the target page according to the preset loading policy, so that the efficient loading of the page resources is realized, and the loaded target page can realize the basic service of the page. Or the non-core resources are converted into corresponding characters and/or static pictures, and the converted non-core resources are loaded on the target page, so that the display effect of the target page is better.
And step S3: and acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded.
Illustratively, historical habit data of a user is acquired through a historical record of the user on a target application program, and interest webpages and interest contents of the user can be analyzed through analyzing the historical habit data of the user, so that a better webpage browsing service can be provided for the user during webpage browsing.
And step S4: and determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment.
Illustratively, the interested web pages of the user when the target web page browsing is carried out are screened out according to the historical habit data of the user. And then, taking the interest webpage as an associated webpage, downloading associated page resources of the associated webpage, and pre-storing the associated page resources in a preset cache region of the terminal equipment.
For example, when the user is informed of browsing a target webpage according to historical habit data of the user, the target webpage jumps to an interest webpage a, the frequency of the interest webpage B and the interest webpage C exceeds a preset frequency, the interest webpage a, the interest webpage B and the interest webpage C are taken as associated webpages of the target webpage, a page resource a corresponding to the interest webpage a, a page resource B corresponding to the interest webpage B and a page resource C corresponding to the interest webpage C are respectively downloaded, and the downloaded page resource a, the downloaded page resource B and the downloaded page resource C are respectively stored in a preset cache area.
In some embodiments, determining, according to the historical habit data, an associated page associated with the target page, downloading an associated page resource of the associated page, and pre-storing the associated page resource in a preset cache area of the terminal device, includes:
determining an associated page associated with the target page according to the historical habit data;
determining core associated page resources in associated page resources of the associated page;
and downloading the core associated page resources, and pre-storing the core associated page resources in a preset cache region of the terminal equipment.
Illustratively, when the associated page resource is downloaded, only the core page resource of the associated page is downloaded, so that the space required by resource storage can be saved.
Step S5: and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page.
Exemplarily, when a user browses a target webpage and clicks a preset interface or a preset link in the target webpage to trigger a second loading request for loading a corresponding associated page, the terminal device 10 determines the associated page to be loaded according to the second loading request triggered by the user, retrieves associated page resources from a preset cache region, and loads the associated page resources on the associated page, thereby omitting a step of retrieving the corresponding associated page resources from a server again, and realizing high efficiency of page resource loading.
For example, when receiving a loading request for loading the interest web page B, the terminal device 10 calls a page resource corresponding to the interest web page B in a preset cache region, and loads the page resource to the interest web page B.
In some embodiments, the method further comprises: after the resource to be loaded is loaded, monitoring operation information of a user on the target page, and dynamically adjusting the position of the resource to be loaded on the target page according to the operation information.
Illustratively, after the page resource loading is completed, the position of the corresponding page resource on the target page is adjusted according to the operation of the user on the target page, so that the browsing of the user is facilitated.
In some embodiments, the method further comprises: and when the loading of the associated page resources of the associated page is finished, the loaded associated page resources in the preset cache region are cleared and stored.
Illustratively, after the loading of the page resource corresponding to the associated page is completed, if a page resource clearing condition is met, the loaded associated page resource in the preset cache region is cleared, so as to facilitate timely release of the memory, where the page resource clearing condition may be that the page resource loading completion time reaches a preset time, and if the time after the page loading completion exceeds 10 minutes, the page resource clearing condition is met.
For example, the associated page is an interest page B, and after the interest page B is loaded, page resources corresponding to the interest page B in a preset cache region are removed after a preset time period, and page resources corresponding to an interest page a and an interest page C are reserved.
In some embodiments, the method further comprises: and after the target application program is closed, clearing the associated page resources storing the preset cache region.
Illustratively, after the target application program is closed, the associated page resources related to the target application program and stored in the preset cache region are cleared, so as to realize timely release of the memory of the terminal device 10.
For example, after the target application program is closed, the related page resources corresponding to the interest page a, the interest page B, and the interest page C associated with the target page are all cleaned.
Referring to fig. 3, a schematic block diagram of a page loading apparatus according to an embodiment of the present disclosure is shown.
As shown in fig. 3, a page loading apparatus 200, the page loading apparatus 200 being applicable to a terminal device 10, the page loading apparatus 200 comprising: a request obtaining module 201, a policy determining module 202, a habit data module 203, an associated resource module 204 and a resource loading module 205. The request obtaining module 201 is configured to, when a first loading request of a target page in a target application is received, determine resources to be loaded of the target page according to the first loading request, and obtain a hardware configuration parameter and an operating state of the terminal device; a policy determining module 202, configured to determine a loading policy of the resource to be loaded on the target page according to the hardware configuration parameter and the operating state, and load the resource to be loaded on the target page according to the loading policy; a habit data module 203, configured to obtain historical habit data of the user operating the target application program in the process of loading the resource to be loaded; the associated resource module 204 is configured to determine, according to the historical habit data, an associated page associated with the target page, download an associated page resource of the associated page, and pre-store the associated page resource in a preset cache region of the terminal device; the resource loading module 205 is configured to, when a second loading request for loading the associated page is received, invoke the associated page resource from the preset cache region according to the second loading request, and load the associated page resource on the associated page.
In some embodiments, the obtaining the operation state of the terminal device includes:
and when the target application program starts to run, acquiring memory occupation information, processor occupation information and transportation occupation information of the terminal equipment, and determining the running state of the terminal equipment according to the memory occupation information, the processor occupation information and the transportation occupation information.
In some embodiments, the determining, according to the hardware configuration parameter and the operating state, a loading policy of a resource to be loaded on the target page includes:
when the hardware configuration parameters and the running state meet first preset conditions, determining a loading strategy of resources to be loaded of the target page as the first loading strategy;
and when the hardware configuration parameters and the running state do not meet the first preset condition, determining the loading strategy of the resource to be loaded of the target page as the second loading strategy.
In some embodiments, the resource to be loaded includes a core resource for implementing a business function on the target page and a non-core resource for improving a visual experience of the target page, and the loading the resource to be loaded on the target page according to the loading policy includes:
when the loading strategy of the resources to be loaded of the target page is determined to be the first loading strategy, loading the core resources and the non-core resources on the target page;
and when the loading strategy of the resources to be loaded of the target page is determined to be the second loading strategy, loading the core resources to the target page, or when the loading strategy of the resources to be loaded of the target page is determined to be the second loading strategy, loading the core resources to the target page, converting the non-core resources, and loading the converted non-core resources to the target page.
In some embodiments, the page loading apparatus 200 further includes a resource adjusting module, configured to monitor operation information of the target page by the user after the resource to be loaded is loaded, and dynamically adjust a position of the resource to be loaded on the target page according to the operation information.
In some embodiments, the page loading apparatus 200 further includes a resource clearing module, configured to clear and store the associated page resource loaded in the preset cache region after the associated page resource of the associated page is loaded.
In some embodiments, the resource clearing module is further configured to clear the associated page resource storing the preset cache after the target application is closed.
Referring to fig. 4, fig. 4 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present disclosure.
As shown in fig. 4, the terminal device 10 includes a processor 101 and a memory 102, and the processor 101 and the memory 102 are connected by a bus 103, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 101 is used to provide computing and control capabilities, supporting the operation of the entire server. The Processor 101 may be a Central Processing Unit (CPU), and the Processor 101 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 102 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Those skilled in the art will appreciate that the structure shown in fig. 4 is only a block diagram of a part of the structure related to the embodiments of the present application, and does not constitute a limitation to the terminal device to which the embodiments of the present application are applied, and a specific terminal device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
The processor 101 is configured to run a computer program stored in the memory, and when executing the computer program, implement any one of the page loading methods provided in the embodiments of the present application.
In some embodiments, the processor 101 is configured to run a computer program stored in the memory and to implement the following steps when executing the computer program:
when a first loading request of a target page in a target application program is received, determining resources to be loaded of the target page according to the first loading request, and acquiring hardware configuration parameters and an operating state of the terminal equipment;
determining a loading strategy of resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy;
acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded;
determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment;
and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page.
In some embodiments, the obtaining the operation state of the terminal device includes:
when the target application program starts to run, acquiring memory occupation information, processor occupation information and transportation occupation information of the terminal equipment, and determining the running state of the terminal equipment according to the memory occupation information, the processor occupation information and the transportation occupation information.
In some embodiments, the determining the loading policy of the resource to be loaded of the target page according to the hardware configuration parameter and the operating state includes:
when the hardware configuration parameters and the running state meet first preset conditions, determining a loading strategy of resources to be loaded of the target page as the first loading strategy;
and when the hardware configuration parameters and the running state do not meet the first preset condition, determining the loading strategy of the resource to be loaded of the target page as the second loading strategy.
In some embodiments, the resource to be loaded includes a core resource for implementing a business function on the target page and a non-core resource for improving a visual experience of the target page, and the loading the resource to be loaded on the target page according to the loading policy includes:
when the loading strategy of the resources to be loaded of the target page is determined to be the first loading strategy, loading the core resources and the non-core resources on the target page;
and loading the core resource to the target page when the loading strategy of the resource to be loaded of the target page is determined to be the second loading strategy, or loading the core resource to the target page, converting the non-core resource and loading the converted non-core resource to the target page when the loading strategy of the resource to be loaded of the target page is determined to be the second loading strategy.
In some embodiments, the processor 101 is further configured to perform: after the resource to be loaded is loaded, monitoring operation information of a user on the target page, and dynamically adjusting the position of the resource to be loaded on the target page according to the operation information.
In some embodiments, the processor 101 is further configured to perform: and when the loading of the associated page resources of the associated page is finished, removing and storing the associated page resources loaded in the preset cache region.
In some embodiments, the processor 101 is further configured to perform: and after the target application program is closed, clearing the associated page resources storing the preset cache region.
It should be noted that, as can be clearly understood by those skilled in the art, for convenience and simplicity of description, in the specific working process of the terminal device described above, reference may be made to the corresponding process in the foregoing page loading method embodiment, and details are not described herein again.
Embodiments of the present application further provide a storage medium for a computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the page loading method provided in any embodiment of the present application.
The storage medium may be an internal storage unit of the terminal device in the foregoing embodiment, for example, a hard disk or a memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware embodiment, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
It should be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments. While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A page loading method is applied to terminal equipment and is characterized by comprising the following steps:
when a first loading request of a target page in a target application program is received, determining resources to be loaded of the target page according to the first loading request, and acquiring hardware configuration parameters and an operating state of the terminal equipment;
determining a loading strategy of resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy;
acquiring historical habit data of a user for controlling the target application program in the loading process of the resource to be loaded;
determining an associated page associated with the target page according to the historical habit data, downloading associated page resources of the associated page, and pre-storing the associated page resources in a preset cache region of the terminal equipment;
and when a second loading request for loading the associated page is received, calling the associated page resource from the preset cache region according to the second loading request, and loading the associated page resource on the associated page.
2. The method of claim 1, wherein the obtaining the operating status of the terminal device comprises:
and when the target application program starts to run, acquiring memory occupation information, processor occupation information and transportation occupation information of the terminal equipment, and determining the running state of the terminal equipment according to the memory occupation information, the processor occupation information and the transportation occupation information.
3. The method of claim 2, wherein the loading policy comprises a first loading policy and a second loading policy, and wherein determining the loading policy for the resource to be loaded of the target page according to the hardware configuration parameter and the operating state comprises:
when the hardware configuration parameters and the running state meet first preset conditions, determining a loading strategy of resources to be loaded of the target page as the first loading strategy;
and when the hardware configuration parameters and the running state do not meet the first preset condition, determining the loading strategy of the resource to be loaded of the target page as the second loading strategy.
4. The method of claim 3, wherein the resources to be loaded comprise core resources for the target page to implement business functions and non-core resources for improving the visual experience of the target page, and wherein loading the resources to be loaded of the target page according to the loading policy comprises:
when the loading strategy of the resources to be loaded of the target page is determined to be the first loading strategy, loading the core resources and the non-core resources on the target page;
and when the loading strategy of the resources to be loaded of the target page is determined to be the second loading strategy, loading the core resources to the target page, or when the loading strategy of the resources to be loaded of the target page is determined to be the second loading strategy, loading the core resources to the target page, converting the non-core resources, and loading the converted non-core resources to the target page.
5. The method of any one of claims 1-4, further comprising: after the resource to be loaded is loaded, monitoring operation information of a user on the target page, and dynamically adjusting the position of the resource to be loaded on the target page according to the operation information.
6. The method of any one of claims 1-4, further comprising:
and when the loading of the associated page resources of the associated page is finished, removing and storing the associated page resources loaded in the preset cache region.
7. The method of any one of claims 1-4, further comprising:
and after the target application program is closed, clearing the associated page resources storing the preset cache region.
8. A page loading apparatus, comprising:
the request acquisition module is used for determining resources to be loaded of a target page according to a first loading request when the first loading request of the target page in a target application program is received, and acquiring hardware configuration parameters and an operating state of the terminal equipment;
the strategy determining module is used for determining a loading strategy of the resources to be loaded of the target page according to the hardware configuration parameters and the running state, and loading the resources to be loaded of the target page according to the loading strategy;
the habit data module is used for acquiring historical habit data of the user for controlling the target application program in the loading process of the resource to be loaded;
the associated resource module is used for determining an associated page associated with the target page according to the historical habit data, downloading the associated page resource of the associated page, and pre-storing the associated page resource in a preset cache region of the terminal equipment;
and the resource loading module is used for calling the associated page resource from the preset cache region according to a second loading request when the second loading request for loading the associated page is received, and loading the associated page resource on the associated page.
9. A terminal device, characterized in that the terminal device comprises a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for enabling connection communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the steps of the page loading method according to any of claims 1 to 7.
10. A storage medium for computer readable storage, wherein the storage medium stores one or more programs which are executable by one or more processors to implement the steps of the page loading method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211084764.4A CN115470427A (en) | 2022-09-06 | 2022-09-06 | Page loading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211084764.4A CN115470427A (en) | 2022-09-06 | 2022-09-06 | Page loading method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115470427A true CN115470427A (en) | 2022-12-13 |
Family
ID=84369457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211084764.4A Pending CN115470427A (en) | 2022-09-06 | 2022-09-06 | Page loading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115470427A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116684407A (en) * | 2023-08-01 | 2023-09-01 | 腾讯科技(深圳)有限公司 | Resource downloading method, device, equipment and readable storage medium |
-
2022
- 2022-09-06 CN CN202211084764.4A patent/CN115470427A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116684407A (en) * | 2023-08-01 | 2023-09-01 | 腾讯科技(深圳)有限公司 | Resource downloading method, device, equipment and readable storage medium |
CN116684407B (en) * | 2023-08-01 | 2023-10-27 | 腾讯科技(深圳)有限公司 | Resource downloading method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10698559B2 (en) | Method and apparatus for displaying content on same screen, and terminal device | |
US8949739B2 (en) | Creating and maintaining images of browsed documents | |
CN106201661B (en) | Method and apparatus for elastic telescopic cluster virtual machine | |
US20170357735A1 (en) | Information presentation method, device, and system | |
CN107547629B (en) | Method and device for downloading client static resources, electronic equipment and readable medium | |
CN110012217B (en) | Method and device for determining acquisition resolution and electronic equipment | |
CN106997351B (en) | Resource cache management method, system and device | |
CN115357834A (en) | Page jump method, device, equipment and storage medium | |
CN112612982A (en) | Webpage preloading method and device and computer equipment | |
CN104104995A (en) | Image display method and device | |
CN110609718A (en) | Picture loading method and device, electronic equipment and readable storage medium | |
WO2020006859A1 (en) | Image cache cleaning method and device, terminal device and medium | |
CN115470427A (en) | Page loading method, device, equipment and storage medium | |
CN110866208B (en) | Page response type layout method, device and equipment | |
CN106649581B (en) | Webpage repairing method and client | |
CN111294377A (en) | Network request sending method of dependency relationship, terminal device and storage medium | |
CN110020290B (en) | Webpage resource caching method and device, storage medium and electronic device | |
CN115061796B (en) | Execution method and system for calling between subtasks and electronic equipment | |
CN111159596A (en) | Application resource access control method and device | |
CN110187957B (en) | Queuing method and device for downloading tasks and electronic equipment | |
CN115269063A (en) | Process creation method, system, device and medium | |
CN110704157B (en) | Application starting method, related device and medium | |
CN113961298A (en) | Page switching method, device, equipment and medium | |
CN114510667A (en) | Page caching method, page display method and device and storage medium | |
CN113849686A (en) | Video data acquisition method and device, electronic equipment and storage medium |
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 |