[go: up one dir, main page]

CN110287433A - Network information processing method and device and electronic equipment - Google Patents

Network information processing method and device and electronic equipment Download PDF

Info

Publication number
CN110287433A
CN110287433A CN201910578594.7A CN201910578594A CN110287433A CN 110287433 A CN110287433 A CN 110287433A CN 201910578594 A CN201910578594 A CN 201910578594A CN 110287433 A CN110287433 A CN 110287433A
Authority
CN
China
Prior art keywords
resource
browser
target pages
page
dynamic
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
CN201910578594.7A
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910578594.7A priority Critical patent/CN110287433A/en
Publication of CN110287433A publication Critical patent/CN110287433A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

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

Abstract

The invention provides a network information processing method, a device and electronic equipment, wherein the method is executed by a browser and comprises the following steps: when the browser needs to display a target page, acquiring page resources of the target page from a server; the page resources comprise static resources and dynamic resources, the dynamic resources of the target page are stored in a local data cache space of the browser, the static resources of the target page are stored by an offline cache tool of the browser, so that when the target page needs to be displayed subsequently by the browser, the target page is displayed according to the stored dynamic resources and the stored static resources, the dynamic resources are stored in the local data cache space of the browser and the static resources are stored by the offline cache tool, cache of all resources required by page loading is realized, normal display of the target page can be realized when a network environment is poor, user experience is improved, and the technical problem that the page loading is slow or the page loading cannot be loaded when the network environment is poor in the prior art is solved.

Description

