CN110020326A - A method of promoting Webview opening speed - Google Patents
A method of promoting Webview opening speed Download PDFInfo
- Publication number
- CN110020326A CN110020326A CN201811041457.1A CN201811041457A CN110020326A CN 110020326 A CN110020326 A CN 110020326A CN 201811041457 A CN201811041457 A CN 201811041457A CN 110020326 A CN110020326 A CN 110020326A
- Authority
- CN
- China
- Prior art keywords
- webview
- webpage
- caching
- page
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
Abstract
The invention discloses a kind of methods for promoting Webview opening speed.Utilize the characteristic of Webview caching system, before entering webpage, when resting on native page stage, establish the sightless Webview of user, these static resources can be put into the caching system of itself by static resource required for pre-loaded part or all of web page, Webview;In user in operation below, load webpage when, Webview will search resource required for webpage from caching, if finding directly in response to.The method of the present invention utilizes the caching technology of Webview itself, inexpensive realization page open speed speed-raising.
Description
Technical field
The present invention relates to wireless technical field, especially a kind of method for promoting Webview opening speed.
Background technique
Major part mobile terminal is using hybrid framework, namely by primary APP technology and WEB technology using (APP) at present
It collectively constitutes.Partial page is write using primary code and (such as in apple system, uses object C language or Swift language
Speech is write, and on Android system, is write using java language or kotlin language), partial page is compiled by HTML, CSS and JS
It writes, is loaded by Webview container.This hybrid framework is often the first screen load native page, subsequent to reload WEB pages
Face.When loading WEB page, there is more application to select the scheme of the online WEB page of load.
When loading network static resource required for online WEB page, need to establish network connection, the server from distal end
Resource needed for downloading.Due to the problems such as network delay is high, wireless network is unstable and server low-response, APP loads online WEB
When the page, speed is often slow, and user can be allowed to wait the more long time that could show page-out completely.
In order to solve this problem, industry generally has these types of scheme:
1. load distal end WEB page, multiple download thread/processes are opened using primary development technique, WEB is downloaded in help
Resource needed for the page.
Advantage: it helps Webview to download file by native code, breaks through Webview itself parallel downloading number of resources
The limitation of amount.
Disadvantage:
A. native is needed to write code, the cache management system of adapter tube Webview, so that the resource of downloading be given
Webview is used.
Even b. multiple thread/processes are downloaded simultaneously, also need, wireless network high in face of network delay it is unstable and
The problems such as server low-response.
2. static resource needed for the page by distal end is issued in user mobile phone, in advance in user by means such as push
When opening the Webview page, actual use is the local page downloaded.
Advantage: when opening web page, network download resource completion is withouted waiting for, is loaded directly into and had downloaded in the past
Local page.
Disadvantage:
A. native is needed to write code, the cache management system of adapter tube Webview, so that network request is switched to local
Resource request uses.
B. server-side needs to establish file push mechanism, and the side native needs to establish file reception mechanism.
Webview itself is (such as Fig. 1) with caching system, its principle: the static resource loaded, default can cache
Get up, during the network resource request in later period, if it find that it is buffered before this document, then made with the cache file
It is responded for network request result, eliminates network request process.
Summary of the invention
The purpose of the present invention is to provide a kind of methods for promoting Webview opening speed, solve the technology of the prior art
Problem, using the caching technology of Webview itself, inexpensive realization page open speed speed-raising.
In order to solve the above technical problems, the present invention adopts the following technical scheme:
A method of promoting Webview opening speed, it is characterised in that:
Using the characteristic of Webview caching system, before entering webpage, when resting on native page stage, build
Stand a sightless Webview of user, static resource required for pre-loaded part or all of web page, Webview meeting
These static resources are put into the caching system of itself;
In user in operation below, when loading webpage, Webview will be to resource required for webpage from caching
Search, if finding directly in response to.
By the above method, the present invention has the advantage that the present invention utilizes the caching technology of Webview itself, with compared with
Low cost promotes webpage loading velocity to realize.
Detailed description of the invention
Fig. 1 is Webview load networks resource schematic diagram.
Fig. 2 is the method for the present invention schematic diagram.
Specific embodiment
Referring to Fig. 2, the invention discloses a kind of methods for promoting Webview opening speed.
This method rests on native page stage before entering webpage using the characteristic of Webview caching system
When, establish the sightless Webview of user, static resource required for pre-loaded part or all of web page,
These static resources can be put into the caching system of itself by Webview.
In user in operation below, when loading webpage, Webview will be to resource required for webpage from caching
Search, if finding directly in response to.These resources from network there is no need to download immediately, when reducing user's waiting
Between.
Before hybrid application in part enters webpage, the native page, such as the sub- list of application of native can be rested on
Page or guide page etc..This method is to establish a hiding Webview (such as width 0px high 0px in this native page
Webview), the subsequent all or part of resource to be requested is preloaded.The carrier of preloading can be one html pages
Face, the resources such as the picture that needs are preloaded, JS, CSS file are loaded in such a way that html is quoted.
When it is subsequent enter web page when, normal load.Webview can utilize the caching mechanism of itself, to caching
In already present resource directly as network request result respond, no longer re-request.
The above description of this invention and application be it is illustrative, be not wishing to limit the scope of the invention to above-mentioned implementation
In example;Without departing from the scope and spirit of the present invention, can to embodiments disclosed herein carry out it is other deformation and
Change.
Claims (1)
1. a kind of method for promoting Webview opening speed, it is characterised in that:
Using the characteristic of Webview caching system, before entering webpage, when resting on native page stage, one is established
A sightless Webview of user, static resource required for pre-loaded part or all of web page, Webview can be by this
A little static resources are put into the caching system of itself;
In user in operation below, when loading webpage, Webview will look into resource required for webpage from caching
Look for, if finding directly in response to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811041457.1A CN110020326A (en) | 2018-09-07 | 2018-09-07 | A method of promoting Webview opening speed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811041457.1A CN110020326A (en) | 2018-09-07 | 2018-09-07 | A method of promoting Webview opening speed |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110020326A true CN110020326A (en) | 2019-07-16 |
Family
ID=67188454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811041457.1A Pending CN110020326A (en) | 2018-09-07 | 2018-09-07 | A method of promoting Webview opening speed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110020326A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112084442A (en) * | 2020-08-04 | 2020-12-15 | 北京三快在线科技有限公司 | Page loading method and device, electronic equipment and storage medium |
CN112163173A (en) * | 2020-09-22 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Webpage loading method and device, electronic equipment and computer readable storage medium |
CN112637074A (en) * | 2019-10-08 | 2021-04-09 | 中国移动通信集团浙江有限公司 | Web static resource coordination method, device and distribution system |
CN113282363A (en) * | 2021-05-26 | 2021-08-20 | 金蝶蝶金云计算有限公司 | Method and device for optimizing hybrid APP |
CN114428922A (en) * | 2022-01-24 | 2022-05-03 | 中国工商银行股份有限公司 | Page loading method and device, terminal equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170147414A1 (en) * | 2015-11-25 | 2017-05-25 | Canon Kabushiki Kaisha | Information processing apparatus and method of controlling information processing apparatus |
CN106933865A (en) * | 2015-12-31 | 2017-07-07 | 北京五八信息技术有限公司 | The resource loading method and device of mobile applications web application |
CN107122192A (en) * | 2017-04-27 | 2017-09-01 | 北京三快在线科技有限公司 | Webpage view methods of exhibiting, device, computing device and storage medium |
-
2018
- 2018-09-07 CN CN201811041457.1A patent/CN110020326A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170147414A1 (en) * | 2015-11-25 | 2017-05-25 | Canon Kabushiki Kaisha | Information processing apparatus and method of controlling information processing apparatus |
CN106933865A (en) * | 2015-12-31 | 2017-07-07 | 北京五八信息技术有限公司 | The resource loading method and device of mobile applications web application |
CN107122192A (en) * | 2017-04-27 | 2017-09-01 | 北京三快在线科技有限公司 | Webpage view methods of exhibiting, device, computing device and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112637074A (en) * | 2019-10-08 | 2021-04-09 | 中国移动通信集团浙江有限公司 | Web static resource coordination method, device and distribution system |
CN112637074B (en) * | 2019-10-08 | 2023-04-28 | 中国移动通信集团浙江有限公司 | Web static resource coordination method, device and distribution system |
CN112084442A (en) * | 2020-08-04 | 2020-12-15 | 北京三快在线科技有限公司 | Page loading method and device, electronic equipment and storage medium |
CN112163173A (en) * | 2020-09-22 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Webpage loading method and device, electronic equipment and computer readable storage medium |
CN112163173B (en) * | 2020-09-22 | 2024-05-03 | Oppo(重庆)智能科技有限公司 | Webpage loading method, webpage loading device, electronic equipment and computer readable storage medium |
CN113282363A (en) * | 2021-05-26 | 2021-08-20 | 金蝶蝶金云计算有限公司 | Method and device for optimizing hybrid APP |
CN114428922A (en) * | 2022-01-24 | 2022-05-03 | 中国工商银行股份有限公司 | Page loading method and device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110020326A (en) | A method of promoting Webview opening speed | |
CN104573025B (en) | A kind of method and system improving page loading velocity | |
CN110020278B (en) | Page data display and provision method, client and server | |
JP2019032883A (en) | Method, apparatus, server and system for implementing web application | |
CN105095280B (en) | Browser caching method and device | |
CN102438045B (en) | Method and system for pre-fetching web page, and method for accessing web page | |
US7996757B2 (en) | Low-latency, incremental rendering in a content framework | |
US20150301873A1 (en) | Method and system for expanding webapp application function | |
CN106776761B (en) | Method and device for rendering webpage by mobile browser | |
US10798194B2 (en) | Webpage pushing method, client, server, and system | |
CN111367596B (en) | Method and device for realizing business data processing and client | |
CN107402938B (en) | Page display method and device and client equipment | |
CN105677327A (en) | Page information preloading method and system | |
US20180225269A1 (en) | Client-side aggregation of web content | |
US9557908B1 (en) | Methods and systems for rendering in a multi-process browser using a shared memory area | |
CN102087664A (en) | Optimizing method of mobile terminal access network, system and mobile terminal | |
CN102298599A (en) | Method and system for browsing web pages in offline state | |
US20160196246A1 (en) | Presenting web resource to user in browser | |
CN110321510A (en) | Page rendering method and system | |
CN112926002A (en) | Service request processing method and device | |
CN113569173A (en) | Page loading method and device, storage medium and electronic equipment | |
CN111338928A (en) | Chrome-based browser testing method and device | |
CN102456041A (en) | Webpage language switching method and device as well as network application system | |
CN106777055B (en) | Method and device for realizing website interfacing rendering | |
CN114996606A (en) | Picture loading method, device and equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190716 |
|
RJ01 | Rejection of invention patent application after publication |