CN110825990A - Page access method, client, server and system - Google Patents

Page access method, client, server and system Download PDF

Info

Publication number
CN110825990A
CN110825990A CN201810814496.4A CN201810814496A CN110825990A CN 110825990 A CN110825990 A CN 110825990A CN 201810814496 A CN201810814496 A CN 201810814496A CN 110825990 A CN110825990 A CN 110825990A
Authority
CN
China
Prior art keywords
application
target
resource
webpage
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810814496.4A
Other languages
Chinese (zh)
Inventor
罗强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201810814496.4A priority Critical patent/CN110825990A/en
Publication of CN110825990A publication Critical patent/CN110825990A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page access method, a client, a server and a system. The page access method is implemented by a client, and comprises the following steps: when receiving page access operation on a target page, detecting whether a webpage application entry exists in the target page; when detecting that a webpage application entrance exists in a target page, acquiring application resources of a target webpage application corresponding to the webpage application entrance and storing the application resources in the local; and when receiving the trigger operation of the target webpage application, reading the locally stored application resource of the target webpage application to operate the target webpage application. According to the method and the device, the longer time consumption for loading and waiting caused by loading the application resources of the webpage application in real time can be avoided, the application effect of 'instant use' is ensured to be actually realized by the webpage application, and the user experience is improved.

Description

