Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for realizing offline application

An offline, application technology, applied in the computer field, can solve the problems of weak network cache capacity, unable to cache application data, unable to provide offline services, etc., to achieve the effect of smooth offline services

Active Publication Date: 2019-01-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method and device for realizing offline applications, aiming at solving the problem of limited cache capacity in the prior art when the network is weak or the network is interrupted, and it is impossible to cache more application data, so that continuous offline application data cannot be provided. service problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for realizing offline application
  • A method and device for realizing offline application
  • A method and device for realizing offline application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flowchart of the implementation of the method for realizing offline application provided by Embodiment 1 of the present invention, and is described in detail as follows:

[0026] In S101, when the browser is offline, send an Ajax request to the Ajax cache according to the HTML5 application access request;

[0027] In S102, obtain the data required to run the HTML5 application returned by the Ajax cache according to the Ajax request;

[0028] In this embodiment, the data corresponding to the HTML5 application program stored in the local Ajax cache may adopt the following method: when the browser is in an online state, pre-read the data required to run the HTML5 application program from the WEB server through the js program , and store the data through Ajax cache, that is, according to the HTML5 application program currently used by the user, the js program judges the data needed to run the HTML5 application program, and according to the judgment result,...

Embodiment 2

[0049] Figure 4 It shows the structural diagram of the device for realizing offline application provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. The device can be a software unit, hardware unit built in the mobile terminal unit or a combination of soft and hard units.

[0050] The devices include:

[0051] The sending unit 41 is used to send the Ajax request to the Ajax cache according to the HTML5 application access request when the browser is offline;

[0052] An acquisition unit 42, configured to acquire the data required for running the HTML5 application returned by the Ajax cache according to the Ajax request;

[0053] The running unit 43 is configured to run the HTML5 application program according to the data required for running the HTML5 application program.

[0054] Optionally, the device also includes:

[0055] The pre-reading unit 44 is configured ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present disclosure relates to a field of computer technology. It provides a method for implementing off-line application and an apparatus therefor. The method comprises: sending, when a browser is in an off-line status, an Ajax request to a browser buffer according to an HTML5 application access request; obtaining data required for running the HTML application, returned from the browser buffer in response to the Ajax request; running the HTML5 application according to the data required for running the HTML5 application. In the present disclosure, the HTML5 off-line application is combined with the browser buffer, so the buffering space of the off-line application is infinite, more application data may be buffered, thus providing a more smooth off-line service.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and device for realizing off-line applications. Background technique [0002] With the increasing popularity of mobile terminals and the continuous development of HTML5 technology, browsing the Internet through mobile terminals has become more convenient. Therefore, the frequency of use of mobile terminals is also increasing, but the current mobile network itself still cannot meet the needs of users at any time. Especially in mobile scenarios, when a mobile terminal encounters a weak network or a network terminal, the network will not be able to provide users with complete services or be unusable, resulting in cut-off and unsmooth user experience. [0003] The existing technical solutions deal with the above-mentioned weak network or network interruption situation by pre-caching the data of the application program that needs to be accessed. When the network...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46
CPCG06F16/9574
Inventor 龙海建
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products