CN107491320B - Loading method and device based on mixed-mode mobile application - Google Patents

Loading method and device based on mixed-mode mobile application Download PDF

Info

Publication number
CN107491320B
CN107491320B CN201710496402.9A CN201710496402A CN107491320B CN 107491320 B CN107491320 B CN 107491320B CN 201710496402 A CN201710496402 A CN 201710496402A CN 107491320 B CN107491320 B CN 107491320B
Authority
CN
China
Prior art keywords
data
application
cache
loading request
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.)
Active
Application number
CN201710496402.9A
Other languages
Chinese (zh)
Other versions
CN107491320A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201710496402.9A priority Critical patent/CN107491320B/en
Publication of CN107491320A publication Critical patent/CN107491320A/en
Application granted granted Critical
Publication of CN107491320B publication Critical patent/CN107491320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a loading method and a device based on mixed-mode mobile application, wherein the method comprises the following steps: when a first application is detected to send a page loading request to a server, intercepting the page loading request comprising a URL, judging whether the page loading request accords with a preset caching rule, if so, judging whether the version number of data of the page loading request is consistent with the version of data stored in a caching position corresponding to the first application and preset in a local cache; if the data is consistent with the data, the data corresponding to the page loading request is directly obtained from the cache position corresponding to the first application in the local cache, and the page is loaded according to the data without loading the data from a network server, so that the loading speed and the fluency of the page are improved, the flow is saved, and the user experience is improved.

Description