Page access method, client, server and system
Technical Field
The present invention relates to the field of web page technologies, and in particular, to a page access method, a client, a server, and a system.
Background
With the rapid development of HTML5(Hyper Text Markup Language version 5) technology, a web application developed based on the HTML5 technology can provide an application experience that a user approaches a native application. For example, H5 mini-games developed based on HTML5 technology are popular with users because of the "instant-on-play" experience that can be run with the browser open without downloading the installation.
At present, when a user runs an H5 mini-game, the user usually needs to open a corresponding remote website link to access the link, and the user can only run the H5 mini-game after loading the corresponding link. However, when H5 mini-games are loaded, corresponding application resources need to be loaded from corresponding game servers, which is limited by network speed, and the loading process usually takes a long time, which affects user experience.
Disclosure of Invention
It is an object of the present invention to provide a new solution for accessing pages.
According to a first aspect of the present invention, there is provided a page access method, implemented by a client, including:
when receiving page access operation on a target page, detecting whether a webpage application entry exists in the target page;
when the target page is detected to have the webpage application entrance, acquiring application resources of the target webpage application corresponding to the webpage application entrance and storing the application resources in the local;
and when receiving the trigger operation of the target webpage application, reading the locally stored application resource of the target webpage application to operate the target webpage application.
Optionally, the step of detecting whether a web application portal exists in the target page includes:
detecting whether an application resource address notification of the target page is received;
wherein, the application resource notification at least includes the resource loading address information; the resource loading address information comprises a network address of an application resource for loading a corresponding webpage application;
when the application resource notification is received, determining that a webpage application entrance exists in the target page; and when the application resource notification is not received, determining that no webpage application entrance exists in the target page.
Optionally, the step of detecting whether a web application portal exists in the target page includes:
detecting whether resource loading address information exists in the target page or not;
the resource loading address information comprises a network address of an application resource for loading a corresponding webpage application;
when determining that the resource loading address information exists in the target page, determining that a webpage application entry exists in the target page; and when determining that the resource loading address information does not exist in the target page, determining that a webpage application entrance does not exist in the target page.
Optionally, the step of acquiring the application resource of the target web application corresponding to the web application portal includes:
acquiring resource loading address information corresponding to the webpage application entry;
and loading the application resources of the target webpage application according to the resource loading address information.
Optionally, the resource loading address information includes download address information of a static resource package of the target web application, where the static resource package of the target web application is generated after a server acquires application resources of the target web application in advance;
the step of loading the application resource of the target webpage application according to the resource loading address information comprises the following steps:
and downloading the static resource package of the target webpage application from the server according to the resource loading address information so as to obtain the application resource of the target webpage application included in the static resource of the target webpage application.
Optionally, when receiving a trigger operation on the target web application, the step of reading a locally stored application resource of the target web application to run the target web application includes:
when receiving the triggering operation of the target webpage application, intercepting a resource loading request of the target webpage application triggered by the triggering operation of the target webpage application;
replacing the resource loading address information in the resource loading request of the target webpage application with a local storage address for storing the application resource of the target webpage application;
and responding to the resource loading request of the target webpage application, and reading the locally stored application resource of the target webpage application according to the local storage address so as to run the target webpage application.
According to a second aspect of the invention, wherein implemented by a server, comprising:
generating a corresponding static resource package according to the acquired application resources of the webpage application;
and releasing the downloading address information of the static resource package of the webpage application so that when a webpage application entrance exists in a target page accessed by a user, a client downloads the static resource package according to the downloading address information of the static resource package of the target webpage application corresponding to the webpage application entrance to acquire the application resource of the target application.
According to a third aspect of the present invention, there is provided a client, comprising:
a display device;
a memory for storing executable instructions;
and the processor is used for operating the client to execute the page access method provided by the first aspect of the invention according to the control of the executable instruction.
According to a fourth aspect of the present invention, there is provided a server, comprising:
a memory for storing executable instructions;
and the processor is used for operating the server to execute the page access method provided by the second aspect of the invention according to the control of the executable instruction.
According to a fifth aspect of the present invention, there is provided a page access system, comprising:
a client of the third aspect of the invention;
and a server of the fourth aspect of the invention.
According to one embodiment of the disclosure, when a webpage application entrance is detected in a page accessed by a user, application resources of a target webpage application corresponding to the webpage application entrance are acquired in advance and stored locally, and when the target webpage application is actually opened by the user, the locally stored application resources of the target webpage application are directly read to run the webpage application, so that long loading waiting time caused by real-time loading of the application resources of the webpage application is avoided, the 'instant-on-use' application effect of the webpage application can be ensured, and the user experience is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram showing an example of a hardware configuration of a system 1000 that can be used to implement an embodiment of the present invention.
Fig. 2 shows a flowchart of a page access method of the first embodiment of the present invention.
Fig. 3 is a flowchart illustrating the steps of acquiring application resources of a target web application according to the first embodiment of the present invention.
Fig. 4 is a flowchart illustrating a step of reading an application resource of a target web application according to a first embodiment of the present invention.
Fig. 5 shows a schematic block diagram of a client of a first embodiment of the invention.
Fig. 6 shows a flowchart of a page access method of the second embodiment of the present invention.
Fig. 7 shows a schematic block diagram of a server of a second embodiment of the present invention.
Fig. 8 shows a schematic block diagram of a page access system of a third embodiment of the present invention.
Fig. 9 shows a schematic block diagram of a page access system of a third embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
As shown in fig. 1, system 1000 includes a server 1100, a client 1200, and a network 1300.
Server 1100 may be, for example, a blade server or the like. In one example, the server 1100 can be a computer. In another example, the server 1100 may be as shown in FIG. 1, including a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, and an input device 1160. Although the server may also include speakers, microphones, etc., these components are not relevant to the present invention and are omitted here. The processor 1110 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a serial interface, and the like. The communication device 1140 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display panel. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.
Client 1200 may be a laptop (1200-1), desktop (1200-2), cell phone (1200-3), tablet (1200-4), etc. As shown in fig. 1, client 1200 may include a processor 1210, memory 1220, interface device 1230, communication device 1240, display device 1250, input device 1260, speaker 1270, microphone 1280, and so on. The processor 1210 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1220 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1230 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1240 can perform wired or wireless communication, for example. The display device 1250 is, for example, a liquid crystal display, a touch display, or the like. The input device 1260 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 1270 and the microphone 1280.
The communication network 1300 may be a wireless network or a network, a local area network or a wide area network. In the configuration environment 1000 shown in FIG. 1, clients 1200-1, 1200-2, 1200-3, 1200-4 and server 1100 may communicate over a communication network 1300.
The system 1000 shown in FIG. 1 is illustrative only and is not intended to limit the invention, its application, or uses in any way. In an embodiment of the present invention, the memory 1120 of the server 1100 is configured to store executable instructions, which are used to control the processor 1110 to perform any one of the page access methods provided by the embodiment of the present invention. In addition, the memory 1220 of the client 1200 is used for storing instructions for controlling the processor 1210 to operate so as to execute any page access method provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a number of devices are shown in FIG. 1 for both server 1100 and client 1200, the present invention may refer to only some of the devices, for example, server 1100 may refer to only processor 1110 and storage 1120, or client 1200 may refer to only processor 1210 and storage 1220, etc. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< first embodiment >
In this implementation, a page access method is provided, implemented by a client. The page is an information page realized by any HTML5(Hyper Text Markup Language version 5) technology, and can be accessed by a user through a corresponding hypertext link to acquire related information. A page will typically include page elements such as text, images, forms, hyperlinks, etc.
The client may be any electronic device supporting implementation of the embodiment, and for example, may be a mobile phone, a tablet computer, a palmtop computer, a notebook computer, a desktop computer, and the like. In one example, there may be a client 1200 as shown in FIG. 1.
The page access method, as shown in fig. 2, includes: steps S2100-S2300.
In step S2100, when receiving a page access operation to a target page, it is detected whether a web application entry exists in the target page.
The page access operation is implemented on the page to implement a man-machine interaction operation for accessing the page, and may be any preset operation for triggering the page to be opened, such as clicking, checking, sliding selection, and the like, which is not limited herein.
The target page is a page of information implemented by HTML5 technology, and typically includes page elements such as text, images, forms, hyperlinks, and the like. A web application entry is an access entry (access address) included in a target page for opening a corresponding web application, and usually exists in the form of a hyperlink, such as a URL (Uniform Resource Locator), and a user can load the web application by clicking on the URL or a page component corresponding to the URL. Taking the example of a web application as an H5 mini-game, the web application portal is typically the main document URL of the H5 mini-game.
The Web application (Web application) is an application developed based on HTML5 technology, and can be directly run through an application platform (e.g. a browser) providing access and Web browsing services without downloading and installation, for example, an H5 mini game included in a Web page, which can be directly clicked to run, is a Web application.
Whether the target page comprises the webpage application can be determined by detecting whether the target page comprises the webpage application entry, and further, corresponding application resources are loaded in advance for the webpage application in the target page in combination with the subsequent steps, the application resources which are obtained in advance can be directly read when the webpage application is actually opened by a user to run the webpage application, so that long loading waiting time consumption caused by real-time loading of the application resources of the webpage application is avoided, the application effect of 'instant use' of the webpage application can be ensured, and the user experience is improved.
In one example, the step of detecting whether the web application portal exists in the target page may include: steps S21011-S21012.
Step S21011, it is detected whether an application resource address notification of the target page is received.
In this embodiment, whether to receive the application resource address notification of the target page when the target page is accessed may be determined through a related interface provided by an operating system on which the electronic device implementing this embodiment is based. For example, when the operating system on which the electronic device is based is an android system, whether to receive the application resource address notification of the target page when the target page is accessed can be determined through an interface of a JavaScript interface.
The application resource address notification is used for notifying the address of the loaded application resource, and the application resource address notification at least comprises resource loading address information of the target webpage application. The resource loading address information includes a network address of an application resource for loading the corresponding web application.
For example, the resource loading address information may include a URL address of a main document of the web application and a download address of an application resource of the web application, where the application resource includes an HTML main document, a JavaScript (transliterated script) resource, a CSS (Cascading Style Sheets) resource, a picture resource, an audio/video resource, and the like.
Alternatively, the resource loading address information may also include the download address information of the static resource package of the web application. The static resource package of the webpage application is generated after the server acquires the application resources of the webpage application in advance. The server generates the corresponding static resource package of the webpage application after acquiring the application resources of the webpage application in advance, so that all application resources of the webpage application can be acquired after downloading the static resource package according to the download address information of the static resource package of the webpage application, the application resources of the webpage application distributed at different network download addresses are prevented from being acquired respectively, and the acquisition efficiency of the application resources is improved.
Whether the webpage application can be accessed (opened) through the target page or not can be determined by detecting whether the application resource address notification of the target page is received or not, and correspondingly, whether a webpage application entry exists in the target page or not can be determined.
Step S21012, when receiving the application resource notification, determining that a webpage application entry exists in the target page; and when the application resource notification is not received, determining that no webpage application entrance exists in the target page.
In another example, the step of detecting whether the web application portal exists in the target page comprises: steps S21021-S21022.
Step 21021, detect if resource loading address information exists in the target page.
The resource loading address information includes a network address of an application resource for loading a corresponding web application. When the resource loading address information exists in the target page, the target page can access the webpage application corresponding to the resource loading address information, and correspondingly, a webpage application entry exists in the target page.
In this example, whether the resource loading address information exists in the target page is detected, and after the hyperlink included in the target page is determined by analyzing the main document of the target page according to a pre-configured resource loading address information list including the resource loading address information of the plurality of web applications, the hyperlink is compared with the resource loading address information list including the resource loading address information of the plurality of web applications to determine whether the resource loading address information exists in the target page; or the resource loading address information of the webpage application can be pre-marked, and when a hyperlink identical to the pre-marked resource loading address information exists in the target page, the resource loading address information in the target page is determined; and so on.
S21022, when the resource loading address information exists in the target page, determining that a webpage application entrance exists in the target page; and when the target page is determined not to have the resource loading address information, determining that the target page does not have the webpage application entrance.
After step S2100, the flow proceeds to:
step S2200, when detecting that the target page has the web application entrance, acquiring the application resource of the target web application corresponding to the web application entrance and storing the application resource in the local.
The application resources of the target webpage application corresponding to the webpage application entry are acquired and stored locally, and the application resources stored locally can be directly read when the user actually opens the target webpage application to run the target webpage application by combining subsequent steps, so that long loading waiting time caused by real-time loading of the application resources of the webpage application is avoided, the application effect of 'instant on and use' of the webpage application can be ensured, and the user experience is improved.
In one example, the step of acquiring an application resource of a target web application corresponding to a web application portal, as shown in fig. 3, includes: steps S2210-S2220.
Step S2210, resource loading address information corresponding to the web application portal is obtained.
In this example, the resource loading address information includes a network address of an application resource for loading a target web application corresponding to the web application portal.
The resource loading address information can be obtained from the application resource address notification after detecting that the application resource address notification of the target page is received; or after detecting the resource loading address information included in the target page, reading the related content in the target page to obtain the corresponding resource loading address information, and the like.
Step S2220, according to the resource loading address information, loading the application resource of the target webpage application.
By loading the application resources of the target webpage application, the application resources of the target webpage application can be stored and locally combined with the subsequent steps, and the locally stored application resources can be directly read when the user actually opens the target webpage application so as to run the target webpage application, so that long loading waiting time caused by real-time loading of the application resources of the webpage application is avoided, the application effect of 'instant use' of the webpage application can be ensured, and the user experience is improved.
In this example, the resource loading address information may include a URL address of a main document of the web application and a download address of an application resource of the web application, where the application resource includes an HTML main document, a JavaScript (interpreted script) resource, a CSS (Cascading Style Sheets) resource, a picture resource, an audio/video resource, and the like.
Or, in this example, the resource loading address information may also include the download address information of the static resource package of the target web application. The static resource package of the target webpage application is generated after the server acquires the application resources of the target webpage application in advance. Correspondingly, step S2220 includes:
and downloading the static resource package of the target webpage application from the server according to the resource loading address information so as to obtain the application resource of the target webpage application included in the static resource of the target webpage application.
And the static resource package is generated by compressing, packaging and other means after the server respectively acquires the application resources of the target webpage application distributed at different download addresses. After the static resource package is downloaded, all application resources of the web application are acquired by means of compression, unpacking and the like, so that the application resources of the web application distributed at different download addresses can be prevented from being acquired respectively, and the acquisition efficiency of the application resources is improved.
After step S2200, the process proceeds to:
step S2300, when receiving the operation triggering operation on the target web application, reading the locally stored application resource of the target web application to operate the target web application.
The operation of triggering the target web application is implemented on the target page and is performed with the web application entry of the target web application to trigger the human-computer interaction operation of the target web application, which may be any preset operation for triggering the target web application to be opened and operated, such as clicking, checking, sliding selection, and the like, and is not limited herein.
When a user actually opens the target webpage application, the locally stored application resources are directly read to run the target webpage application, so that the longer time consumption of loading waiting caused by real-time loading of the application resources of the webpage application is avoided, the practical application effect of 'instant on and use' of the webpage application can be ensured, and the user experience is improved.
In one example, step S2300, as shown in fig. 4, may include: steps S2310-S2330.
Step S2310, when receiving the operation triggering operation on the target web application, intercepting a resource loading request of the target web application triggered by the operation triggering operation on the target web application.
The trigger run operation on the target web application typically triggers the opening of the main document URL of the target web application. When detecting that the currently opened URL of the client is consistent with the main document URL included in the resource loading address information corresponding to the loaded application resource, the trigger operation of the target webpage application can be judged to be received.
The triggering operation on the target webpage application triggers a resource loading request on the target webpage application at the same time, and requests to load the sub-resources in the main document of the target webpage application, namely the application resources of the main document of the target webpage application.
The resource loading request includes resource loading address information, the resource loading address information includes a network address of an application resource for loading a target web application, and the client generally loads the application resource of the target web application distributed at different network download addresses based on the resource loading address information.
In this embodiment, the application resource of the target web application is obtained in advance, so that the resource loading request of the target web application can be intercepted, and the step of loading the application resource through the network is avoided.
Step S2320, the resource loading address information in the resource loading request of the target web application is replaced with a local storage address storing the application resource of the target web application.
After the resource loading request of the target webpage application is intercepted, the resource loading address information in the resource loading request of the target webpage application is replaced by a local storage address for storing the application resource of the target webpage application, and the application resource of the local storage target webpage application can be directly read without changing the resource loading process of the existing webpage application by combining the subsequent steps.
For example, assume that a resource loading request of a target web application is a sub-resource in a main document of the target application, where the sub-resource is a JavaScript file, and the corresponding resource loading request includes a URL of the JavaScript file: http (s)// domain name/relative path/file name;
and the JavaScript file is stored and local after being acquired, wherein the local storage address is as follows: file:// local resource path/relative path/filename;
therefore, after intercepting the resource loading request of the target webpage application, replacing the URL of the JavaScript file with:
file:// local resource path/relative path/filename.
Step S2330, in response to the resource loading request of the target web application, reads the locally stored application resource of the target web application to run the target web application.
The resource loading request of the target webpage application after the interception and replacement processing is responded, the application resource of the target webpage application stored locally can be directly read according to the local storage address of the application resource of the target webpage application in the resource loading request, the response result of the resource loading request is packaged, the target webpage application is operated, the application resource of the target webpage application stored locally is directly read on the premise that the existing resource loading process of the webpage application is not changed, the implementation is simple, and the processing efficiency is improved.
< client >
In this embodiment, a client 200 is further provided, as shown in fig. 5, including:
a display device 210;
a memory 220 for storing executable instructions;
the processor 230 is configured to execute the client 200 to execute any one of the page access methods provided in this embodiment according to the control of the executable instruction.
In this implementation, the client 200 may be any electronic device that supports the page access method implemented in this embodiment, for example, the client 200 may be an electronic device such as a mobile phone, a tablet computer, a palm computer, a notebook computer, and a desktop computer. Client 200 may also include other devices, such as client 1200 as shown in FIG. 1.
Those skilled in the art will appreciate that client 200 may be implemented in a variety of ways. For example, the client 200 may be implemented by an instruction configuration processor. For example, the client 200 may be implemented by storing instructions in ROM and reading the instructions from ROM into a programmable device when the device is started. For example, the client 200 may be cured into a dedicated device (e.g., an ASIC). The client 200 may be divided into separate units or they may be combined together for implementation. The client 200 may be implemented in one of the various implementations described above, or may be implemented in a combination of two or more of the various implementations described above.
In this embodiment, the client 200 may be implemented in various forms, for example, the client 200 is a mobile phone installed with a browser or an application providing a page access and browsing service.
The first embodiment of the present invention has been described above with reference to the accompanying drawings, and according to this embodiment, a page access method and a client are provided, where when a web application entry is detected in a page accessed by a user, application resources of a target web application corresponding to the web application entry are acquired in advance and stored locally, and when the target web application is actually opened by the user, the locally stored application resources of the target web application are directly read to run the web application, so that long loading waiting time consumption caused by loading the application resources of the web application in real time is avoided, and an application effect of "instant-on-use" of the web application can be ensured to be actually realized, thereby improving user experience.
< second embodiment >
In this embodiment, a page access method is provided, which is implemented by a server. The server may be a blade server or a cloud server, and in one example, may be the server 1100 shown in fig. 1.
The page access method, as shown in fig. 6, includes: the steps are 3100-S3200.
Step S3100, generating a corresponding static resource package according to the obtained application resource of the web application.
In this embodiment, the application resource of the web application may be acquired when the web application is published. The application resources of the web application are typically provided by the publisher of the web application. For example, when the web application is an H5 mini-game, the application resources (game resources) of the H5 mini-game are typically generated by the H5 game engine release. Application resources for web applications typically include: HTML main documents, JavaScript (transliterated scripts) resources, CSS (Cascading Style Sheets) resources, picture resources, audio and video resources, and the like.
The application resources of the web application usually include various different types of resources, are distributed under different resource servers, have corresponding different download addresses, and after respectively acquiring the application resources of the web application distributed at different download addresses, the static resource package is generated by means of compression, packaging and the like. For example, the acquired application resources may be packaged into a static resource package in ZIP file format.
Step S3200, the downloading address information of the static resource package of the web application is issued, so that when a web application entry exists in the page accessed by the user, the client downloads the static resource package according to the downloading address information of the static resource package of the target web application corresponding to the web application entry, and acquires the application resource of the target application.
The method and the device can help the client to download the static resource package of the target webpage application in the target page accessed by the user in advance by releasing the download address information of the static resource package of the webpage application, so as to obtain the application resource of the target webpage application in advance, and directly read the locally stored application resource of the target webpage application when the user actually opens the target webpage application to run the webpage application, thereby avoiding longer loading waiting time consumption caused by real-time loading of the application resource of the webpage application, ensuring that the webpage application actually realizes the application effect of 'instant-on-demand', and improving the user experience.
< Server >
In this embodiment, there is also provided a server 300, as shown in fig. 7, including:
a memory 310 for storing executable instructions;
the processor 330 is configured to execute the server to execute the page access method provided in this embodiment according to the control of the executable instruction.
In this embodiment, the server 300 may be a blade server, a cloud server, or any data management device that supports the page access method provided in this embodiment. The server 300 may also include other devices, such as the server 1100 shown in FIG. 1.
Those skilled in the art will appreciate that the server 300 may be implemented in a variety of ways. For example, the server 300 may be implemented by an instruction configuration processor. For example, the server 300 may be implemented by storing instructions in ROM and reading the instructions from ROM into a programmable device when the device is started. For example, the server 300 may be solidified into a dedicated device (e.g., ASIC). The server 300 may be divided into separate units or may be implemented by combining them together. The server 300 may be implemented in one of the various implementations described above, or may be implemented in a combination of two or more of the various implementations described above.
The second embodiment of the present invention has been described above with reference to the accompanying drawings, and according to this embodiment, a page access method and a server are provided, in which a static resource package is generated according to an acquired application resource of a web application, and then download address information of the static resource package is issued, so that a client can be assisted to download the static resource package of a target web application included in a target page accessed by a user in advance, and thus, the application resource of the target web application is acquired in advance, and when the target web application is actually opened by the user, the locally stored application resource of the target web application is directly read to run the web application, thereby avoiding long loading wait time caused by loading the application resource of the web application in real time, ensuring that the web application actually realizes an "instant-to-use" application effect, and improving user experience.
< third embodiment >
In the present embodiment, a page access system 400 is provided, as shown in fig. 8, including:
a client 200 in the first embodiment of the present invention;
the server 300 in the second embodiment of the present invention.
In this embodiment, the page access system 400 can be implemented in various forms, for example, the page access system 400 is a browser system or an application system providing a page browsing, access service. In one example, the hardware configuration of page access system 400 may be as system 100 shown in FIG. 1.
The page access method implemented by the page access system 400 of the present embodiment will be further described below with reference to fig. 9.
In this example, the client 200 in the page access system 400 is a cell phone installed with a browser client application. The target web application is an H5 mini-game. The corresponding application resource is a game resource of the H5 mini-game.
The page access method is shown in fig. 9, and includes: steps S401-S409.
S401, the server 300 obtains game resources of the H5 mini-game from the H5 game engine.
S402, the server 300 packages the game resources to generate a static resource package in a ZIP file format for issuing, and provides the download address information of the corresponding static resource package.
S403, the client 200 receives the access operation of the user to the target page.
S404, the client 200 detects whether an H5 small game entrance exists in the target page, if so, the step S405 is entered, otherwise, the operation is ended.
The step of detecting H5 mini game entries may be implemented by the step of detecting whether there is a web application entry in the target page provided in the first embodiment, and details are not described here.
S405, the client 200 detects that the H5 mini-game entry exists in the target page, and acquires the download address information of the static resource package of the H5 mini-game.
The download address information of the static resource package of the H5 mini game may be obtained by the step of obtaining the resource loading address information provided in the first embodiment, and is not described herein again.
S406, the client 200 downloads the static resource package of the H5 mini-game according to the download address information, and obtains the game resource storage and local of the H5 mini-game.
S407, the client 200 receives the operation of opening the H5 mini-game by the user, and intercepts the resource loading request of the request game resource.
S408, the client 200 replaces the network loading address in the resource loading address information of the game resource in the resource loading request with the local storage address of the local storage game resource.
S409, the client 200 reads the game resources stored locally according to the local storage address in the resource loading request, and runs the H5 mini game.
In this example, the server 300 packages game resources of the H5 mini-game to generate a static resource package and then issues the static resource package, when a target page accessed by a user includes an H5 mini-game entry, the client 200 downloads the static resource package of the H5 mini-game to obtain game resources of the target H5 mini-game, and when the H5 mini-game is actually opened by the user, the locally stored game resources of the H5 mini-game are directly read to run the H5 mini-game, so that long loading waiting time caused by loading the game resources of the H5 mini-game in real time is avoided, the H5 mini-game can be ensured to actually realize an application effect of "instant use" and user experience is improved.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1. A page access method, implemented by a client, comprises the following steps:
when receiving page access operation on a target page, detecting whether a webpage application entry exists in the target page;
when the target page is detected to have the webpage application entrance, acquiring application resources of the target webpage application corresponding to the webpage application entrance and storing the application resources in the local;
and when receiving the trigger operation of the target webpage application, reading the locally stored application resource of the target webpage application to operate the target webpage application.
2. The method of claim 1, wherein the detecting whether a web application portal exists in the target page comprises:
detecting whether an application resource address notification of the target page is received;
wherein, the application resource notification at least includes the resource loading address information; the resource loading address information comprises a network address of an application resource for loading a corresponding webpage application;
when the application resource notification is received, determining that a webpage application entrance exists in the target page; and when the application resource notification is not received, determining that no webpage application entrance exists in the target page.
3. The method of claim 1, wherein the detecting whether a web application portal exists in the target page comprises:
detecting whether resource loading address information exists in the target page or not;
the resource loading address information comprises a network address of an application resource for loading a corresponding webpage application;
when determining that the resource loading address information exists in the target page, determining that a webpage application entry exists in the target page; and when determining that the resource loading address information does not exist in the target page, determining that a webpage application entrance does not exist in the target page.
4. The method of claim 1, wherein the step of obtaining application resources of a target web application corresponding to the web application portal comprises:
acquiring resource loading address information corresponding to the webpage application entry;
and loading the application resources of the target webpage application according to the resource loading address information.
5. The method of claim 4, wherein,
the resource loading address information comprises the downloading address information of a static resource packet of the target webpage application, and the static resource packet of the target webpage application is generated after a server acquires application resources of the target webpage application in advance;
the step of loading the application resource of the target webpage application according to the resource loading address information comprises the following steps:
and downloading the static resource package of the target webpage application from the server according to the resource loading address information so as to obtain the application resource of the target webpage application included in the static resource of the target webpage application.
6. The method of claim 1, wherein the step of reading locally stored application resources of the target web application to run the target web application when receiving a trigger operation on the target web application comprises:
when receiving the triggering operation of the target webpage application, intercepting a resource loading request of the target webpage application triggered by the triggering operation of the target webpage application;
replacing the resource loading address information in the resource loading request of the target webpage application with a local storage address for storing the application resource of the target webpage application;
and responding to the resource loading request of the target webpage application, and reading the locally stored application resource of the target webpage application according to the local storage address so as to run the target webpage application.
7. A page access method, implemented by a server, comprises the following steps:
generating a corresponding static resource package according to the acquired application resources of the webpage application;
and releasing the downloading address information of the static resource package of the webpage application so that when a webpage application entrance exists in a target page accessed by a user, a client downloads the static resource package according to the downloading address information of the static resource package of the target webpage application corresponding to the webpage application entrance to acquire the application resource of the target application.
8. A client, comprising:
a display device;
a memory for storing executable instructions;
a processor for operating the client to execute the page access method according to any one of claims 1 to 6 under the control of the executable instructions.
9. A server, comprising:
a memory for storing executable instructions;
a processor for operating the server to perform the page access method of claim 7 under the control of the executable instructions.
10. A page access system, comprising:
the client of claim 8;
and a server as claimed in claim 9.
CN201810814496.4A 2018-07-23 2018-07-23 Page access method, client, server and system Pending CN110825990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810814496.4A CN110825990A (en) 2018-07-23 2018-07-23 Page access method, client, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810814496.4A CN110825990A (en) 2018-07-23 2018-07-23 Page access method, client, server and system