Web information processing method, device and electronic equipment
Technical field
The present invention relates to intelligent terminal technical fields more particularly to a kind of web information processing method, device and electronics to set It is standby.
Background technique
With the development of science and technology intelligent terminal is more more and more universal, can be embedded on the browser client of intelligent terminal super The loose-leaf of text mark up language (HyperTextMarkup Language, HTML5), client open a page every time Access server is required to obtain, it is larger to the degree of dependence of network, when network environment is bad or suspension, it will lead to the page Successful problem can not be loaded by loading the slower or page, so that user's waiting time is longer, user experience is very poor.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of web information processing method, pass through the local of browser Data buffer storage space stores dynamic resource and offline cache tool stores static resource, realizes that the page loads required all resources Caching, realize network environment it is poor even without network in the case where, the normal exhibition of target pages also may be implemented Show, reduces the waiting time of user, improve user experience.
Second object of the present invention is to propose a kind of network information processing device.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of web information processing method, method is by clear Device of looking at executes, comprising:
When the browser needs to show target pages, the page resource of the target pages is obtained from server;Its In, the page resource includes static resource and dynamic resource;
The dynamic resource that the target pages are stored using the local data cache space of the browser, using described clear Look at the offline cache tool of device, store the static resource of the target pages, show so as to the subsequent needs of the browser described in When target pages, it is shown according to the dynamic resource of storage and static resource.
Optionally, as the first possible implementation of first aspect, the local number using the browser The dynamic resource of the target pages is stored according to spatial cache, comprising:
If the local data cache space has been stored with the dynamic resource, the local data cache space has been deposited The dynamic resource of storage replaces with the dynamic resource got from the server;
If the not stored dynamic that has the dynamic resource, will be got from the server in local data cache space Resource is stored to the local data cache space.
Optionally, as second of possible implementation of first aspect, the static resource includes web page files;Institute The offline cache tool using the browser is stated, after the static resource for storing the target pages, further includes:
Packing processing is carried out to the static resource using strapping tool.
Optionally, described to use strapping tool to the static state as the third possible implementation of first aspect Resource carries out packing processing, comprising:
Compression or encryption are carried out using the plug-in unit of the strapping tool is corresponding to each web page files respectively;
Treated each web page files are packaged as to the file of static resource using the strapping tool;Wherein, described quiet The file of state resource when being used for the subsequent displaying target pages, is loaded using node serve in browser rear end.
Optionally, as the 4th kind of possible implementation of first aspect, the local number using the browser The dynamic resource that the target pages are stored according to spatial cache stores the mesh using the offline cache tool of the browser After the static resource for marking the page, further includes:
When the browser is subsequent to be needed to show the target pages, determine network with the presence or absence of abnormal;
It is abnormal if it exists, it is shown according to the dynamic resource of storage and static resource.
Optionally, as the 5th kind of possible implementation of first aspect, the determining network is with the presence or absence of exception Afterwards, further includes:
If there is no exception, server is accessed to obtain the page resource of the target pages.
Optionally, described abnormal if it exists as the 6th kind of possible implementation of first aspect, according to the dynamic of storage State resource and static resource are shown, comprising:
Abnormal if it exists, the dynamic resource and the static resource of load store simultaneously carry out rendering displaying;
When the abnormal releasing, when getting the page resource of the target pages from the server, by the institute of storage Dynamic resource and the static resource are stated, respectively compared with this page resource got from server, obtains difference section;
The difference section is rendered and updates the target pages having shown that.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of network information processing device, device setting Inside browser, described device, comprising:
Module is obtained, for obtaining the page of the target pages from server when browser needs to show target pages Face resource;Wherein, the page resource includes static resource and dynamic resource;
Memory module stores the dynamic money of the target pages for the local data cache space using the browser Source stores the static resource of the target pages using the offline cache tool of the browser, so that the browser is subsequent When needing to show the target pages, it is shown according to the dynamic resource of storage and static resource.
Optionally, as the first possible implementation of second aspect, the memory module is specifically used for:
If the local data cache space has been stored with the dynamic resource, the local data cache space has been deposited The dynamic resource of storage replaces with the dynamic resource got from the server;
If the not stored dynamic that has the dynamic resource, will be got from the server in local data cache space Resource is stored to the local data cache space.
Optionally, as second of possible implementation of second aspect, the static resource includes web page files;Institute State device, further includes:
Packetization module, for carrying out packing processing to the static resource using strapping tool.
Optionally, as the third possible implementation of second aspect, the packetization module is specifically used for:
Compression or encryption are carried out using the plug-in unit of the strapping tool is corresponding to each web page files respectively;
Treated each web page files are packaged as to the file of static resource using the strapping tool;Wherein, described quiet The file of state resource when being used for the subsequent displaying target pages, is loaded using node serve in browser rear end.
Optionally, as the 4th kind of possible implementation of second aspect, described device, further includes:
Processing module, for when the browser is subsequent need to show the target pages when, determine that network whether there is It is abnormal;It is abnormal if it exists, it is shown according to the dynamic resource of storage and static resource.
Optionally, as the 5th kind of possible implementation of second aspect, the processing module is also used to:
If there is no exception, server is accessed to obtain the page resource of the target pages.
Optionally, as the 6th kind of possible implementation of second aspect, the processing module is specifically used for:
Abnormal if it exists, the dynamic resource and the static resource of load store simultaneously carry out rendering displaying;
When the abnormal releasing, when getting the page resource of the target pages from the server, by the institute of storage Dynamic resource and the static resource are stated, respectively compared with this page resource got from server, obtains difference section;
The difference section is rendered and updates the target pages having shown that.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, including memory, processor And the computer program that can be run on a memory and on a processor is stored, when the processor executes described program, realize Web information processing method as described in relation to the first aspect.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of computer readable storage medium, deposit thereon Computer program is contained, web information processing method as described in relation to the first aspect is realized when which is executed by processor.
Technical solution provided by the embodiment of the present invention may include it is following the utility model has the advantages that
When browser needs to show target pages, the page resource of target pages is obtained from server;Wherein, the page provides Source includes static resource and dynamic resource, and the dynamic resource of target pages is stored using the local data cache space of browser, Using the offline cache tool of browser, the static resource of target pages is stored, needs to show page object so that browser is subsequent It when face, is shown, is stored by the local data cache space of browser dynamic according to the dynamic resource of storage and static resource State resource and offline cache tool store static resource, realize the caching of all resources needed for the page loads, realize in net Network environment is poor, even without network in the case where, the normal presentation of target pages also may be implemented, reduce user etc. To the time, user experience is improved.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of web information processing method provided by the embodiment of the present invention;
Fig. 2 is the flow diagram of another kind web information processing method provided by the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of network information processing device provided in an embodiment of the present invention;And
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the web information processing method, device and electronic equipment of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of web information processing method provided by the embodiment of the present invention.
As shown in Figure 1, method includes the following steps:
Step 101, when browser needs to show target pages, the page resource of target pages is obtained from server.
The web information processing method of the embodiment of the present application, executing subject are browser, and browser can be set in intelligence In machine, which is provided with interactive unit and display unit.Wherein, intelligent robot can have for any one Equipment, instrument or the machine of calculation processing ability.
As an example, intelligent robot can be set there are two screen, and one is used to interact with user, referred to as Interactive unit, another is used to be shown, referred to as display unit.Wherein, interactive unit and display unit can be setting up and down, It can also be with left and right settings, to this and with no restrictions.
In the example, by being provided separately interactive unit and display unit, can using lesser screen as interactive unit, User is interacted by the lesser screen, using biggish screen as display unit, so that the display screen of display unit is set That sets can be larger, is not limited by the size of interactive unit, to be conducive to be shown.Also, in interactive unit During interacting, the relevant information for promoting object can also be shown by display unit, by interaction and displaying Function is undertaken by different screen, can be synchronously carried out interaction and be shown, improve the efficiency of interaction.
Since interactive unit can not only be shown, also need carry out information collection, it usually needs use touch screen, higher cost, And the screen of display unit only needs to be shown, it is only necessary to be set as common display screen, it is touch screen, this reality that no setting is required It applies in example and undertakes interaction by different screen with the function of showing, be not necessarily to biggish touch screen, reduce into a certain extent This.
Wherein, page resource includes static resource and dynamic resource.
In the embodiment of the present invention, when user needs to check information, it can be realized by being interacted with intelligent robot, intelligence The browser installed in energy robot sends page object according to the target pages to be shown carried in interactive information, to server The access request in face, to obtain the static resource and dynamic resource that need when target pages are shown from server.
For example, intelligent robot is used for mall shopping, after user enters market, the storey setting for understanding the market is wanted, then User opens browser client in the interactive unit of intelligent robot, to be looked by browser client to server request The floor navigation page seen.The browser installed in robot requests the floor navigation page checked according to user, to server Floor navigation page access request is sent, to obtain the page resource of floor navigation page.In another example user wants to look up market Discount information then can input or select the discount page to be checked in interactive unit, so that browser is asked to server Seek the page resource for obtaining the discount page.
Step 102, using the dynamic resource of the local data cache space storage target pages of browser, using browser Offline cache tool, the static resource of target pages is stored, when needing to show target pages so that browser is subsequent, according to depositing The dynamic resource and static resource of storage are shown.
Wherein, offline cache tool is e.g. realized based on worker service offline cache technology, for caching The static resource of target pages.
The local data cache space of browser is the memory space belonged in browser, for example, browser client Local data cache space localStorage.
Specifically, for browser after the static resource and dynamic resource for acquiring target pages from server, use is clear Look at device local data cache space storage target pages dynamic resource, if local data cache space be stored with dynamic provide The stored dynamic resource in local data cache space is replaced with the dynamic resource got from server, avoids number by source According to repeated downloads the dynamic resource got from server is deposited if local data cache space is not stored dynamic resource Storage realizes the downloading of dynamic resource to local data cache space.Wherein, when obtaining dynamic resource from server, as one The possible implementation of kind, can be pre-configured with preloaded list in browser end, such as are as follows: < html manifest=" CacheData.appcache " >, according to the preloaded list of configuration, in access browser, to the mesh got from server The dynamic resource of the page, the dynamic resource that will belong in preloaded list are marked, storage obtains in local data cache space, also It is to say, preloaded list is used to indicate browser needs and will deposit from which dynamic resource in the dynamic resource that server is got Storage improves the efficiency of dynamic resource downloading into local data cache space.And using the offline cache tool of browser, deposit The static resource for storing up target pages realizes the dynamic money that target pages are stored by the local data cache space of browser Source realizes browser end target pages in conjunction with the static resource of the offline cache tool storage target pages using browser The caching of resource needed for loading, so that browser is subsequent when needing to show target pages by display unit, it can be according to depositing The dynamic resource and static resource of storage are shown, without obtaining data from server every time, to avoid network rings It is slower from server acquisition data when border is bad, cause page loading velocity also relatively slow, period of reservation of number is more long, even The page can not load success, the poor problem of user experience.
In the web information processing method of the present embodiment, when browser needs to show target pages, obtained from server The page resource of target pages;Wherein, page resource includes static resource and dynamic resource, is delayed using the local data of browser The dynamic resource for depositing space storage target pages stores the static resource of target pages using the offline cache tool of browser, When needing to show target pages so that browser is subsequent, it is shown according to the dynamic resource of storage and static resource, by clear Look at device local data cache space storage dynamic resource and offline cache tool storage static resource, realize the page load institute The caching for needing all resources, realizes when the network environment is poor, the normal presentation of target pages also may be implemented, improve use Family experience.
For an embodiment in clear explanation, another web information processing method is present embodiments provided, Fig. 2 is this hair The flow diagram of another kind web information processing method provided by bright embodiment.
As shown in Fig. 2, this method may comprise steps of:
Step 201, when browser needs to show target pages, the page resource of target pages is obtained from server.
Step 202, using the dynamic resource of the local data cache space storage target pages of browser, using browser Offline cache tool, store the static resource of target pages.
Specifically, step 201- step 202 is referred to the step 101-102 in an embodiment, and principle is identical, herein It repeats no more.
Step 203, packing processing is carried out to static resource using strapping tool.
Wherein, strapping tool is, for example, Webpack, by being packaged to the static resource of acquisition, by static resource It is converted into the data format that browser can be identified and be used, for example, JavaScript file format, meanwhile, webpack is beaten File mergences with dependence can be compressed into a file by job contract tool, to reduce browse request static resource Number improves the speed of browser load static resource.
Specifically, compression or encryption are carried out using the plug-in unit of strapping tool is corresponding to each web page files respectively, wherein Web page files include html file, JavaScript (JS) file and CSS file etc., for example, strapping tool is webpack, In the entry file of webpack, sass file is parsed using plug-in unit css-loader, is parsed using plug-in unit babel-loader Jsx file compresses html file using plug-in unit html-webpack-plugin, using plug-in unit MiniCssExtractPlugin compresses CSS file, encrypts JS file using plug-in unit UglifyJsPlugin, in turn, will Treated, and each web page files use strapping tool to be packaged as the file of static resource, to reduce browse request static state money The number in source improves the speed of browser load static resource, meanwhile, the file of static resource is used for subsequent displaying target It when the page, is loaded using node serve in browser rear end, in order to be convenient on early warning investigation line when subsequent displaying target pages Problem.
Step 204, when browser is subsequent to be needed to show target pages, network is determined with the presence or absence of exception, if so, executing Step 205, if it is not, executing step 206.
Specifically, when browser needs to show target pages, need first to judge that current network conditions with the presence or absence of exception, lead to In normal situation, network signal intensity is poor or without thinking Network Abnormal when network signal, when network signal intensity is higher, i.e., Think that network is normal, as a kind of possible implementation, the network signal intensity of the terminal of installation browser is supervised Survey, if signal strength is consistently less than preset threshold within a preset time, it is determined that current network dtr signal, i.e. terminal be in compared with Vulnerable network environment, i.e. network exist abnormal;If monitoring, the network signal intensity of terminal is persistently higher than or waits within a preset time In preset threshold, determine that network signal is preferable, i.e., terminal is in strong network environment, i.e., network is without abnormal.Wherein, monitoring network The implementation of the intensity of signal, the system according to used in terminal are obtained by the interface of corresponding network signal The data of network signal intensity can then pass through Android system for example, terminal uses Android system The application programming interface of ConnectivityManager, to obtain the signal strength of current network, so that it is determined that current net Network is with the presence or absence of exception, and similarly, when terminal uses other operating systems, network signal intensity can be obtained by also corresponding to have Interface, principle is identical, and details are not described herein again.
In turn, however, it is determined that network exists abnormal, for example, people is more in market, because seizing network, causes network speed slower, or Person's offline condition has either isolated area, when network signal is bad, then directly according to the dynamic resource and static state being locally stored Resource carries out the displaying of the page, requests resource without whereabouts server end, resource loading velocity is improved, so that network condition is not When good, can also quick displayed page, avoid the waiting of user.If it is determined that network is without abnormal, then it is preferential from server The middle newest resource for obtaining page presentation and needing improves the effective and accurate of page presentation to carry out the displaying of the page Property.
Step 205, it is shown according to the dynamic resource of storage and static resource.
Specifically, however, it is determined that network has exception, if continuing to obtain the page resource that the page needs from server, will lead to The case where page load is especially slow, and even the page can not load, thus the dynamic resource and static resource of first load store And rendering displaying is carried out, the more long time is waited to avoid user, continues monitoring network situation, when Network Abnormal releases, from clothes Business device is when getting the newest page resource of target pages, by the dynamic resource and static resource of storage, respectively with this from clothes The page resource that business device is got compares, and obtains difference section, is rendered to difference section and update the page object having shown that Face is realized in the case where network environment is bad, and the dynamic resource and static resource first stored in load caching realizes page The normal load in face is shown, provides normal service for user, until network state is preferable, then automatic updating data, and By the rendering mode based on difference content, rather than entire target pages reload, and realizing will not intuitively feel in user By under the situation of change of the page, improving the loading velocity of the page, meanwhile, the experience effect of rendering is enhanced, user is satisfied It spends higher.
Step 206, server is accessed to obtain the page resource of target pages.
Specifically, when determining network without exception, since network environment is very fast, server is accessed directly to obtain target The static resource and dynamic resource of the page, loading velocity is also very fast, realizes target pages and is carried out according to newest page resource It shows, the information that user gets is more accurate, and Experience Degree is preferable.
In the web information processing method of the present embodiment, by the static resource of the page got in advance from server and move State resource is deposited using the dynamic resource of local data cache space storage target pages using the offline cache tool of browser The static resource of target pages is stored up, and static resource is carried out by packing processing using strapping tool, it can be with to be converted to browser The file format of identification.When browser needs to carry out the displaying of target pages, the monitoring of network environment is first carried out, if network rings There is exception in border, be shown first with the dynamic resource and static resource of storage, realize the normal presentation of the page, monitoring After restoring normal to network environment, then the newest resource of target pages is obtained from server, and newest by what is currently got Resource and the resource of storage be compared, according to difference section, rendering update is carried out to shown target pages, with into The displaying of the newest target pages of row, the effect of rendering and the Experience Degree of user are improved in the case where user is not noticeable.
In order to realize above-described embodiment, the present invention also proposes that a kind of network information processing device, the device are set to browsing Inside device.
Fig. 3 is a kind of structural schematic diagram of network information processing device provided in an embodiment of the present invention.
As shown in figure 3, the device includes: to obtain module 31 and memory module 32.
Module 31 is obtained, for obtaining the page of target pages from server when browser needs to show target pages Resource;Wherein, page resource includes static resource and dynamic resource.
Memory module 32 is adopted for the dynamic resource of the local data cache space storage target pages using browser With the offline cache tool of browser, the static resource of target pages is stored, needs to show target pages so that browser is subsequent When, it is shown according to the dynamic resource of storage and static resource.
Further, in a kind of possible implementation of the embodiment of the present invention, static resource includes web page files, should Device further include: packetization module.
Packetization module, for carrying out packing processing to static resource using strapping tool.
As a kind of possible implementation, packetization module is specifically used for:
Compression or encryption are carried out using the plug-in unit of strapping tool is corresponding to each web page files respectively;
Treated each web page files are packaged as to the file of static resource using strapping tool;Wherein, static resource File when being used for subsequent displaying target pages, is loaded using node serve in browser rear end.
As a kind of possible implementation, the device further include: processing module.
Processing module, for when browser is subsequent need to show target pages when, determine network with the presence or absence of abnormal;If depositing In exception, it is shown according to the dynamic resource of storage and static resource.
As a kind of possible implementation, processing module is also used to: if there is no exception, accessing server to obtain The page resource of target pages.
As a kind of possible implementation, processing module is specifically also used to:
Abnormal if it exists, the dynamic resource and static resource of load store simultaneously carry out rendering displaying;
When abnormal releasing, when getting the page resource of target pages from server, by the dynamic resource and static state of storage Resource obtains difference section respectively compared with this page resource got from server;
Difference section is rendered and updates the target pages having shown that.
As a kind of possible implementation, above-mentioned memory module 32 is specifically used for:
If the local data cache space has been stored with the dynamic resource, the local data cache space has been deposited The dynamic resource of storage replaces with the dynamic resource got from the server;
If the not stored dynamic that has the dynamic resource, will be got from the server in local data cache space Resource is stored to the local data cache space.
It should be noted that the aforementioned explanation to web information processing method embodiment is also applied for the embodiment Network information processing device, principle is identical, and details are not described herein again.
In the network information processing device of the embodiment of the present invention, when browser needs to show target pages, from server Obtain the page resource of target pages;Wherein, page resource includes static resource and dynamic resource, using the local number of browser The static state of target pages is stored using the offline cache tool of browser according to the dynamic resource of spatial cache storage target pages Resource when needing to show target pages so that browser is subsequent, is shown according to the dynamic resource of storage and static resource, is led to The local data cache space storage dynamic resource and offline cache tool storage static resource for crossing browser, realize that the page adds Carry needed for all resources caching, realize network environment it is poor even without network in the case where, mesh also may be implemented The normal presentation for marking the page, reduces the waiting time of user, improves user experience.
In order to realize above-described embodiment, the present invention also proposes a kind of electronic equipment, and Fig. 4 is provided by the embodiment of the present invention The structural schematic diagram of a kind of electronic equipment, as shown in figure 4, electronic equipment 110 includes memory 111, processor 112 and is stored in On memory 111 and the computer program 113 that can run on processor 112, when the processor 112 executes described program, Realize the web information processing method as described in preceding method embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, the network information processing side as described in preceding method embodiment is realized when which is executed by processor Method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of web information processing method, which is characterized in that the method is executed by browser, comprising the following steps:
When the browser needs to show target pages, the page resource of the target pages is obtained from server;Wherein, institute Stating page resource includes static resource and dynamic resource;
The dynamic resource that the target pages are stored using the local data cache space of the browser, using the browser Offline cache tool, store the static resource of the target pages, need to show the target so that the browser is subsequent When the page, it is shown according to the dynamic resource of storage and static resource.
2. web information processing method according to claim 1, which is characterized in that the local using the browser Data buffer storage space stores the dynamic resource of the target pages, comprising:
It is if the local data cache space has been stored with the dynamic resource, the local data cache space is stored The dynamic resource replaces with the dynamic resource got from the server;
If the not stored dynamic resource that has the dynamic resource, will be got from the server in local data cache space It stores to the local data cache space.
3. web information processing method according to claim 1, which is characterized in that the static resource includes webpage text Part;The offline cache tool using the browser, after the static resource for storing the target pages, further includes:
Packing processing is carried out to the static resource using strapping tool.
4. web information processing method according to claim 3, which is characterized in that described to use strapping tool to described quiet State resource carries out packing processing, comprising:
Compression or encryption are carried out using the plug-in unit of the strapping tool is corresponding to each web page files respectively;
Treated each web page files are packaged as to the file of static resource using the strapping tool;Wherein, the static money The file in source when being used for the subsequent displaying target pages, is loaded using node serve in browser rear end.
5. web information processing method according to claim 1-4, which is characterized in that described to use the browsing The local data cache space of device stores the dynamic resource of the target pages, using the offline cache tool of the browser, After the static resource for storing the target pages, further includes:
When the browser is subsequent to be needed to show the target pages, determine network with the presence or absence of abnormal;
It is abnormal if it exists, it is shown according to the dynamic resource of storage and static resource.
6. web information processing method according to claim 5, which is characterized in that the determining network is with the presence or absence of abnormal Later, further includes:
If there is no exception, server is accessed to obtain the page resource of the target pages.
7. web information processing method according to claim 5, which is characterized in that it is described abnormal if it exists, according to storage Dynamic resource and static resource be shown, comprising:
Abnormal if it exists, the dynamic resource and the static resource of load store simultaneously carry out rendering displaying;
When the abnormal releasing, when getting the page resource of the target pages from the server, by the described dynamic of storage State resource and the static resource obtain difference section respectively compared with this page resource got from server;To institute Difference section is stated to be rendered and update the target pages having shown that.
8. a kind of network information processing device, which is characterized in that device is set to inside browser, described device, comprising:
Module is obtained, for obtaining the page money of the target pages from server when browser needs to show target pages Source;Wherein, the page resource includes static resource and dynamic resource;
Memory module stores the dynamic resource of the target pages for the local data cache space using the browser, Using the offline cache tool of the browser, the static resource of the target pages is stored, so as to the subsequent need of the browser When showing the target pages, it is shown according to the dynamic resource of storage and static resource.
9. a kind of electronic equipment, which is characterized in that on a memory and can be on a processor including memory, processor and storage The computer program of operation when the processor executes described program, realizes the network letter as described in any in claim 1-7 Cease processing method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The web information processing method as described in any in claim 1-7 is realized when execution.
CN201910578594.7A 2019-06-28 2019-06-28 Network information processing method and device and electronic equipment Pending CN110287433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578594.7A CN110287433A (en) 2019-06-28 2019-06-28 Network information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578594.7A CN110287433A (en) 2019-06-28 2019-06-28 Network information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110287433A true CN110287433A (en) 2019-09-27