Loading method and device based on mixed-mode mobile application
Technical Field
The invention relates to the technical field of computers, in particular to a loading method and a loading device based on mixed-mode mobile application.
Background
In recent years, with the diversification of the types of mobile device type operating systems and the increase of user demands, in a plurality of schemes for developing apps, a mixed-mode mobile application (Hybrid App) has the advantages of both 'Native App good user interaction experience' and 'Web App cross-platform development'. Most Web pages in the Hybrid App do not need to be updated in real time and are limited by the network speed, and the data interaction with the server is required to be less, so that the user experience is better. Therefore, a cache mechanism is needed, which not only can greatly relieve the pressure of data interaction.
At present, when a Web page loads a certain URL by using a system control self-contained cache mechanism in a Hybrid App, network data is stored as a temporary cache, and when the control is opened at this time, the same URL is loaded, the temporary cache is used. However, since the cache generated by the Web page using the system control self-contained cache mechanism does not exist on the disk, when the Webview is released, the cache is also released, and therefore, the network request needs to be sent again when the page is loaded next time, which causes waste of traffic and is not beneficial to quick loading of the page.
Disclosure of Invention
The invention provides a loading method and a loading device based on mixed-mode mobile application, which are used for solving the problems that when Webview is released, cache is also released, and therefore a network request needs to be sent again when a page is loaded next time, so that traffic is wasted, and quick loading of the page is not facilitated.
The invention provides a loading method based on mixed-mode mobile application in a first aspect, which comprises the following steps:
intercepting a page loading request when detecting that a first application sends the page loading request to a server; the page loading request comprises a URL, and the page loading request is used for requesting data corresponding to the URL;
judging whether the page loading request accords with a preset caching rule or not;
if so, judging whether the version number of the data requested by the page loading request is consistent with the version of the data stored in a cache position corresponding to the first application and preset in a local cache;
and if so, directly acquiring data corresponding to the page loading request from a cache position corresponding to the first application in the local cache, and loading the page according to the data.
Optionally, when it is detected that the first application sends the page loading request to the server, before intercepting the page loading request, the method further includes:
and if the first application program is detected to be started, modifying the cache position of the first application into a cache position which is preset in a local cache and corresponds to the first application.
Optionally, the method further includes:
if the version of the data of the page loading request is inconsistent with the version of the data stored in the cache position corresponding to the first application, sending the page loading request to a server;
and receiving data returned by the server, and loading a page according to the data.
Optionally, the method further includes:
and updating the data stored in the cache position corresponding to the first application in the local cache into the data returned by the server.
Optionally, the cache location in the local cache corresponding to the first application further includes: the correspondence of the URL, file name, and version number of each data.
Optionally, the caching rule includes: and a page loading request of a cache version is added behind the URL, or the URL meets the page loading request of the CDN.
The second aspect of the present invention provides a loading apparatus based on mixed-mode mobile application, including:
the first processing module is used for intercepting a page loading request when detecting that the first application sends the page loading request to the server; the page loading request comprises a Uniform Resource Locator (URL), and is used for requesting data corresponding to the URL;
a second processing module to:
judging whether the page loading request accords with a preset caching rule or not;
if so, judging whether the version number of the data requested by the page loading request is consistent with the version of the data stored in a cache position corresponding to the first application and preset in a local cache;
and if so, directly acquiring data corresponding to the page loading request from a cache position corresponding to the first application in the local cache, and loading the page according to the data.
Optionally, the apparatus further comprises: and a third processing module, configured to modify a cache location of the first application to a cache location corresponding to the first application preset in a local cache if it is detected that the first application is started before intercepting the page loading request when the first application is detected to send the page loading request to a server.
Optionally, the apparatus further comprises:
a sending module, configured to send the page loading request to a server if the version of the data of the page loading request is inconsistent with the version of the data stored in the cache location corresponding to the first application;
and the receiving module is used for receiving the data returned by the server and loading the page according to the data.
Optionally, the apparatus further comprises:
and the storage module is used for updating the data stored in the cache position corresponding to the first application in the local cache to the data returned by the server.
According to the loading method and device based on the mixed-mode mobile application, a system of a terminal device collects a page loading request sent by an application program to a server, whether the page loading request accords with a preset caching rule is judged, if yes, whether the version number of data of the page loading request is consistent with the version of data stored in a caching position corresponding to a first application and preset in a local cache is judged, if yes, the data corresponding to the page loading request is directly obtained from the caching position corresponding to the first application in the local cache, and the data is loaded from a network server according to the data loading page, so that the loading speed and the fluency of the page are improved, the flow is saved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a first example of a loading method based on a mixed-mode mobile application according to an embodiment of the present invention;
fig. 2 is a flowchart of a second example of a loading method based on a mixed-mode mobile application according to an embodiment of the present invention;
fig. 3a is a schematic diagram of a cache processing scheme in a loading method based on a mixed-mode mobile application according to an embodiment of the present invention;
fig. 3b is a schematic diagram of a cache processing flow in a loading method based on a mixed-mode mobile application according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first embodiment of a loading device based on mixed-mode mobile application according to the present invention;
fig. 5 is a schematic structural diagram of a second embodiment of a loading device based on mixed-mode mobile application according to the present invention;
fig. 6 is a schematic structural diagram of a third embodiment of a loading device based on mixed-mode mobile application according to the present invention;
fig. 7 is a schematic structural diagram of a fourth embodiment of a loading device based on mixed-mode mobile application according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a first example of a loading method based on a mixed-mode mobile application according to an embodiment of the present invention, as shown in fig. 1, an execution subject of the scheme is a terminal device that can run an application program, such as a mobile phone, a computer, a tablet computer, and the like, and the specific implementation steps of the loading method based on the mixed-mode mobile application are as follows:
step S101, intercepting a page loading request when detecting that a first application sends the page loading request to a server; the page load request includes a Uniform Resource Locator (URL), and the page load request is used to request data corresponding to the URL.
The scheme is applied to the access process of the mixed-mode mobile application, namely Hybrid App, which is an application program (App) between Web App and Native App and has the advantages of good user interaction experience of Native App and cross-platform development of Web App. Native in Hybrid APP provides a container (such as UIWebview), Html & Css & JS is used for service development, and rapid iteration of services is realized through dynamic updating.
In this embodiment, when an application needs to send a page loading request to a server to request data, a terminal device intercepts the page loading request, that is, the page loading request is not sent to the server directly, but the terminal device side intercepts and analyzes the data and then determines whether the data is sent to the server to obtain a page, where the page loading request at least includes a URL, so that the server can locate the data (or resources) that needs to be obtained.
Step S102, judging whether the page loading request accords with a preset caching rule.
In this step, after the terminal device intercepts the page loading request of the application program (i.e., the first application), it needs to determine according to a preset caching rule of the resource, and determine whether the page loading request conforms to the caching rule, so as to determine whether to subsequently obtain the resource directly from the local or from the network.
In a specific implementation, the caching rule includes: the URL is followed by a page loading request of a cache version, or the URL meets the page loading request of the CDN. The meaning of the method is that the page loading request is detected, whether a cache version is added to the URL or not is detected, or the CDN is met, and if any condition is met, the page loading request is considered to meet a cache rule.
Step S103, if yes, determining whether the version number of the data requested by the page loading request is consistent with the version of the data stored in the cache location corresponding to the first application preset in the local cache.
In this step, the terminal device determines that the page loading request to be sent by the first application conforms to the caching rule, and needs to compare the requested data with the data in the caching location corresponding to the first application in the local storage space, and determine whether the version of the data corresponding to the URL is consistent with the version to be requested, and if so, the data can be directly loaded from the local cache without being acquired from the network server, otherwise, the request needs to be made to the server.
If the page loading request does not accord with the preset caching rule, the page loading request is sent to the server according to the current mode, and related data (or resources) are obtained for page loading.
And step S104, if the data are consistent, directly acquiring data corresponding to the page loading request from the cache position corresponding to the first application in the local cache, and loading the page according to the data.
In a specific implementation of the present disclosure, it should be understood that when the terminal device detects that the application program is started, that is, when the first application is just started, the terminal device modifies the cache position of the first application to a cache position preset in the local cache and corresponding to the first application. The current application program is also in a network cache mode, and cache data is cleared when the page exits, so that in order to ensure that the next time the page can be quickly loaded, the requested resources and data need to be locally cached, and therefore when the application program is started, a network cache singleton of a system needs to be replaced by a self-defined system cache class, and a cache position corresponding to the first application needs to be configured.
In the loading method based on the mixed-mode mobile application provided by this embodiment, the system of the terminal device collects the page loading request sent by the application program to the server, determines whether the page loading request conforms to a preset caching rule, if so, determines whether the version number of the page loading request is consistent with the version of the data stored in the cache location corresponding to the first application preset in the local cache, and if so, directly obtains the data corresponding to the page loading request from the cache location corresponding to the first application, and loads the page according to the data without loading the data from the network server, thereby improving the loading speed and fluency of the page, saving traffic, and improving user experience.
Fig. 2 is a flowchart of an example of a second loading method based on a mixed-mode mobile application according to an embodiment of the present invention, and based on the above scheme, after S103, if the version number of the data in the local cache is not consistent with the version number of the data requested by the page load request, the processing is performed in the following manner. Specifically, the method comprises the following steps:
s201: and if the version of the data requested by the page loading request is inconsistent with the version of the data stored in the cache position corresponding to the first application, sending the page loading request to the server.
S202: and receiving data returned by the server, and loading the page according to the data.
In the above scheme, if the terminal device detects that the version of the locally cached data is inconsistent with the version of the data requested by the first application, the data needs to be acquired from the server, at this time, the page loading request is sent to the server, so that the server acquires the corresponding data resource according to the URL included in the page loading request and returns the data resource to the first application, and the page is loaded according to the acquired data after the data is received and displayed to the user.
Further, after the data is obtained again, the data in the local cache needs to be updated, specifically, the data stored in the cache location corresponding to the first application in the local cache is updated to the data returned by the server.
In the cache position corresponding to the first application program in the local cache, at least the corresponding relation among the URL, the corresponding data, the file name and the version number is stored, so that whether the version numbers of the data are consistent or not is conveniently determined in the judging process.
On the basis of any of the above embodiments, the present solution is described in detail below through a specific implementation process. Fig. 3a is a schematic diagram of a cache processing scheme in a loading method based on a mixed-mode mobile application according to an embodiment of the present invention; fig. 3b is a schematic diagram of a cache processing flow in the loading method based on the mixed-mode mobile application according to the embodiment of the present invention.
According to the technical scheme, the terminal device intercepts the network request cache of the system, and completely stores the network request data of the Web page in the Hybrid App to the local disk (namely the local cache), so that a Web carrier cache solution based on the Hybrid App is realized, the problems are solved, off-line browsing is realized, and the usability of the App is greatly improved. The idea of realizing caching is as follows: when App starts, a network cache singleton of a replacement system is a self-defined subclass of a system cache class, namely a self-defined local cache position, and a network request cache is intercepted by a method of returning cache data through a reloading cache class, so that the network request cache is subjected to self-defined local resource cache.
As shown in fig. 3a, the specific implementation steps (taking a 58App iOS client Hybrid cache mechanism as an example):
abstract cache management class
When App starts, a cache list example of a replacement system is a custom cache management class, and the following is specifically realized by taking iOS as an example:
1. custom System caching Single instance NSURLCache subclass
Creating a class inherited to a system cache class NSURLCache (as shown in figure 1), replacing a network cache singleton only by inheriting the functions and methods of the system class, and realizing the self-definition of the cache by reloading a network cache data return method cachedResponseForRequest.
For example: @ interface WBhybrid CacheEngineer, NSURLCache;
2. replacing network request cache list cases with class cases created in 1 when App starts
The network cache singleton needs to be replaced when all network requests are not sent out, so when the best opportunity is the starting of the App, if the replacement opportunity is delayed, the custom cache can be invalidated.
3. Technical implementation of the alternative cache sheet example (taking the iOS technical implementation as an example)
Instantiating a class created in 1 of the user-defined temporary cache size and the disk cache size, and replacing the class with a shared cache of a system, specifically as follows:
Figure BDA0001332686380000071
Figure BDA0001332686380000081
second, intercepting system cache
The method for returning the cache data of the network management class of the heavy-load system realizes the interception of the network request cache, and is specifically realized by taking the iOS as an example as follows:
1. heavy-load cachedResponseForRequest method
The method for reloading the returned cache data in the custom cache singleton is as follows:
@implementation WBHybridCacheEnginer_
(NSURLCacheURLResponse*)cachedResponseForRequest:(NSURLRequest*)Request;
2. intercepting network request cache according to specific rules
In the method of reloading in 1, cache interception is performed, if a network request meeting a specific cache rule returns corresponding cache data (for example, data cache is performed first under the condition of a first request without a built-in cache, and the cache is performed again under the condition of a next request), and if the network request does not meet the specific cache rule, a null is returned to allow the request to return from the network.
Third, cache processing
As shown in fig. 3b, the caching process is performed according to the customized caching rule, and the specific rule and process are as follows:
1. custom rules for walk cache
Not all page loading requests can be intercepted to go through cache, and the cache can be only gone through if the following two rules are met:
the standard approach, by adding a cachevers parameter after the URL, is as follows: http:// xxx/xxx? cachevers xx
Secondly, in the CDN mode, if the URL meets the format of the CDN, the URL will be cached as follows:
http:// xxx/xxx _ v version number xx
2. Cache processing in accordance with cache rules
1) The network request according with the caching rule in the 1 can read the cached data from the local, if the cached data is not stored in the cache disk, the current request goes to the network, and the data is obtained from the server;
2) if the request according with the caching rule in the 1 can read the cached data locally, the version is judged well firstly, if the version numbers are consistent, the cached data are directly returned, if the version numbers are inconsistent, the cached data are stored firstly, and the current request goes to the network to obtain the data from the server.
Wherein: the cache resources are updated through the version numbers, mapping files of various types of caches are created for the updating, and the corresponding relations between the URLs and the file names and the version numbers are stored in the mapping files.
According to the scheme, by intercepting the network cache of the system and replacing the network cache with the custom cache, and by utilizing the mode of storing network data to a disk, a Web carrier cache mechanism based on the Hybrid App is realized, the flow is saved for a user, the fluency of a page is improved, the off-line browsing is realized, and the usability of the App is greatly improved.
Fig. 4 is a schematic structural diagram of a first embodiment of a loading device based on a mixed-mode mobile application according to the present invention, and as shown in fig. 4, the loading device 10 based on a mixed-mode mobile application according to the present embodiment includes:
the first processing module 11 is configured to intercept a page loading request when detecting that a first application sends the page loading request to a server; the page loading request comprises a Uniform Resource Locator (URL), and is used for requesting data corresponding to the URL;
a second processing module 12 configured to:
judging whether the page loading request accords with a preset caching rule or not;
if so, judging whether the version number of the data requested by the page loading request is consistent with the version of the data stored in a cache position corresponding to the first application and preset in a local cache;
and if so, directly acquiring data corresponding to the page loading request from a cache position corresponding to the first application in the local cache, and loading the page according to the data.
The loading device based on the mixed-mode mobile application provided in this embodiment is used to implement the technical solutions provided in any of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar and will not be described herein again.
Fig. 5 is a schematic structural diagram of a second embodiment of a loading device based on a mixed-mode mobile application according to the present invention, and as shown in fig. 5, based on the embodiment shown in fig. 4, the loading device 10 based on a mixed-mode mobile application further includes:
a third processing module 13, configured to modify a cache location of the first application to a cache location corresponding to the first application preset in a local cache if it is detected that the first application is started before intercepting the page loading request when the first application is detected to send the page loading request to a server.
Fig. 6 is a schematic structural diagram of a third embodiment of a loading device based on a mixed-mode mobile application according to the present invention, and as shown in fig. 6, the loading device 10 based on a mixed-mode mobile application further includes:
a sending module 14, configured to send the page loading request to a server if the version of the data of the page loading request is inconsistent with the version of the data stored in the cache location corresponding to the first application;
and the receiving module 15 is configured to receive data returned by the server, and load a page according to the data.
Fig. 7 is a schematic structural diagram of a fourth embodiment of a loading device based on a mixed-mode mobile application according to the embodiment of the present invention, as shown in fig. 7, based on the above scheme, the loading device 10 based on a mixed-mode mobile application further includes:
and the storage module 16 is configured to update the data stored in the cache location corresponding to the first application in the local cache to the data returned by the server.
Optionally, the cache location in the local cache corresponding to the first application further includes: the correspondence of the URL, file name, and version number of each data.
Optionally, the caching rule includes: and a page loading request of a cache version is added behind the URL, or the URL meets the page loading request of the CDN.
The loading apparatus based on mixed-mode mobile application provided in this embodiment is used to execute the technical solution of the terminal device in the method embodiments provided in any of the foregoing embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In a specific implementation of the aforementioned information reminding device, the sending module may be implemented as a sender, the receiver may be implemented as a receiver, the processing module may be implemented as a processor, and a memory for storing program instructions and parameters should be further included in the device.
In any of the above embodiments, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled 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; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A loading method based on mixed mode mobile application is characterized by comprising the following steps:
intercepting a page loading request when detecting that a first application sends the page loading request to a server; the page loading request comprises a Uniform Resource Locator (URL), and is used for requesting data corresponding to the URL;
judging whether the page loading request accords with a preset caching rule or not; the caching rules include: the URL meets a page loading request of the content delivery network CDN;
if so, judging whether the version number of the data requested by the page loading request is consistent with the version of the data stored in a cache position corresponding to the first application and preset in a local cache;
if the local cache is consistent with the first application, directly acquiring data corresponding to the page loading request from a cache position corresponding to the first application in the local cache, and loading the page according to the data;
when it is detected that the first application sends a page loading request to the server and before intercepting the page loading request, the method further includes:
and if the first application program is detected to be started, modifying the cache position of the first application into a cache position which is preset in a local cache and corresponds to the first application.
2. The method of claim 1, further comprising:
if the version of the data of the page loading request is inconsistent with the version of the data stored in the cache position corresponding to the first application, sending the page loading request to a server;
and receiving data returned by the server, and loading a page according to the data.
3. The method of claim 2, further comprising:
and updating the data stored in the cache position corresponding to the first application in the local cache into the data returned by the server.
4. The method of claim 1, wherein the cache location in the local cache corresponding to the first application further comprises: the correspondence of the URL, file name, and version number of each data.
5. A loading device based on mixed mode mobile application, comprising:
the first processing module is used for intercepting a page loading request when detecting that the first application sends the page loading request to the server; the page loading request comprises a Uniform Resource Locator (URL), and is used for requesting data corresponding to the URL;
a second processing module to:
judging whether the page loading request accords with a preset caching rule or not; the caching rules include: the URL meets a page loading request of the content delivery network CDN;
if so, judging whether the version number of the data requested by the page loading request is consistent with the version of the data stored in a cache position corresponding to the first application and preset in a local cache;
if the local cache is consistent with the first application, directly acquiring data corresponding to the page loading request from a cache position corresponding to the first application in the local cache, and loading the page according to the data;
the device further comprises: and a third processing module, configured to modify a cache location of the first application to a cache location corresponding to the first application preset in a local cache if it is detected that the first application is started before intercepting the page loading request when the first application is detected to send the page loading request to a server.
6. The apparatus of claim 5, further comprising:
a sending module, configured to send the page loading request to a server if the version of the data of the page loading request is inconsistent with the version of the data stored in the cache location corresponding to the first application;
and the receiving module is used for receiving the data returned by the server and loading the page according to the data.
7. The apparatus of claim 6, further comprising:
and the storage module is used for updating the data stored in the cache position corresponding to the first application in the local cache to the data returned by the server.
CN201710496402.9A 2017-06-26 2017-06-26 Loading method and device based on mixed-mode mobile application Active CN107491320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710496402.9A CN107491320B (en) 2017-06-26 2017-06-26 Loading method and device based on mixed-mode mobile application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710496402.9A CN107491320B (en) 2017-06-26 2017-06-26 Loading method and device based on mixed-mode mobile application