Publications (1)

Publication Number Publication Date
CN110825990A true CN110825990A (en) 2020-02-21

Family

ID=69533690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810814496.4A Pending CN110825990A (en) 2018-07-23 2018-07-23 Page access method, client, server and system

Country Status (1)

Country Link
CN (1) CN110825990A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111859223A (en) * 2020-07-30 2020-10-30 中国民航信息网络股份有限公司 Webpage data calling method and device based on mobile middle station and storage medium
CN111930440A (en) * 2020-08-10 2020-11-13 湖南快乐阳光互动娱乐传媒有限公司 Method for awakening installation-free application, related device and computer storage medium
CN113391930A (en) * 2020-03-12 2021-09-14 北京同邦卓益科技有限公司 Application loading method and device, electronic equipment and readable storage medium
CN113553058A (en) * 2021-07-23 2021-10-26 深圳万顺叫车云信息技术有限公司 Front-end page access method and system and electronic equipment
CN113656739A (en) * 2021-09-03 2021-11-16 中国联合网络通信集团有限公司 Website data storage method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198741A1 (en) * 2006-02-21 2007-08-23 Instant Access Technologies Limited Accessing information
CN101924792A (en) * 2010-08-17 2010-12-22 优视科技有限公司 Method and device for loading Flash on page through mobile terminal
CN107301182A (en) * 2016-04-15 2017-10-27 北京京东尚科信息技术有限公司 A kind of method and apparatus for the webpage for showing embedded picture
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN107943825A (en) * 2017-10-19 2018-04-20 阿里巴巴集团控股有限公司 Data processing method, device and the electronic equipment of page access
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198741A1 (en) * 2006-02-21 2007-08-23 Instant Access Technologies Limited Accessing information
CN101924792A (en) * 2010-08-17 2010-12-22 优视科技有限公司 Method and device for loading Flash on page through mobile terminal
CN107301182A (en) * 2016-04-15 2017-10-27 北京京东尚科信息技术有限公司 A kind of method and apparatus for the webpage for showing embedded picture
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN107943825A (en) * 2017-10-19 2018-04-20 阿里巴巴集团控股有限公司 Data processing method, device and the electronic equipment of page access
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391930A (en) * 2020-03-12 2021-09-14 北京同邦卓益科技有限公司 Application loading method and device, electronic equipment and readable storage medium
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111666585B (en) * 2020-04-16 2023-08-18 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111859223A (en) * 2020-07-30 2020-10-30 中国民航信息网络股份有限公司 Webpage data calling method and device based on mobile middle station and storage medium
CN111930440A (en) * 2020-08-10 2020-11-13 湖南快乐阳光互动娱乐传媒有限公司 Method for awakening installation-free application, related device and computer storage medium
CN113553058A (en) * 2021-07-23 2021-10-26 深圳万顺叫车云信息技术有限公司 Front-end page access method and system and electronic equipment
CN113656739A (en) * 2021-09-03 2021-11-16 中国联合网络通信集团有限公司 Website data storage method and device

