CN110990733B - Page loading method and device, electronic equipment and medium - Google Patents

Page loading method and device, electronic equipment and medium Download PDF

Info

Publication number
CN110990733B
CN110990733B CN201911056595.1A CN201911056595A CN110990733B CN 110990733 B CN110990733 B CN 110990733B CN 201911056595 A CN201911056595 A CN 201911056595A CN 110990733 B CN110990733 B CN 110990733B
Authority
CN
China
Prior art keywords
page
page data
loading
identification information
information
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.)
Active
Application number
CN201911056595.1A
Other languages
Chinese (zh)
Other versions
CN110990733A (en
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.)
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator Co Ltd
Original Assignee
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator 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 Hefei Hualing Co Ltd, Midea Group Co Ltd, Hefei Midea Refrigerator Co Ltd filed Critical Hefei Hualing Co Ltd
Priority to CN201911056595.1A priority Critical patent/CN110990733B/en
Publication of CN110990733A publication Critical patent/CN110990733A/en
Application granted granted Critical
Publication of CN110990733B publication Critical patent/CN110990733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a page loading method and device, electronic equipment and a computer readable medium. Wherein the method comprises the following steps: responding to a multi-page application loading request, and acquiring first page data corresponding to a first page from a server, wherein the first page data comprises identification information of a second page associated with the first page; loading the first page data to display the first page; after the triggering operation for opening the second page is detected, acquiring second page data corresponding to the second page according to the identification information; and loading the second page data to display a second page, wherein the first page and the second page are both sub-pages of the multi-page application. The method can reduce the loading time, and avoid the influence on the use experience caused by long-time waiting of the user; and the transmission of useless pages can be avoided, so that the waste of network transmission resources is reduced, and the waste of server system resources is reduced.

Description