Publications (2)

Publication Number Publication Date
CN107491320A CN107491320A (en) 2017-12-19
CN107491320B true CN107491320B (en) 2021-11-09

Family

ID=60643744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710496402.9A Active CN107491320B (en) 2017-06-26 2017-06-26 Loading method and device based on mixed-mode mobile application

Country Status (1)

Country Link
CN (1) CN107491320B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664554A (en) * 2018-04-03 2018-10-16 微梦创科网络科技(中国)有限公司 The method and device of webpage view is loaded in a kind of application program
CN108845816B (en) * 2018-06-22 2021-09-10 平安科技(深圳)有限公司 Application program updating method, system, computer device and storage medium
CN110209973B (en) * 2019-05-24 2021-03-19 厦门美柚股份有限公司 Webpage game loading method and device
CN110300163B (en) * 2019-06-25 2022-04-22 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for acquiring network data
CN110377360A (en) * 2019-07-12 2019-10-25 深圳市酷开网络科技有限公司 Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN110727890A (en) * 2019-08-22 2020-01-24 中国平安财产保险股份有限公司 Page loading method and device, computer equipment and storage medium
CN110955856B (en) * 2019-10-14 2023-01-10 北京奇艺世纪科技有限公司 Webpage loading method and device, server and storage medium
CN110806856A (en) * 2019-10-30 2020-02-18 亚信科技(中国)有限公司 Data loading method and device and electronic equipment
CN111666517A (en) * 2020-05-07 2020-09-15 曙光信息产业股份有限公司 Webpage access method and device and computer equipment
CN112015450B (en) * 2020-08-25 2024-01-19 深圳Tcl新技术有限公司 Method, device and storage medium for loading intelligent device control page
CN112597423B (en) * 2021-01-04 2023-11-03 聚好看科技股份有限公司 Webpage content display method, terminal and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142965A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Social application based webpage browsing method and device as well as terminal device
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN105847430A (en) * 2016-05-20 2016-08-10 北京小米移动软件有限公司 Hybrid application page data access method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281029C (en) * 2004-05-21 2006-10-18 中国科学院计算技术研究所 Network agent buffer substitution by using access characteristics of network users
CN102375882B (en) * 2011-09-19 2014-10-15 奇智软件(北京)有限公司 Method, device and browser for rapidly accessing webpage
US8887182B2 (en) * 2012-10-16 2014-11-11 Yahoo! Inc. Hybrid applications
CN106201736A (en) * 2016-06-23 2016-12-07 珠海市魅族科技有限公司 Pre-cache method and device thereof
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN104142965A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Social application based webpage browsing method and device as well as terminal device
CN105847430A (en) * 2016-05-20 2016-08-10 北京小米移动软件有限公司 Hybrid application page data access method and device