Similar Documents

Publication Publication Date Title
CN110825990A (en) Page access method, client, server and system
US10880227B2 (en) Apparatus, hybrid apparatus, and method for network resource access
US9565265B2 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
TWI671677B (en) Interactive processing method and device
US9311283B2 (en) System for clipping webpages by traversing a dom, and highlighting a minimum number of words
CN107979632B (en) Processing method, device and system for push information
CN106911693B (en) Method and device for detecting hijacking of webpage content and terminal equipment
CN107679113B (en) Light application acquisition method and device and electronic device
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
WO2014204877A1 (en) Capturing website content through capture services
EP2840802A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
CN107122172B (en) Light application processing method, light application running method, light application equipment and light application equipment
WO2014176906A1 (en) Online video playing method and apparatus and computer readable medium
WO2020048189A1 (en) Image generation
CN102799372A (en) Uploading method and uploading device for pictorial information
US20170017380A1 (en) Mobile enabling a web application developed without mobile rendering capabilities
CN110928571A (en) Business program development method and device
US9342386B1 (en) Messaging channel for web pages, extensions, and applications to communicate
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
CN107918552B (en) Light application calling method and device, client device and electronic equipment
CN111506848A (en) Webpage processing method, device, equipment and readable storage medium
CN112565472B (en) Static resource processing method and device
US20140101284A1 (en) System and method for customization of web content
US20130111433A1 (en) Method and apparatus for generating application programs

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
TA01 Transfer of patent application right

Effective date of registration: 20200601

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100083, Beijing, Haidian District, Cheng Fu Road, No. 28, A building, block 12

Applicant before: UC MOBILE Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221

RJ01 Rejection of invention patent application after publication