Page loading method and device, electronic equipment and medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a page loading method and apparatus, an electronic device, and a computer-readable medium.
Background
With the rapid development of computer technology and internet of things technology, smart home devices, such as smart refrigerators, smart washing machines, smart microwave ovens, smart electric cookers, smart curtains, and the like, have been widely popularized. In order to facilitate a user to manage and control the smart home devices, device manufacturers generally develop a management platform for the smart home devices, and the user can open the management platform through a mobile phone and other terminal devices to perform management operations such as parameter setting on the smart home devices.
The management platform is mostly realized by adopting multi-page application, and different pages are respectively used for setting different types of purpose parameters, attributes and other information. In practical application, when a user needs to log in a management platform, a server side can send all pages of the management platform to a terminal, and in this way, on one hand, the time for loading the pages by the terminal is too long, so that the user experience is influenced; on the other hand, the user does not need to view each page, but only a part of pages are viewed in most cases, so that the transmitted part of pages are useless pages, and waste of network transmission resources and waste of resources of a server system are caused.
Disclosure of Invention
The application aims to provide a page loading method and device, electronic equipment and a computer readable medium.
A first aspect of the present application provides a page loading method, where the method includes:
responding to a multi-page application loading request, and acquiring first page data corresponding to a first page from a server, wherein the first page data comprises identification information of a second page related to the first page;
loading the first page data to display the first page;
after detecting the trigger operation for opening the second page, acquiring second page data corresponding to the second page according to the identification information;
and loading the second page data to display a second page, wherein the first page and the second page are both sub-pages of the multi-page application.
In some embodiments of the first aspect of the present application, the first page data comprises an adaptation screen identification;
the obtaining of the first page data corresponding to the first page from the server includes:
acquiring a plurality of first page data corresponding to a first page from a server, wherein different first page data correspond to different adaptive screen identifications;
the loading the first page data to display the first page comprises:
determining a first adaptive screen identifier matched with the adaptive information according to the adaptive information of the current display screen;
and loading the first page data corresponding to the first adaptive screen identifier to display the first page.
In some embodiments of the first aspect of the present application, the obtaining, from the server, first page data corresponding to a first page includes:
sending a first page data acquisition request to a server, wherein the first page data acquisition request comprises adaptation information of a current display screen;
and receiving first page data which is sent by the server and matched with the adaptation information of the current display screen.
In some embodiments of the first aspect of the present application, the adaptation information comprises size information and/or resolution information of the current display screen.
In some embodiments of the first aspect of the present application, the first page data further comprises a trigger element of the second page;
the loading the first page data to display the first page comprises:
loading the first page data, wherein a trigger element of the second page is set to be in a display state, and identification information of the second page is set to be in a hidden state;
after the triggering operation for opening the second page is detected, acquiring second page data corresponding to the second page according to the identification information includes:
and after the trigger operation aiming at the trigger element is detected, acquiring second page data corresponding to the second page according to the identification information.
In some embodiments of the first aspect of the present application, the obtaining, according to the identification information, second page data corresponding to the second page includes:
determining whether second page data corresponding to the second page is stored locally or not according to a loading attribute corresponding to the identification information, wherein the loading attribute is used for identifying whether the second page data is loaded once and stored locally or not;
under the condition that the second page data are locally stored, the second page data are locally obtained according to the identification information;
and under the condition that the second page data is not stored locally, acquiring the second page data from the server according to the identification information.
In some embodiments of the first aspect of the present application, the obtaining, according to the identification information, second page data corresponding to the second page includes:
locally inquiring second page data corresponding to the second page;
under the condition that the second page data is inquired, acquiring the second page data from the local;
and under the condition that the second page data is not inquired, acquiring the second page data from the server according to the identification information.
In some embodiments of the first aspect of the present application, the loading the second page data to display a second page includes:
and loading the second page data by adopting a single-page mode and hiding the first page data so as to display the first page.
A second aspect of the present application provides a page loading apparatus, including:
the system comprises a first page data acquisition module, a second page data acquisition module and a first page data processing module, wherein the first page data acquisition module is used for responding to a multi-page application loading request and acquiring first page data corresponding to a first page from a server, and the first page data comprises identification information of a second page related to the first page;
the first page data loading module is used for loading the first page data to display the first page;
the second page data acquisition module is used for acquiring second page data corresponding to the second page according to the identification information after detecting the trigger operation for opening the second page;
and the second page data loading module is used for loading the second page data to display a second page, wherein the first page and the second page are both subpages of the multi-page application.
In some embodiments of the second aspect of the present application, the first page data comprises an adaptation screen identification;
the first page data obtaining module includes:
the multi-data acquisition unit is used for acquiring a plurality of first page data corresponding to a first page from the server, wherein different first page data correspond to different adaptive screen identifiers;
the first page data loading module comprises:
the adaptive screen identification determining unit is used for determining a first adaptive screen identification matched with the adaptive information according to the adaptive information of the current display screen;
and the adaptive page data loading unit is used for loading the first page data corresponding to the first adaptive screen identifier so as to display the first page.
In some embodiments of the second aspect of the present application, the first page data obtaining module comprises:
the system comprises a page data acquisition request sending unit, a page data acquisition unit and a server, wherein the page data acquisition request sending unit is used for sending a first page data acquisition request to the server, and the first page data acquisition request comprises adaptation information of a current display screen;
and the adaptive page data receiving unit is used for receiving the first page data which is sent by the server and matched with the adaptive information of the current display screen.
In some embodiments of the second aspect of the present application, the adaptation information comprises size information and/or resolution information of the current display screen.
In some embodiments of the second aspect of the present application, the first page data further comprises a trigger element of the second page;
the first page data loading module comprises:
the identification hiding unit is used for loading the first page data, setting the trigger element of the second page to be in a display state, and setting the identification information of the second page to be in a hidden state;
the second page data obtaining module includes:
and the element trigger acquisition unit is used for acquiring second page data corresponding to the second page according to the identification information after detecting the trigger operation aiming at the trigger element.
In some embodiments of the second aspect of the present application, the second page data obtaining module includes:
a local storage determining unit, configured to determine whether second page data corresponding to the second page is stored locally according to a loading attribute corresponding to the identification information, where the loading attribute is used to identify whether the second page data has been loaded and stored locally;
a local obtaining unit, configured to obtain the second page data locally according to the identification information when it is determined that the second page data is locally stored;
and the server side acquisition unit is used for acquiring the second page data from the server side according to the identification information under the condition that the second page data is not locally stored.
In some embodiments of the second aspect of the present application, the second page data obtaining module includes:
the local query unit is used for locally querying second page data corresponding to the second page;
the local post-query acquisition unit is used for acquiring the second page data from the local site under the condition that the second page data is queried;
and the slave server side acquisition unit is used for acquiring the second page data from the server side according to the identification information under the condition that the second page data is not inquired.
In some embodiments of the second aspect of the present application, the second page data loading module includes:
and the single page loading unit is used for loading the second page data in a single page mode and hiding the first page data so as to display the first page.
A third aspect of the present application provides an electronic device comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program when executing the computer program to perform the method of the first aspect of the application.
A fourth aspect of the present application provides a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method of the first aspect of the present application.
Compared with the prior art, the page loading method provided by the application comprises the steps that after a multi-page application loading request is detected, first page data corresponding to a first page is obtained from a server to be loaded, and data of other pages are not obtained, wherein the first page data comprise identification information of other pages (such as a second page), and then after a trigger operation for opening the second page is detected, second page data corresponding to the second page is obtained to be loaded, so that the on-demand loading of each page in the multi-page application is realized, and the efficiency for obtaining and loading single-page data is far greater than the efficiency for obtaining and loading multi-page data, so that the page can be presented to a user more quickly, the loading time is shortened, and the influence on use experience caused by long-time waiting of the user is avoided; meanwhile, by the mode of loading according to needs, the transmission of useless pages can be avoided, so that the waste of network transmission resources is reduced, and the waste of resources of a server-side system is reduced.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow chart of a method of page loading provided by some embodiments of the present application;
FIG. 2 illustrates a flow chart of a page loading method provided in some embodiments of the present application;
FIG. 3 illustrates a schematic diagram of a page loading apparatus provided in some embodiments of the present application;
FIG. 4 illustrates a schematic diagram of an electronic device provided by some embodiments of the present application;
FIG. 5 illustrates a schematic diagram of a computer medium provided by some embodiments of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
In addition, the terms "first" and "second", etc. are used to distinguish different objects, rather than to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Referring to fig. 1, which shows a flowchart of a page loading method according to some embodiments of the present application, as shown in fig. 1, the page loading method may be used in a terminal electronic device, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like, and the method may include the following steps, without limitation, of:
step S101: responding to a multi-page application loading request, and acquiring first page data corresponding to a first page from a server, wherein the first page data comprises identification information of a second page associated with the first page.
Step S102: loading the first page data to display the first page;
step S103: after the triggering operation for opening the second page is detected, acquiring second page data corresponding to the second page according to the identification information;
step S104: and loading the second page data to display a second page, wherein the first page and the second page are both sub-pages of the multi-page application.
Compared with the prior art, the page loading method provided by the embodiment of the application obtains the first page data corresponding to the first page from the server for loading without obtaining the data of other pages after detecting the multi-page application loading request, and then obtains the second page data corresponding to the second page for loading after detecting the triggering operation for opening the second page, so that the on-demand loading of each page in the multi-page application is realized, and the efficiency for obtaining and loading the single-page data is far greater than that for obtaining and loading the multi-page data, so that the page can be presented to the user more quickly, the loading duration is reduced, and the influence on the use experience caused by long-time waiting of the user is avoided; meanwhile, by the mode of loading according to needs, the transmission of useless pages can be avoided, so that the waste of network transmission resources is reduced, and the waste of resources of a server-side system is reduced.
In some embodiments, the management platform of the smart home device may be implemented by using a multi-page application, and the multi-page application loading request may include a management platform loading request for requesting to load the management platform of the smart home device.
According to the prior art, after receiving the multi-page application loading request, the server side sends all pages of the management platform to the terminal for loading, so that resource waste and long waiting time are caused, and user experience is influenced; and the terminal can automatically refresh the page data when switching the page, thereby losing the historical query data and being not beneficial to operation.
According to the embodiment of the application, after receiving the multi-page application loading request, the server only needs to send the first page (such as the first page) to the terminal for loading, and then sends the second page to the terminal for loading as required, so that resource waste and too long waiting time are avoided, and user experience is improved; when the terminal switches the page, the switched page (for example, the second page) is directly loaded, and the page data does not need to be refreshed, so that the historical query data is not lost, and the user operation experience is favorably improved.
In addition, in the prior art, the management background has a display style at the computer side and the mobile side, and since the sizes and resolutions of the display screens of the computer side and the mobile side are different, abnormal difficulty is brought to the operation of the mobile side, so in some modification implementations of the embodiment of the present application, the first page data may include an adaptive screen identifier;
the obtaining of the first page data corresponding to the first page from the server may include:
acquiring a plurality of first page data corresponding to a first page from a server, wherein different first page data correspond to different adaptive screen identifications;
the loading the first page data to display the first page may include:
determining a first adaptive screen identifier matched with the adaptive information according to the adaptive information of the current display screen;
and loading the first page data corresponding to the first adaptive screen identifier to display the first page.
In this embodiment, different page styles may be set for different display screens, so that the first page may be adapted to various display screens, for the purpose of distinguishing, the first page data includes an adaptation screen identifier, the adaptation screen identifier may be a category name of a large screen, a medium screen, a small screen, or a display screen size identifier of 5.7 inches, 6.2 inches, or a resolution identifier of 1028, 1024, 2560, 1440, 1280, or the like, which is not limited in this embodiment of the application.
Based on the description, the terminal can determine a first adaptive screen identifier matched with the adaptation information according to the adaptation information of the current display screen, and then load the first page data corresponding to the first adaptive screen identifier, so that the adaptive first page is displayed in a self-adaptive manner under the condition that a user does not sense, and the visual experience and the operation experience of the user are improved.
As a modified embodiment of the foregoing embodiment, in some embodiments, the acquiring, from the server, first page data corresponding to a first page may include:
sending a first page data acquisition request to a server, wherein the first page data acquisition request comprises adaptation information of a current display screen;
and receiving first page data which is sent by the server and matched with the adaptation information of the current display screen.
Through the implementation mode, the adaptation information of the current display screen can be sent to the server, so that the server directly returns the first page data matched with the adaptation information of the current display screen, the first page of adaptation can be adaptively displayed under the condition that a user does not sense, the visual experience and the operation experience of the user are improved, meanwhile, the data transmission quantity of the first page data can be reduced, and the network transmission consumption and the load of a server system are reduced.
It is to be understood that, in the above embodiment, the adaptation information may include size information of the current display screen, and/or resolution information. So as to determine the first page data adapted to the current display screen according to the adaptation information for loading.
In some variations of the embodiments of the present application, the first page data may further include a trigger element of the second page;
the loading the first page data to display the first page may include:
loading the first page data, wherein a trigger element of the second page is set to be in a display state, and identification information of the second page is set to be in a hidden state;
the obtaining, according to the identification information, second page data corresponding to the second page after detecting the trigger operation for opening the second page may include:
and after the trigger operation aiming at the trigger element is detected, acquiring second page data corresponding to the second page according to the identification information.
The identification information of the second page may be a unique identification character string to identify the second page. It should be noted that the identification information is not link information of the second page.
The trigger element may be any webpage element such as a control, a component, a link, and the like, so as to trigger opening of the second page.
For example, the multi-page application is a management platform, and the triggering element may be an option in a menu in the management platform, and clicking the option may trigger opening the second page.
According to the embodiment, the identification information of the second page is hidden, so that the visual experience of the user is prevented from being influenced by the interference caused by the identification information for the reading and the operation of the user, the trigger property of the second page can be ensured, and the attractive and humanized use experience can be provided for the user.
In some modified embodiments of the embodiment of the present application, the obtaining, according to the identification information, second page data corresponding to the second page includes:
determining whether second page data corresponding to the second page is stored locally according to a loading attribute corresponding to the identification information, wherein the loading attribute is used for identifying whether the second page data is loaded once and stored locally;
under the condition that the second page data are locally stored, the second page data are locally obtained according to the identification information;
and under the condition that the second page data is not stored locally, acquiring the second page data from the server according to the identification information.
In this embodiment, a load attribute may be set for the identification information to identify whether the second page data has been loaded and stored locally, and when the second page data is loaded, the load attribute may be set to "loaded", otherwise, the load attribute is set to "unloaded".
Through the embodiment, under the condition of loading the second page data, the second page data can be stored locally, so that the second page data can be directly loaded from the local during subsequent access, and compared with the mode of loading the page from the server every time, the page loading efficiency can be effectively improved, and the load of a server-side system is reduced.
As a modified embodiment of the foregoing embodiment, in some embodiments, the acquiring, according to the identification information, second page data corresponding to the second page may include:
locally inquiring second page data corresponding to the second page;
under the condition that the second page data is inquired, acquiring the second page data from the local;
and under the condition that the second page data is not inquired, acquiring the second page data from the server according to the identification information.
Through the embodiment, the second page data can be stored locally under the condition of loading the second page data, so that the second page data can be directly loaded locally during subsequent access, and compared with the mode of loading the page from the server every time, the page loading efficiency can be effectively improved, and the load of a server system is reduced.
In some modified embodiments of the embodiment of the present application, the loading the second page data to display a second page may include:
and loading the second page data by adopting a single-page mode and hiding the first page data so as to display the first page.
According to the embodiment, when the second page data is loaded in the single-page mode, the first page data can be automatically hidden, so that the expenses of a memory and a video memory of the terminal can be effectively reduced, the local loading efficiency is improved, and the user experience is further improved.
For convenience of understanding, the page loading method provided by the embodiment of the present application is described below with reference to some specific embodiments.
Referring to fig. 2, which shows a flowchart of a page loading method according to some specific embodiments of the present application, the page loading method shown in fig. 2 may be understood with reference to the above description of the embodiment corresponding to fig. 1, and a part of the content is not described again, and the description of the embodiment corresponding to fig. 1 may also be understood with reference to fig. 2.
As shown in fig. 2, the page loading method may be used for loading and displaying of a management platform (a management platform implemented by using a multi-page application), and may include the following steps:
step S201: and the terminal sends a login request of the management background to the server side so as to log in the management background.
Step S202: loading a plurality of home page (namely a first page) styles and static files, wherein the static files are used for recording page data, and the styles are used for distinguishing different page data and can comprise information such as adaptive screen identification.
Step S203: the unique identification IDs (i.e., identification information) of all pages (i.e., second pages) are loaded and set to a hidden state.
Step S204: the loaded screen size (i.e., the adaptation information of the current display screen) is judged, and a style conforming to the screen size (i.e., the first page data adapted to the current display screen) is loaded.
Step S205: and switching the menu (namely, triggering operation of the second page) to acquire the unique identification ID (namely, identification information) of the second page.
Step S206: and judging whether the second page is loaded or not according to the loading attribute of the identification information.
Step S207: if the page is not loaded, hiding the page (namely the first page) operated last time, displaying the page (namely the second page), acquiring server data, and rendering the server data on the second page.
Step S208: and if the page is loaded, the second page is loaded from the local place to be displayed again, and the page (namely the first page) operated last time is hidden.
Through this embodiment, can gain at least following beneficial effect:
through the implementation mode, all pages can be displayed and hidden on one loading module, the size of a screen is obtained under the condition that a user does not sense, the page style is responded in a self-adaptive mode, various screen ends are compatible, the convenient operation of good sense and experience is provided for the user, the terminal can automatically detect the adaptation information of the display screen, unmatched styles are automatically filtered according to the adaptation information, the first page matched with the current display screen in the self-adaptive mode is automatically displayed, and historical data is not automatically refreshed when the pages are switched, so that the historical data can be prevented from being lost, and the data searched once is easy to find out.
In addition, the server data is called as required only when the data needs to be queried, and the method is used in a high-concurrency scene, so that the cost of the server can be effectively saved, the response time is shortened, the load of the server is reduced, and the material cost can be saved while the user experience is improved.
In the foregoing embodiment, a page loading method is provided, and correspondingly, the present application further provides a page loading apparatus. The page loading device provided by the embodiment of the application can implement the information processing method, and the information processing device can be implemented by software, hardware or a combination of software and hardware. For example, the information processing apparatus may include integrated or separate functional modules or units to perform the corresponding steps in the above-described methods. Please refer to fig. 3, which illustrates a schematic diagram of a page loading apparatus according to some embodiments of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 3, the page loading apparatus 10 may include:
a first page data obtaining module 101, configured to obtain, in response to a multi-page application loading request, first page data corresponding to a first page from a server, where the first page data includes identification information of a second page associated with the first page;
a first page data loading module 102, configured to load the first page data to display the first page;
a second page data obtaining module 103, configured to obtain, after detecting a trigger operation for opening the second page, second page data corresponding to the second page according to the identification information;
a second page data loading module 104, configured to load the second page data to display a second page, where the first page and the second page are both subpages of the multi-page application.
In some embodiments of the second aspect of the present application, the first page data comprises an adapted screen identification;
the first page data obtaining module 101 includes:
the multi-data acquisition unit is used for acquiring a plurality of first page data corresponding to a first page from the server, wherein different first page data correspond to different adaptive screen identifiers;
the first page data loading module 102 includes:
the adaptive screen identification determining unit is used for determining a first adaptive screen identification matched with the adaptive information according to the adaptive information of the current display screen;
and the adaptive page data loading unit is used for loading the first page data corresponding to the first adaptive screen identifier so as to display the first page.
In some embodiments of the second aspect of the present application, the first page data obtaining module 101 includes:
the system comprises a page data acquisition request sending unit, a page data acquisition unit and a server, wherein the page data acquisition request sending unit is used for sending a first page data acquisition request to the server, and the first page data acquisition request comprises adaptation information of a current display screen;
and the adaptive page data receiving unit is used for receiving the first page data which is sent by the server and matched with the adaptive information of the current display screen.
In some embodiments of the second aspect of the present application, the adaptation information comprises size information and/or resolution information of the current display screen.
In some embodiments of the second aspect of the present application, the first page data further comprises a trigger element of the second page;
the first page data loading module 102 includes:
the identification hiding unit is used for loading the first page data, setting a trigger element of the second page to be in a display state, and setting the identification information of the second page to be in a hidden state;
the second page data obtaining module 103 includes:
and the element trigger acquisition unit is used for acquiring second page data corresponding to the second page according to the identification information after detecting the trigger operation aiming at the trigger element.
In some embodiments of the second aspect of the present application, the second page data obtaining module 103 includes:
a local storage determining unit, configured to determine whether second page data corresponding to the second page is stored locally according to a loading attribute corresponding to the identification information, where the loading attribute is used to identify whether the second page data has been loaded and stored locally;
the local acquisition unit is used for acquiring the second page data from the local according to the identification information under the condition that the second page data is determined to be stored locally;
and the server side acquisition unit is used for acquiring the second page data from the server side according to the identification information under the condition that the second page data is not locally stored.
In some embodiments of the second aspect of the present application, the second page data obtaining module 103 includes:
the local query unit is used for locally querying second page data corresponding to the second page;
the local query post-acquisition unit is used for acquiring the second page data from the local under the condition that the second page data is queried;
and the slave server side acquisition unit is used for acquiring the second page data from the server side according to the identification information under the condition that the second page data is not inquired.
In some embodiments of the second aspect of the present application, the second page data loading module 104 includes:
and the single page loading unit is used for loading the second page data in a single page mode and hiding the first page data so as to display the first page.
The page loading apparatus 10 provided in the embodiment of the present application and the page loading method provided in the foregoing embodiment of the present application are based on the same inventive concept, and have the same beneficial effects.
An embodiment of the present application further provides an electronic device corresponding to the page loading method provided in the foregoing embodiment, so as to execute the page loading method, where the electronic device may be any device with data processing and displaying functions, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like, and the embodiment of the present application is not limited thereto.
Referring to fig. 4, a schematic diagram of an electronic device provided in some embodiments of the present application is shown. As shown in fig. 4, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the page loading method provided by any one of the foregoing embodiments when executing the computer program.
The Memory 201 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 202 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used for storing a program, the processor 200 executes the program after receiving an execution instruction, and the page loading method disclosed in any embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
The electronic device provided by the embodiment of the application and the page loading method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Referring to fig. 5, a computer-readable storage medium is shown as an optical disc 30, on which a computer program (i.e., a program product) is stored, where the computer program, when executed by a processor, executes the page loading method provided in any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memories (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the page loading method provided by the embodiment of the present application have the same beneficial effects as the method adopted, run or implemented by the application program stored in the computer-readable storage medium.
It should be noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; these modifications and substitutions do not depart from the spirit of the embodiments of the present application, and they should be construed as being included in the scope of the claims and description of the present application.

Claims (8)

1. A page loading method, characterized in that the method comprises:
responding to a multi-page application loading request, and acquiring a plurality of first page data corresponding to a first page from a server, wherein the first page data comprise corresponding adaptive screen identifiers, trigger elements of a second page and identifier information of the second page related to the first page;
determining a first adaptive screen identifier matched with the adaptive information according to the adaptive information of the current display screen; loading the first page data corresponding to the first adaptive screen identifier to display the first page; setting a trigger element of the second page to be in a display state, and setting identification information of the second page to be in a hidden state;
after the trigger operation aiming at the trigger element is detected, second page data corresponding to the second page is obtained according to the identification information; the identification information of the second page is a unique identification character string to identify the second page, and the identification information is not link information of the second page;
and loading the second page data in a single-page mode and hiding the first page data to display a second page, wherein the first page and the second page are sub-pages of the multi-page application.
2. The method according to claim 1, wherein the obtaining of the plurality of first page data corresponding to the first page from the server includes:
sending a first page data acquisition request to a server, wherein the first page data acquisition request comprises the adaptation information of the current display screen;
and receiving first page data which is sent by the server and matched with the adaptation information of the current display screen.
3. Method according to claim 1 or 2, wherein the adaptation information comprises size information of the current display screen, and/or resolution information.
4. The method according to claim 1, wherein the obtaining second page data corresponding to the second page according to the identification information includes:
determining whether second page data corresponding to the second page is stored locally according to a loading attribute corresponding to the identification information, wherein the loading attribute is used for identifying whether the second page data is loaded once and stored locally;
under the condition that the second page data are locally stored, the second page data are locally obtained according to the identification information;
and under the condition that the second page data is not stored locally, acquiring the second page data from the server according to the identification information.
5. The method according to claim 1, wherein the obtaining second page data corresponding to the second page according to the identification information includes:
locally inquiring second page data corresponding to the second page;
under the condition that the second page data is inquired, acquiring the second page data from the local;
and under the condition that the second page data is not inquired, acquiring the second page data from the server according to the identification information.
6. A page loading apparatus, comprising:
the system comprises a first page data acquisition module, a second page data acquisition module and a first page data acquisition module, wherein the first page data acquisition module is used for responding to a multi-page application loading request and acquiring a plurality of first page data corresponding to a first page from a server, and the first page data comprises corresponding adaptive screen identifiers, trigger elements of a second page and identifier information of the second page related to the first page;
the first page data loading module is used for determining a first adaptive screen identifier matched with the adaptive information according to the adaptive information of the current display screen; loading the first page data corresponding to the first adaptive screen identifier to display the first page; setting a trigger element of the second page to be in a display state, and setting identification information of the second page to be in a hidden state;
the second page data acquisition module is used for acquiring second page data corresponding to the second page according to the identification information after the trigger operation aiming at the trigger element is detected; the identification information of the second page is a unique identification character string to identify the second page, and the identification information is not link information of the second page; and the second page data loading module is used for loading the second page data in a single-page mode and hiding the first page data so as to display a second page, wherein the first page and the second page are both subpages of the multi-page application.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor executes when executing the computer program to implement the method according to any of claims 1 to 5.
8. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 5.
CN201911056595.1A 2019-10-31 2019-10-31 Page loading method and device, electronic equipment and medium Active CN110990733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056595.1A CN110990733B (en) 2019-10-31 2019-10-31 Page loading method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056595.1A CN110990733B (en) 2019-10-31 2019-10-31 Page loading method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110990733A CN110990733A (en) 2020-04-10
CN110990733B true CN110990733B (en) 2023-03-17

Family

ID=70082890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056595.1A Active CN110990733B (en) 2019-10-31 2019-10-31 Page loading method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110990733B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium
CN111694550A (en) * 2020-04-28 2020-09-22 北京奇艺世纪科技有限公司 Page display control method, device and system
CN111625315A (en) * 2020-05-28 2020-09-04 北京达佳互联信息技术有限公司 Page display method and device, electronic equipment and storage medium
CN114745363B (en) * 2022-03-18 2023-12-15 成都数联云算科技有限公司 Front-end application request message processing method, system and device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014183444A1 (en) * 2013-05-15 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, terminal, server, and system for data processing
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium
CN110019464A (en) * 2017-11-24 2019-07-16 阿里巴巴集团控股有限公司 Page processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9727643B2 (en) * 2011-11-30 2017-08-08 Red Hat, Inc. Managing loading of web pages
CN109829077B (en) * 2017-08-29 2023-10-24 阿里巴巴集团控股有限公司 Page display method, device and equipment
CN110334297B (en) * 2018-03-08 2024-03-01 腾讯科技(深圳)有限公司 Terminal page loading method, terminal, server and storage medium
CN109165050B (en) * 2018-07-05 2020-10-13 腾讯科技(深圳)有限公司 Program running method and device, computing equipment and storage medium
CN109376318B (en) * 2018-09-03 2023-07-21 中国平安人寿保险股份有限公司 Page loading method, computer readable storage medium and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014183444A1 (en) * 2013-05-15 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, terminal, server, and system for data processing
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN110019464A (en) * 2017-11-24 2019-07-16 阿里巴巴集团控股有限公司 Page processing method and device
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Duc Hoang Bui 等.Rethinking Energy-Performance Trade-Off in Mobile Web Page Loading.2015,第14-26页. *
何人可 ; 符跃峰 ; .基于时间知觉的移动APP页面加载方式研究.2017,(18),第56-61页. *

Also Published As

Publication number Publication date
CN110990733A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN110990733B (en) Page loading method and device, electronic equipment and medium
CN110086877B (en) Application program sharing and information sharing display method, device, equipment and medium
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
WO2017219983A1 (en) Method and terminal for acquiring application program between terminals
CN108228293B (en) Interface skin switching method and device
CN104965717A (en) Method and apparatus for loading page
CN105988837B (en) Application program installation method and device
CN109656440B (en) Application icon display method, device and medium
CN111666518B (en) DOI display method and device
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN105589879A (en) Method and apparatus for downloading picture by client
CN105426761A (en) Identification method for illegal application and mobile terminal
CN107800611B (en) Page switching method and page switching device
CN111212154A (en) Service binding method, device, terminal, server and storage medium
CN110825600B (en) Page information processing method, server and page display device
CN111159269B (en) Data processing method, device and system
CN111966273A (en) Information display processing method and device
CN108171079A (en) A kind of collecting method based on terminal, device, terminal and storage medium
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
CN110290201B (en) Picture acquisition method, mobile terminal, server and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
WO2020034521A1 (en) Display method and apparatus, terminal and readable storage medium
CN107145375B (en) Kernel loading method, device, system, user terminal and storage medium
CN107688951B (en) Information pushing method and device

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
GR01 Patent grant
GR01 Patent grant