Family

ID=68020180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578594.7A Pending CN110287433A (en) 2019-06-28 2019-06-28 Network information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110287433A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143725A (en) * 2019-11-15 2020-05-12 北京字节跳动网络技术有限公司 Page generating method, device and electronic device
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111314462A (en) * 2020-02-14 2020-06-19 京东数字科技控股有限公司 Resource processing method, device and storage medium
CN111405003A (en) * 2020-03-05 2020-07-10 维沃移动通信有限公司 A resource loading method and electronic device
CN111556366A (en) * 2020-04-02 2020-08-18 北京达佳互联信息技术有限公司 Multimedia resource display method, device, terminal, server and system
CN111639281A (en) * 2020-05-29 2020-09-08 海信视像科技股份有限公司 Page resource display method and display equipment
CN111859211A (en) * 2019-12-31 2020-10-30 北京嘀嘀无限科技发展有限公司 Webpage offline access method, device, terminal and storage medium
CN112394952A (en) * 2020-11-17 2021-02-23 珠海迈科智能科技股份有限公司 Method and system for dynamically generating Launcher based on Hybrid App, and storage medium
CN112395191A (en) * 2020-11-16 2021-02-23 北京五八信息技术有限公司 Information processing method and device
CN112698829A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Abnormal resource positioning method and device, storage medium and electronic equipment
CN112905280A (en) * 2021-02-07 2021-06-04 腾竞体育文化发展(上海)有限公司 Page display method, device, equipment and storage medium
CN113158098A (en) * 2020-01-07 2021-07-23 百度在线网络技术(北京)有限公司 Page generation method, device, equipment and medium
CN113254819A (en) * 2021-05-27 2021-08-13 广东太平洋互联网信息服务有限公司 Page rendering method, system, equipment and storage medium
CN113449216A (en) * 2020-03-26 2021-09-28 腾讯科技(深圳)有限公司 File processing method and device and storage medium
CN113535274A (en) * 2021-07-30 2021-10-22 北京字跳网络技术有限公司 Head resource display method and device, electronic equipment and storage medium
CN114117279A (en) * 2021-11-29 2022-03-01 北京房江湖科技有限公司 Webpage file compression method and webpage file decompression method
CN114741128A (en) * 2022-03-15 2022-07-12 新华三技术有限公司 Visual large-screen management method and device
CN115065620A (en) * 2022-06-20 2022-09-16 中国平安财产保险股份有限公司 Network monitoring method, device, equipment and storage medium
CN115529243A (en) * 2022-09-19 2022-12-27 中国银行股份有限公司 Method and device for optimizing page loading speed
CN116150163A (en) * 2021-11-19 2023-05-23 腾讯科技(深圳)有限公司 Information prompting method, device, equipment, storage medium and product
CN118069950A (en) * 2024-04-24 2024-05-24 安徽省交通规划设计研究总院股份有限公司 Webview characteristic-based method, webview characteristic-based device, webview characteristic-based equipment and webview characteristic-based medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140344674A1 (en) * 2011-12-12 2014-11-20 Facebook, Inc. Display Dialogs
CN105512324A (en) * 2015-12-21 2016-04-20 用友网络科技股份有限公司 Front end module loader for partial renewal of package file
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN106055634A (en) * 2016-05-27 2016-10-26 浪潮通用软件有限公司 Method for synchronizing WebSQL (Web structured query language) based on HTML5 and server-side database
CN108334562A (en) * 2018-01-09 2018-07-27 阿里巴巴集团控股有限公司 A kind of page display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140344674A1 (en) * 2011-12-12 2014-11-20 Facebook, Inc. Display Dialogs
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN105512324A (en) * 2015-12-21 2016-04-20 用友网络科技股份有限公司 Front end module loader for partial renewal of package file
CN106055634A (en) * 2016-05-27 2016-10-26 浪潮通用软件有限公司 Method for synchronizing WebSQL (Web structured query language) based on HTML5 and server-side database
CN108334562A (en) * 2018-01-09 2018-07-27 阿里巴巴集团控股有限公司 A kind of page display method and device

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143725A (en) * 2019-11-15 2020-05-12 北京字节跳动网络技术有限公司 Page generating method, device and electronic device
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111859211A (en) * 2019-12-31 2020-10-30 北京嘀嘀无限科技发展有限公司 Webpage offline access method, device, terminal and storage medium
CN113158098A (en) * 2020-01-07 2021-07-23 百度在线网络技术(北京)有限公司 Page generation method, device, equipment and medium
CN113158098B (en) * 2020-01-07 2024-03-19 百度在线网络技术(北京)有限公司 Page generation method, device, equipment and medium
CN111314462A (en) * 2020-02-14 2020-06-19 京东数字科技控股有限公司 Resource processing method, device and storage medium
CN111405003A (en) * 2020-03-05 2020-07-10 维沃移动通信有限公司 A resource loading method and electronic device
CN111405003B (en) * 2020-03-05 2023-05-02 维沃移动通信有限公司 Resource loading method and electronic equipment
CN113449216A (en) * 2020-03-26 2021-09-28 腾讯科技(深圳)有限公司 File processing method and device and storage medium
CN111556366A (en) * 2020-04-02 2020-08-18 北京达佳互联信息技术有限公司 Multimedia resource display method, device, terminal, server and system
CN111639281A (en) * 2020-05-29 2020-09-08 海信视像科技股份有限公司 Page resource display method and display equipment
CN112395191A (en) * 2020-11-16 2021-02-23 北京五八信息技术有限公司 Information processing method and device
CN112394952A (en) * 2020-11-17 2021-02-23 珠海迈科智能科技股份有限公司 Method and system for dynamically generating Launcher based on Hybrid App, and storage medium
CN112394952B (en) * 2020-11-17 2023-11-17 珠海迈科智能科技股份有限公司 Method, system and storage medium for dynamically generating Launcher based on Hybrid App
CN112698829A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Abnormal resource positioning method and device, storage medium and electronic equipment
CN112698829B (en) * 2021-01-13 2023-10-24 腾讯科技(深圳)有限公司 Abnormal resource positioning method and device, storage medium and electronic equipment
CN112905280A (en) * 2021-02-07 2021-06-04 腾竞体育文化发展(上海)有限公司 Page display method, device, equipment and storage medium
CN112905280B (en) * 2021-02-07 2023-12-15 腾竞体育文化发展(上海)有限公司 Page display method, device, equipment and storage medium
CN113254819A (en) * 2021-05-27 2021-08-13 广东太平洋互联网信息服务有限公司 Page rendering method, system, equipment and storage medium
CN113535274A (en) * 2021-07-30 2021-10-22 北京字跳网络技术有限公司 Head resource display method and device, electronic equipment and storage medium
CN116150163A (en) * 2021-11-19 2023-05-23 腾讯科技(深圳)有限公司 Information prompting method, device, equipment, storage medium and product
CN114117279A (en) * 2021-11-29 2022-03-01 北京房江湖科技有限公司 Webpage file compression method and webpage file decompression method
CN114741128A (en) * 2022-03-15 2022-07-12 新华三技术有限公司 Visual large-screen management method and device
CN115065620B (en) * 2022-06-20 2023-08-22 中国平安财产保险股份有限公司 Network monitoring method, device, equipment and storage medium
CN115065620A (en) * 2022-06-20 2022-09-16 中国平安财产保险股份有限公司 Network monitoring method, device, equipment and storage medium
CN115529243A (en) * 2022-09-19 2022-12-27 中国银行股份有限公司 Method and device for optimizing page loading speed
CN118069950A (en) * 2024-04-24 2024-05-24 安徽省交通规划设计研究总院股份有限公司 Webview characteristic-based method, webview characteristic-based device, webview characteristic-based equipment and webview characteristic-based medium
CN118069950B (en) * 2024-04-24 2024-07-12 安徽省交通规划设计研究总院股份有限公司 Webview characteristic-based method, webview characteristic-based device, webview characteristic-based equipment and webview characteristic-based medium