Also Published As

Publication number Publication date
CN107491320A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN107491320B (en) Loading method and device based on mixed-mode mobile application
KR102008355B1 (en) Method and device for displaying content on same screen, and terminal device
EP2919440B1 (en) Advertisement processing method and device
US9253278B2 (en) Using entity tags (ETags) in a hierarchical HTTP proxy cache to reduce network traffic
US10489476B2 (en) Methods and devices for preloading webpages
WO2015074467A1 (en) Data update method, apparatus, and system and storage medium
WO2015161658A1 (en) Webpage resource loading method and device
CN107547629B (en) Method and device for downloading client static resources, electronic equipment and readable medium
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
CN110968331B (en) Method and device for running application program
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
CN106776917B (en) Method and device for acquiring resource file
CN111294372A (en) Method, device and system for realizing cache in proxy server
CN106354792B (en) Webpage display method and device
CN111107118B (en) Picture access acceleration method, device, equipment, system and storage medium
CN114077483A (en) Data resource scheduling method, server, system and storage medium
CN108959393B (en) Dynamic picture processing method, device and storage medium
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN114553786A (en) Network request fusing method and device, computer equipment and storage medium
CN111475761B (en) Client, server and content sharing control method
CN110807040B (en) Method, device, equipment and storage medium for managing data
CN112084445B (en) Information processing system, method, apparatus, and storage medium
CN113792234A (en) Page request processing method and device, electronic equipment and storage medium
CN115842641A (en) Access request processing method, electronic device, and medium
CN108897639B (en) File processing 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