Similar Documents

Publication Publication Date Title
CN110287433A (en) Network information processing method and device and electronic equipment
CN110287432A (en) Network information processing method and device and electronic equipment
US11044949B2 (en) Systems and methods for dynamic delivery of web content
US11126333B2 (en) Application reporting in an application-selectable user interface
US10754917B2 (en) Method and system for displaying customized webpage on double webview
US20150220496A1 (en) Dynamic sprite based theme switching
US8631335B2 (en) Interactive element management in a web page
US20050028105A1 (en) Method for entitling a user interface
US20050138143A1 (en) Pre-fetching linked content
US10268657B2 (en) Configuration of content site user interaction monitoring in data networks
CN106484383A (en) page rendering method, device and equipment
CN107463627A (en) A kind of picture loading method and terminal
CN108563469A (en) page loading method, device, storage medium and terminal device
US11212336B2 (en) Systems and/or methods for dynamically configuring and evaluating rules with dynamic and/or user inputs at runtime
CN109240568A (en) A kind of display methods of menu page, device and storage medium
CN112307377A (en) Information display method and device and electronic equipment
CN109416828A (en) Apparatus and method for mapping frame buffers to logical displays
US20200341778A1 (en) Context framework
CN114547523B (en) Method, device, equipment and storage medium for activity navigation in live broadcast room
KR101976306B1 (en) Web page creation support device, and storage medium
US9940311B2 (en) Optimized read/write access to a document object model
Dufresne et al. Fake it'til you load it: User Perceptions and Performance with Fast-Loading “False Front” Web Pages
CN119356763B (en) Program running method, apparatus, computer device, storage medium and program product
CN120011670A (en) A SaaS-based interactive server-side website cookie scanning method and system
JP2023184190A (en) Image generation system, its operating method and program

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: 20190927

RJ01 Rejection of invention patent application after publication