CN108228282A - For the method and device of Website page loading - Google Patents

For the method and device of Website page loading Download PDF

Info

Publication number
CN108228282A
CN108228282A CN201810299677.8A CN201810299677A CN108228282A CN 108228282 A CN108228282 A CN 108228282A CN 201810299677 A CN201810299677 A CN 201810299677A CN 108228282 A CN108228282 A CN 108228282A
Authority
CN
China
Prior art keywords
script file
locally stored
local cache
script
cryptographic hash
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.)
Granted
Application number
CN201810299677.8A
Other languages
Chinese (zh)
Other versions
CN108228282B (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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810299677.8A priority Critical patent/CN108228282B/en
Publication of CN108228282A publication Critical patent/CN108228282A/en
Application granted granted Critical
Publication of CN108228282B publication Critical patent/CN108228282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This disclosure relates to a kind of method and device, electronic equipment and computer readable storage medium for Website page loading.Belong to Internet technical field.The method for being used for Website page loading includes:If receiving accession page request, the first document is obtained from services group, wherein first document includes the configuration information of script file;If there is no the script files in being locally stored, the script file is obtained from content delivery network service according to the configuration information;The script file obtained from content delivery network service is stored into being locally stored;The script file of middle caching is locally stored in loading.The disclosure can realize the weak net even offlineization loading of Website page.

Description

For the method and device of Website page loading
Technical field
This disclosure relates to Internet technical field, in particular to a kind of method and dress for Website page loading It puts, electronic equipment, computer readable storage medium.
Background technology
The shortcomings that website (Web) page loading method of the prior art is primarily present is, when terminal device is believed in network In the case of number weaker, Website page can not be visited again, in some instances it may even be possible to which the network homepage at station of user can not all be opened, this is greatly Affect user experience.
Therefore, it is necessary to a kind of new method and device loaded for Website page, electronic equipment, computer-readable storages Medium.
Invention content
The disclosure provides a kind of for the method and device of Website page loading, electronic equipment, computer-readable storage medium Matter can realize that network signal loads Website page in the case of weaker.
Other characteristics and advantages of the disclosure will be by the following detailed description apparent from or partially by the disclosure Practice and acquistion.
According to one aspect of the disclosure, a kind of method for Website page loading is provided, including:If receive access Page request obtains the first document from services group, wherein first document includes the configuration information of script file; If there is no the script files in being locally stored, the foot is obtained from content delivery network service according to the configuration information This document;The script file obtained from content delivery network service is stored into being locally stored;Loading is locally stored The script file of middle caching.
In a kind of exemplary embodiment of the disclosure, the configuration information includes the cryptographic Hash of the script file, institute The method of stating further includes:If the content of the script file changes, the cryptographic Hash of the script file after generation change;It will The cryptographic Hash of the script file after change is stored into the configuration information of the script file.
In a kind of exemplary embodiment of the disclosure, the configuration information further includes the version number of the script file, The method further includes:If the middle local cache there are the script file is locally stored, the script of local cache is judged Whether the cryptographic Hash of the cryptographic Hash of the file script file corresponding with latest edition number is consistent;If the foot of local cache The cryptographic Hash of the cryptographic Hash of this document script file corresponding with latest edition number is consistent, and loading is locally stored middle local and delays The script file deposited.
In a kind of exemplary embodiment of the disclosure, the configuration information further includes whether the script file needs by force Newer mark is made, the method further includes:If the cryptographic Hash of the script file of local cache is corresponding with latest edition number The script file cryptographic Hash it is inconsistent, the script of middle local cache is locally stored according to configuration information judgement Whether file needs to force to update;If the script file of middle local cache, which is locally stored, to be needed to force update, according to default Update policy update the script file of middle local cache is locally stored;The updated institute of middle caching is locally stored in loading State script file.
In a kind of exemplary embodiment of the disclosure, the method further includes:If the institute of middle local cache is locally stored It states script file not needing to force update, judges current network state;If current network is in first state, according to preset institute State the script file that middle local cache is locally stored in update policy update.
In a kind of exemplary embodiment of the disclosure, the method further includes:If current network is in the second state, add Carry the script file that middle local cache is locally stored.
In a kind of exemplary embodiment of the disclosure, the method further includes:After predetermined time delay, according to pre- If the update policy update script file of middle local cache is locally stored.
In a kind of exemplary embodiment of the disclosure, the more new strategy includes:Carry required parameter request content point Network service is sent out, wherein the required parameter includes being locally stored the cryptographic Hash of the script file of middle local cache and newest The cryptographic Hash of the corresponding script file of version number;If there are the script of local cache texts in content delivery network service Character difference between part and the corresponding script file of latest edition number, in being locally stored according to the character difference update The script file of local cache.
In a kind of exemplary embodiment of the disclosure, the more new strategy further includes:If in content delivery network service There is no the character differences between the corresponding script file of the script file and latest edition number of local cache, incite somebody to action this The script file and the corresponding script file of latest edition number of ground caching, which are compared, obtains the character difference.
In a kind of exemplary embodiment of the disclosure, the more new strategy further includes:The character obtained will be compared Difference is stored into content delivery network service.
In a kind of exemplary embodiment of the disclosure, its of acquisition storage picture and/or word from services group His file.
In a kind of exemplary embodiment of the disclosure, the method further includes:If the browser does not support service work Make group, first document is obtained from node server.
According to one aspect of the disclosure, a kind of device for Website page loading is provided, including:Document obtains mould If block for receiving accession page request, obtains the first document, wherein first document includes from services group The configuration information of script file;Static file pulls module, if in being locally stored there is no the script file, according to institute It states configuration information and the script file is obtained from content delivery network service;File local cache module, for will be from content The script file obtained in distribution network service is stored into being locally stored;Page load-on module, for loading local deposit The script file cached in storage.
According to one aspect of the disclosure, a kind of electronic equipment is provided, including memory, processor and is stored in the storage On device and the computer program that can run on the processor, the program realize any of the above-described embodiment when being performed by the processor In method and step.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, is stored thereon with computer program, The method and step in any of the above-described embodiment is realized when described program is executed by processor.
The method and device loaded for Website page in disclosure some embodiments, electronic equipment, computer Readable storage medium storing program for executing stores the first document of the configuration information including script file by using services group, exists in this way It, can be by the configuration information of script file from content distributing network when the script file of local cache being not present in being locally stored Static script file is pulled in service and is stored into being locally stored, can realize that terminal device is weaker in network signal in this way In the case of load the script file that middle caching is locally stored realize Website page offline loading.
It should be understood that above general description and following detailed description is only exemplary, this can not be limited It is open.
Description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the disclosure will It becomes more fully apparent.
Fig. 1 is the flow chart according to a kind of method loaded for Website page shown in an illustrative embodiments.
Fig. 2 is the flow chart of the method loaded according to the another kind shown in an illustrative embodiments for Website page.
Fig. 3 is the schematic diagram according to a kind of device loaded for Website page shown in an illustrative embodiments.
Fig. 4 is the schematic diagram according to a kind of electronic equipment shown in an illustrative embodiments.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Attached drawing is only the disclosure Schematic illustrations, be not necessarily drawn to scale.Identical reference numeral represents same or similar part in figure, thus Repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In mode.In the following description, many details are provided to fully understand embodiment of the present disclosure so as to provide.So And it will be appreciated by persons skilled in the art that one in the specific detail can be omitted with technical solution of the disclosure Or more or may be used other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes Known features, method, apparatus, realization or operation are to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is caused to thicken.
In existing web page platform, opening Website page needs to carry out resource downloading, if the exploitation of Website page has used certain A little frames will quote huge script file (such as JavaScript script files, can be referred to as JS files) and CSS (Cascading Style Sheets, cascading style sheets) file, causes a problem in that in this way, the speed meeting of Website page loading It is slack-off, because after the completion of Website page has to wait for all script file loadings, it could successfully be rendered and be presented on user In front, particularly in the case where network is poor, the loading of resource and the presentation of Website page need relatively long a period of time, Website page even can not be loaded, causes user that can not open the page of website, affects user experience.
Fig. 1 is the flow chart according to a kind of method loaded for Website page shown in an illustrative embodiments.
As shown in Figure 1, the method for Website page loading in the present embodiment may comprise steps of.
In step s 110, if receiving accession page request, the first document (such as Html is obtained from services group Document), wherein the configuration information of script file can be included in first document.
In the present embodiment, if receiving accession page request and the browser support services group (ServiceWoker), first document is obtained from the services group, wherein can include in first document The configuration information of script file.
PWA (Progressive Web App) technology is to provide similar App (application, application program) experience Website, particular technique can include Service worker (Service Worker pre-cache following required resource), Web App Manifest、Cache API、Fetch API、Push API、Web Push Protocol、Notification Etc..Service Worker have given mono- thread that can be run on backstage of Web, it can arrange in pairs or groups Cache API (Application Programming Interface, application programming interface) caches, can intercept HTTP (HyperText Transfer Protocol, hypertext transfer protocol) is asked and is responded using Fetch API (response)。
Wherein, Service Worker (hereinafter referred to as SW) are that a kind of Web Worker (are defined on Html In (HyperText Markup Language, HyperText Markup Language) standard), it is event driven background process. Service worker are an event-driven worker being registered under specified source and path.It is controlled using JavaScript The associated page or website intercept and change access and resource request, fine granularity ground cache resources.
In the exemplary embodiment, the configuration information can include Hash (hash) value of the script file.
In the exemplary embodiment, the method can also include:If the content of the script file changes, generation The cryptographic Hash of the script file after change;The cryptographic Hash of the script file after change is stored to the script file Configuration information in.
In the present embodiment, the cryptographic Hash of corresponding scripts file can be generated according to the content of each script file.If some foot The content of this document changes, and can generate the cryptographic Hash of the corresponding scripts file after changing accordingly.
Due to usually there are multiple script files, in order to which multiple script file is distinguished, at some In embodiment, the configuration information can also include the unique mark of script file, for identifying and searching corresponding script text Part.
In the present embodiment, the plug-in unit (plugin) that We bpack may be used generates the cryptographic Hash of each script file and obtains Take the unique mark of each script file.
Wherein, the plug-in unit of Web pack can be used for helping to collect the resource that needs to cache to one " pre-cache inventory " In, and using this inventory new Service Worker files are generated in each structure.In new Service Worker When being activated, the resource in inventory will be requested and cache.
Many webpages now can regard feature-rich application as in fact, they possess complicated JavaScript Code and a lot of rely on are wrapped.In order to simplify the complexity of exploitation, Web Pack can regard module baler as:The thing that it does Feelings are analysis project structures, find JavaScript modules and expansion language that some other browsers cannot directly be run It says (Scss, TypeScript etc.), and is converted and is packaged as suitable form and used for browser.The work of Web pack Mode is:Assign project as an entirety, by a given master file (such as:Index.js), Web pack will be from this File starts to find all dependent files of project, them are handled using loaders, is finally packaged as one (or multiple) browsing The identifiable JavaScript file of device.
In the exemplary embodiment, the method can also include:Storage picture and/or text are obtained from services group The alternative document of word.
SW can be also used for storage picture and/or font in addition to can be used for storing the first document code in the present embodiment Alternative documents such as CSS documents are waited, and are deposited in the prior art using (localStorage) is locally stored as core technology File is stored up, but memory space is smaller due to being locally stored, general browser support is 5M sizes, and only in being locally stored Character string can be stored, and the file of these types such as picture and word is locally stored, and can not store, therefore, compared to existing There is technology, the present embodiment carrys out storage file by using SW, can cache more files and resource.
In the exemplary embodiment, the method can also include:If the browser does not support services group, from section First document is obtained in point (Node) server.
In the step s 120, if there is no the script files in being locally stored, divided according to the configuration information from content The script text is obtained in hairnet network (Content Delivery Network, abbreviation CDN, i.e. content distributing network) service Part.
Wherein, it is stored locally as a html5 (application under the kernel language of WWW, standard generalized markup language 5th material alteration of hypertext markup language (first)) new standard provide browser storage data new method.It is local Storage is similar to sessionStorage.The difference lies in being stored in the data that the inside is locally stored does not have expired time (expiration time), and be stored in the data inside sessionStorage can be in browser session (browing Session it is eliminated at the end of), i.e., when browser is closed.The data of first time request can be directly stored in by being locally stored Local, this is equivalent to the database for being directed to front end page of a 5M size, and bandwidth can be saved compared to cookie.
Wherein, the basic ideas of content distributing network are avoided as far as possible on internet it is possible that influencing data transmission bauds With the bottleneck and link of stability, make content transmission faster, it is more stable.By placing node server institute structure everywhere in network Into one on existing Internet basic layer intelligent virtual network, content distribution network system can be in real time according to net The connection of network flow and each node, load state and to the integrated informations such as the distance of user and response time by the request of user It re-directs on the service node nearest from user.The purpose is to make user that can obtain required content nearby, Internet is solved The situation of network congestion improves the response speed that user accesses website.
In step s 130, the script file obtained from content delivery network service is stored to being locally stored In.
In step S140, the script file of middle caching is locally stored in loading.
In the exemplary embodiment, the configuration information can also include the version number of the script file.
In the exemplary embodiment, the method further includes:If the middle local there are the script file is locally stored to delay It deposits, judging the cryptographic Hash of the cryptographic Hash script file corresponding with latest edition number of the script file of local cache is It is no consistent;If the cryptographic Hash of the cryptographic Hash of the script file of the local cache script file corresponding with latest edition number Unanimously, the script file of middle local cache is locally stored in loading.
In the exemplary embodiment, whether the configuration information can also need to force newer including the script file Mark.
In the exemplary embodiment, the method can also include:If the cryptographic Hash of the script file of local cache The cryptographic Hash of the script file corresponding with latest edition number is inconsistent, and middle is locally stored according to configuration information judgement Whether the script file of ground caching needs to force to update;It is needed by force if the script file of middle local cache is locally stored The script file and its configuration information of middle local cache are locally stored according to preset update policy update for system update;Add Carry the updated script file that middle caching is locally stored.
In the present embodiment, can according to the mark in the configuration information come judge the script file whether needs Force update.
For example, if described be identified as 1, it can represent and the script file of middle local cache is locally stored need to force more Newly;If described be identified as 0, can represent be locally stored middle local cache the script file do not need to force update.But this It is open that it's not limited to that.
In the exemplary embodiment, the method can also include:If the script text of middle local cache is locally stored Part does not need to force update, judges current network state;If current network is in first state, according to the preset update plan Slightly the script file of middle local cache is locally stored in update.
In the exemplary embodiment, the method can also include:If current network is in the second state, loading is local to deposit The script file of local cache in storage.
In the present embodiment, the first state can be strong network state;Second state can be vulnerable network state. It should be noted that strong network state and vulnerable network state are a relative concepts, it can be according to different users, different nets Network environment carries out self-defined.
In the exemplary embodiment, the method can also include:After predetermined time delay, according to preset described The script file of middle local cache is locally stored in update policy update.
In the present embodiment, using the characteristic that is locally stored of html5, that is, technology is locally stored, in the case where network is poor, The script file that middle local cache is locally stored is directly read, reduces the request number of times initiated to server, so as to realize User is allowed quickly to open Website page.Further, it is also possible on backstage to the script file of server acquisition request new version, if net Network situation is preferable, after asking successfully, during the script file deposit of the new version of server transmission is locally stored, makes for next time With, so as on the one hand greatly reduce obtain the page time, improve user experience;On the other hand, it can take a turn for the better in network Afterwards, it gets during updated script file is cached to and is locally stored so that, can when receiving the request of accession page again below To load updated script file.
In the exemplary embodiment, the more new strategy can include:Carry required parameter request content distribution network clothes Business, wherein the required parameter can include being locally stored the cryptographic Hash and latest edition of the script file of middle local cache The cryptographic Hash of number corresponding script file;If in content delivery network service there are the script file of local cache and Middle local is locally stored according to the character difference update in character difference between the corresponding script file of latest edition number The script file of caching.
In the exemplary embodiment, the more new strategy can also include:If there is no this in content delivery network service Character difference between the script file of ground caching and the corresponding script file of latest edition number, by local cache The script file and the corresponding script file of latest edition number, which are compared, obtains the character difference.
In the exemplary embodiment, the more new strategy can also include:The character difference storage obtained will be compared Into content delivery network service.
The method for Website page loading that disclosure embodiment provides, using PWA technologies, by using service work Carry out cache resources as group, storage includes the first document of the configuration information of script file, and there is no this in this way in being locally stored The script file of ground caching, can pull static script by the configuration information of script file from content delivery network service File is simultaneously stored into being locally stored, and can realize that terminal device loads the local in the case where network signal is weaker and deposits in this way The script file cached in storage realizes the offline loading of Website page, weaker in network signal in the prior art so as to solve In the case of, the technical issues of website homepage can not all be opened.
The method for Website page loading described in above-mentioned Fig. 1 illustrate below by example shown in Fig. 2 It is bright, but it's not limited to that for the disclosure.
As shown in Fig. 2, the method provided in this embodiment for Website page loading can be divided into two stages-structure rank Section and dial-tone stage.
The structure stage uses the plugin of Web pack.
For plugin in project build, plugin can generate chunkHash values according to the content of script file, and plugin is same When can ask to generate a commitID value as the script file only for the diff servers of incremental update at the moment One mark, these relevant configuration informations can be stored directly in state.Below when the page generates, plugin can will be configured The source code of information and entire project script is embedded into the first document, and wherein the source code of project script can be utilized in aforementioned state Configuration information make a decision and carry out branch circulation, i.e., hereafter the judgement 1 to 5 in dial-tone stage carried out according to configuration information it is corresponding Branch circulates.
It should be noted that above-mentioned chunkHash is unique Key values that extraction is gone using the content of script file. ChunkHash values are exactly the cryptographic Hash of script file.Every time after the completion of coding, if the content of script file changes, phase Answering the cryptographic Hash of script file will become;If the content of script file is constant, the cryptographic Hash of corresponding scripts file is constant.
Wherein, above-mentioned commitID be for confirming unique value, ensure diff (script file of local cache and Character diversity ratio between the corresponding corresponding scripts file of latest edition number to) result can be unique, diff servers need over there One unique commitID value confirms the unique of script file, if sending out the request of script file content comparison in this way, Diff servers just know which script file taken.For diff servers, commitID is unique mark of script file Know, be which script file for distinguishing.
ChunkMap in Fig. 2 refers to that one kind one of the corresponding cryptographic Hash of each script file (chunkHash values) is a pair of It should be related to, because the script file of a usual Website page has very much, all store, Map is the corresponding meaning. OutputOptions is the explanation of some relevant informations.
Dial-tone stage, generation is not when can be because currently there be many different situation (following different judgement causes) in this stage Same branch.
Wherein, dial-tone stage whole strategy is made a decision centered on minimum availability browsing process, and whole flow process starts It in accessing Website page, then performs various branches and judges, finally start to perform the script file that the structure stage writes, normally Access Website page.
Judge 1- services groups:Judge whether browser is supported to service using the project script source code for building stage insertion Working group, if the browser support services group, then can be directly acquired from SW the first document code and The files such as the relevant picture that can be stored and/or font.If the browser does not support SW, it is possible to remove Node servers First document is obtained in the middle.After judging 1, then start the code of project implementation script, start second herein Secondary branch judges.
Method provided in this embodiment for Website page loading can also cache some texts using PWA technologies simultaneously The resource of part rank, and not simple scripted code.
Although Website page can be cached by SW and loaded only with SW it should be noted that being said from technical principle Required resource, but due to current SW coverage rate the problem of, for compatibility, only cached in part in SW in the present embodiment Hold such as Html documents and CSS files, and script file is still buffered in being locally stored, in this way, to judging that 1 can only omit The network request of first time, behind be locally stored can be needed for loading page a part of code.The content cached in SW may only The homepage of website is accessed, can not interact, the interaction of the page can be just realized by the script file in being locally stored.
Judge that 2- whether there is local cache:The project script source code being embedded in using the structure stage judges whether local Caching judges whether there is buffered script file in being locally stored.If there is no buffered foot in being locally stored This document, the static file in direct pulled content distribution network, then performing code dependent storage strategy will be from content The static file pulled in distribution network is stored in being locally stored, and the script file of middle caching is locally stored in loading, realizes net It stands the normal access of the page, starts user's operation, until terminating.If the middle script file there are local cache is locally stored, Then enter next branch to judge.
It should be noted that the static file on content distributing network mentioned here is exactly script file.Code is related Storage strategy refer to the script file that content distributing network pulls being stored to be locally stored the inside when, to the script file In addition the mark of the project, is exactly how to recognize which script file the script file is.For example, this is pulled Script file be named as a.XXX.JS, XXX here is exactly the mark of the script file, is equivalent to and gives a name to script file.
Judge that 3- cryptographic Hash consistency judges:Using the project script source code for building stage insertion, in being locally stored Cryptographic Hash in the configuration information state issued there are the cryptographic Hash and latest edition script file of script file compares, and sees Whether the two is consistent.
In the present embodiment, if the cryptographic Hash of the two is consistent, then can directly read and be locally stored what the inside cached Then script file performs, realize the normal access of Website page, can start user's operation.If middle presence is locally stored The cryptographic Hash of the good corresponding script file of cryptographic Hash and latest edition of script file is inconsistent, is put into next branch and sentences It is disconnected.
The method that the embodiment of the present disclosure provides, in judging to be locally stored using the cryptographic Hash of the content generation of script file Whether the script file of local cache needs to update rather than determines to be locally stored using single version number of the prior art Whether the script file of middle local cache, which needs, updates, and the script file do not corrected one's mistakes more in this way will not generate update request, keep away The waste of resource is exempted from.The reason is that, many times change of the version number of script file is not meant to that the script file is true Have occurred and change, in existing webpage, often the script file to be used of webpage can have more than ten or more, more A new version number will be generated to all script files of the webpage by changing one of script file, if script file Between again there are various adduction relationships, will become more chaotic, judge this only according to the version number of script file Whether the script file of local cache needs to update in ground storage, will result in a large amount of waste and unnecessary request, such as The fruit webpage can more amplify the loss of these resources during being in iteratively faster.
Judge whether 4- forces update to judge:Coding stage coder issue script file each version when, It can be configured whether the script file of current version needs to force to update simultaneously.
Wherein, if user accesses Website page, the project script source code of the current site page can be according to the configuration in state Information come be confirmed whether need force update.If the script file of middle local cache, which is locally stored, to be needed to force update, then It begins to according to more new strategy be locally stored the update (introducing details below) of the script file of middle local cache, has updated Bi Hou performs the updated scripted code that middle local cache is locally stored, and normally accesses Website page, starts user's operation, Until terminate.If it is determined that the corresponding script file of current version number does not need to force update, it is possible to enter next branch Judge.
Judge that the weak nets of 5- judge:Whether the terminal device current network conditions for judging to send Website page access request belong to Weak net.
If the terminal device is currently strong network, can directly start more new strategy, wherein, more new strategy here and More new strategy above is identical, after the script file update of middle caching is locally stored, performs the script that middle caching is locally stored Scripted code in file starts the access of Website page.If the terminal device is currently at vulnerable network situation, can first read Scripted code buffered in being locally stored (scripted code in script file or script file) is taken, after reading, is started Code is performed, ensures that the normal browsing process of user will not be because the network problem load time is long or interrupts.Further, exist Later, the loading more new strategy of backstage delay ensures that the promptness of the version of the script file of middle caching is locally stored.Under at least If secondary network condition or vulnerable network, access be the current time latest edition.
During due to user by terminal device actual access webpage, network condition when opening website is diversification 's.In the present embodiment, it can judge whether current network conditions belong to vulnerable network by a field in browser.
For example, the terminal device for the user that is in is surfed the Internet with wifi, the current net of the terminal device may determine that at this time Network situation is strong network, directly more new strategy described in beginning, to the script file of server acquisition request latest edition, and will be obtained The corresponding script file of middle local cache is locally stored in the script file covering for the latest edition got.On the other hand, it detects If surfing the Internet to using the data traffic of mobile phone, 2G and/or 3G can be set as vulnerable network, and 4G is strong network.But the disclosure is simultaneously This is not limited to, specifically can independently be set according to application scenarios.
The method for Website page loading that disclosure embodiment provides, can be by the way that larger script file be deposited Enter to be locally stored, when the script file is without more new version, script text can be obtained directly from the local cache being locally stored Part, without being loaded from server, so as to reduce download resource.On the other hand, can also script file need update when, Updated script file deposit is loaded from server to be locally stored, and directly can be read and be held from being locally stored in use next time The updated script file of row.If the renewal time of website and webpage is too long, can give tacit consent to from middle reading script file is locally stored, User is allowed also normally to open Website page when network is poor, while is continuing the script to server request new version from the background File, and be stored in and be locally stored after asking successfully reduces and loading failure or load time is brought long to ask since network is poor Topic, substantially increases Website page loading velocity.
In the embodiment of the present invention, the more new strategy can be by the Hash for the script file that middle current cache is locally stored The cryptographic Hash of value script file corresponding with latest edition number is as required parameter, request content distribution network service, if interior Content distributing network service has existed the data after diff is calculated and (script file and latest edition of middle current cache is locally stored Character difference between this number corresponding script file both of these documents), just directly return to the data.If content distributing network There is no the data after diff calculating, diff servers of arriving go to calculate the script text that middle current cache is locally stored in real time for service Character difference between part and the corresponding script file both of these documents of latest edition number returns to i.e. two files of difference result of calculation Between character difference, while will be stored on difference result of calculation Hui Yuan to content distributing network, in case next time uses. After browser takes the character difference results of newest script file, middle local cache is locally stored according to the character difference update Script file.
It is not by the script file of local cache it should be noted that when diff servers compare in the embodiment of the present disclosure Cryptographic Hash and the corresponding script file of latest edition number cryptographic Hash compare, but compare (diff) local cache script text The character difference of the script file of part and corresponding the two different editions of script file of latest edition number.
Compared with prior art, the method for Website page loading of the present embodiment uses the other update machine of character level System, reduces bandwidth request during each update, improves the time of the result of weak return off the net.
In this way, present embodiment is the corresponding script file of script file and latest edition number by current local cache Cryptographic Hash as required parameter, request content distribution network service, return is data after diff servers calculate, i.e., only The character difference of the script file of two different editions is returned, and indirect pulls entire newest script file.And existing skill It is directly to load Website page, and newest script is literary to the newest entire script file of server acquisition request in art During the deposit of the configuration informations such as part and its version number is locally stored, if newest script file is excessive, request can be caused to return and compared Slowly, user needs to wait for longer time that could open webpage.
The method for Website page loading that disclosure embodiment provides, has used PWA technologies, utilizes SW storages the One document code caches code and file needed for the page, improves the utilization rate and hit rate of caching, can solve existing skill It is not issue that the even offline request of weak net, which is easy to cause access failure and the slow-footed problem of page open, optimum state, in art In the case of new version, support the browser energy offline access page completely of services group, do not generate any network request, remove It is non-to have relevant operation, it is achieved thereby that the weak net availability of Website page loading, i.e., it, can be utmostly in the situation of vulnerable network Guarantee goods batch availability, blank page or the loading pages will not therefore occur, so as to ensure that the body of product It tests.
On the other hand, the method for Website page loading that disclosure embodiment provides is pure net station scheme, is not required to Want the participation of App developer.Compared with prior art, the method for Website page loading that disclosure embodiment provides Various loading strategies are added to, the availability of goods batch rather than rough update loading is ensure that, substantially increases product Experience, under particularly weak net environment, preferentially perform local cache rather than update.
Fig. 3 is the schematic diagram according to a kind of device loaded for Website page shown in an illustrative embodiments.
As shown in figure 3, the device 300 for Website page loading in the present embodiment can include document acquisition module 310th, static file pulls module 320, file local cache module 330 and page load-on module 340.
If document acquisition module 310 can be used for receiving accession page request, the first text is obtained from services group Shelves, wherein first document includes the configuration information of script file.
It can be used for the script file is not present in being locally stored if static file pulls module 320, be matched according to described Confidence breath obtains the script file from content delivery network service.
The script file that file local cache module 330 can be used for obtain from content delivery network service is deposited Storage is into being locally stored.
Page load-on module 340 can be used for the script file that middle caching is locally stored in loading.
In the exemplary embodiment, the configuration information can include the cryptographic Hash of the script file.For website pages The device 300 of face loading can also include cryptographic Hash update module and cryptographic Hash memory module.Wherein, the cryptographic Hash update mould If the content that block can be used for the script file changes, the cryptographic Hash of the script file after generation change.It is described Cryptographic Hash memory module can be used for storing the cryptographic Hash of the script file after change to the configuration of the script file In information.
In the exemplary embodiment, the configuration information can also include the version number of the script file.
In the exemplary embodiment, the device 300 for Website page loading can also include cryptographic Hash comparison module.Its In, if the cryptographic Hash comparison module can be used for the middle local cache there are the script file is locally stored, judge local Whether the cryptographic Hash of the cryptographic Hash script file corresponding with latest edition number of the script file of caching is consistent.The page If load-on module 340 can be also used for the cryptographic Hash foot corresponding with latest edition number of the script file of local cache The cryptographic Hash of this document is consistent, and the script file of middle local cache is locally stored in loading.
In the exemplary embodiment, whether the configuration information can also need to force newer including the script file Mark, the device 300 for Website page loading can also include forcing update judgment module and script file update mould Block.Wherein, if the cryptographic Hash and latest edition of the script file that update judgment module is forced to can be used for local cache The cryptographic Hash of this number corresponding script file is inconsistent, and middle local cache is locally stored according to configuration information judgement Whether the script file needs to force to update.The script file update module can be used for if middle local cache is locally stored The script file need to force update, the script of middle local cache is locally stored according to preset update policy update File.Page load-on module 340 can be also used for the updated script file that middle caching is locally stored in loading.
In the exemplary embodiment, the device 300 for Website page loading can also include network state judgment module. Wherein, if the script file that the network state judgment module can be used for being locally stored middle local cache does not need to force Update, judges current network state.If the script file update module can be also used for current network and be in first state, root The script file of middle local cache is locally stored according to the preset update policy update.
In the exemplary embodiment, if page load-on module 340 can be also used for current network and be in the second state, loading The script file of middle local cache is locally stored.
In the exemplary embodiment, the script file update module can be also used for after predetermined time delay, root The script file of middle local cache is locally stored according to the preset update policy update.
In the exemplary embodiment, the more new strategy can include:Carry required parameter request content distribution network clothes Business, wherein the required parameter includes the cryptographic Hash of the script file of middle local cache and latest edition number pair is locally stored The cryptographic Hash of the script file answered;If there are the script files of local cache and newest in content delivery network service Middle local cache is locally stored according to the character difference update in character difference between the corresponding script file of version number The script file.
In the exemplary embodiment, the more new strategy can also include:If there is no this in content delivery network service Character difference between the script file of ground caching and the corresponding script file of latest edition number, by local cache The script file and the corresponding script file of latest edition number, which are compared, obtains the character difference.
In the exemplary embodiment, the more new strategy can also include:The character difference storage obtained will be compared Into content delivery network service.
In the exemplary embodiment, for the device 300 of Website page loading can include that alternative document can also be included Acquisition module, the alternative document acquisition module can be used for obtaining storage picture and/or word etc. from services group Alternative document.
In the exemplary embodiment, if document acquisition module 310 can be also used for the browser and not support services Group obtains first document from node server.
It should be noted that the specific implementation of the module for being used for the device that Website page loads in foregoing invention embodiment The content of the method for Website page loading in the inventive embodiments shown in above-mentioned Fig. 1 and 2 is referred to, it is no longer superfluous herein It states.
According to the another exemplary embodiment of the disclosure, additionally provide a kind of electronic equipment, can include memory, Processor and the computer program that can be run on the memory and on the processor is stored in, wherein, which is handled by this Device realizes the method and step in above-mentioned Fig. 1 or inventive embodiments shown in Fig. 2 when performing.
Below with reference to Fig. 4, it illustrates suitable for being used for realizing the structural representation of the electronic equipment 400 of the embodiment of the present application Figure.Electronic equipment shown in Fig. 4 is only an example, the function and use scope of the embodiment of the present application should not be brought any Limitation.
As shown in figure 4, electronic equipment 400 includes processor 401, it can be according to the program being stored in memory 403 And perform various appropriate actions and processing.Particularly, in accordance with an embodiment of the present disclosure, above with reference to the process of flow chart description It may be implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer program product, including holding The computer program being loaded on computer readable storage medium, the computer program are included for the method shown in execution flow chart Program code, when the computer program is performed by processor 401, perform the above-mentioned function of being limited in the system of the application. Processor 401, memory 403 and communication interface 402 are connected with each other by bus.
Flow chart and block diagram in attached drawing, it is illustrated that according to the terminal of the various embodiments of the application, server-side, method and meter Architectural framework in the cards, function and the operation of calculation machine program product.In this regard, each box in flow chart or block diagram A part for a module, program segment or code can be represented, a part for above-mentioned module, program segment or code includes one Or multiple executable instructions for being used to implement defined logic function.It should also be noted that in some implementations as replacements, side The function of being marked in frame can also be occurred with being different from the sequence marked in attached drawing.For example, two sides succeedingly represented Frame can essentially perform substantially in parallel, they can also be performed in the opposite order sometimes, this according to involved function and It is fixed.It, can be with it is also noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart The dedicated hardware based system of functions or operations as defined in execution is realized or can use specialized hardware and computer The combination of instruction is realized.
Being described in module involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set in the processor.
As on the other hand, the disclosure additionally provides a kind of computer readable storage medium, the computer-readable storage medium Matter can be included in the equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in. Above computer readable storage medium storing program for executing carries one or more program, if said one or multiple programs by one this set It is standby to perform so that the equipment includes:If receiving accession page request, the first document is obtained from services group, wherein institute State the configuration information that the first document includes script file;If there is no the script files in being locally stored, matched according to described Confidence breath obtains the script file from content delivery network service;The foot that will be obtained from content delivery network service This document is stored into being locally stored;The script file of middle caching is locally stored in loading.
It is particularly shown and described the illustrative embodiments of the disclosure above.It should be appreciated that the disclosure is unlimited In detailed construction described herein, set-up mode or implementation method;On the contrary, disclosure intention covers included in appended claims Spirit and scope in various modifications and equivalence setting.

Claims (14)

  1. A kind of 1. method for Website page loading, which is characterized in that including:
    If receiving accession page request, the first document is obtained from services group, wherein first document includes foot The configuration information of this document;
    If there is no the script files in being locally stored, institute is obtained from content delivery network service according to the configuration information State script file;
    The script file obtained from content delivery network service is stored into being locally stored;
    The script file of middle caching is locally stored in loading.
  2. 2. according to the method described in claim 1, it is characterized in that, the configuration information includes the Hash of the script file Value, the method further include:
    If the content of the script file changes, the cryptographic Hash of the script file after generation change;
    The cryptographic Hash of the script file after change is stored into the configuration information of the script file.
  3. 3. according to the method described in claim 2, it is characterized in that, the configuration information further includes the version of the script file Number, the method further includes:
    If the middle local cache there are the script file is locally stored, the cryptographic Hash of the script file of local cache is judged Whether the cryptographic Hash of the script file corresponding with latest edition number is consistent;
    If the cryptographic Hash one of the cryptographic Hash of the script file of the local cache script file corresponding with latest edition number It causes, the script file of middle local cache is locally stored in loading.
  4. 4. according to the method described in claim 3, it is characterized in that, the configuration information further includes whether the script file needs Newer mark is forced, the method further includes:
    If the cryptographic Hash of the cryptographic Hash of the script file of the local cache script file corresponding with latest edition number is not Unanimously, whether the script file of middle local cache is locally stored according to configuration information judgement needs to force to update;
    It is local according to preset update policy update if the script file of middle local cache, which is locally stored, to be needed to force update The script file and its configuration information of local cache in storage;
    The updated script file of middle caching is locally stored in loading.
  5. 5. it according to the method described in claim 4, it is characterized in that, further includes:
    If the script file that middle local cache is locally stored does not need to force update, current network state is judged;
    If current network is in first state, according to being locally stored middle local cache in the preset update policy update Script file.
  6. 6. it according to the method described in claim 5, it is characterized in that, further includes:
    If current network is in the second state, the script file of middle local cache is locally stored in loading.
  7. 7. it according to the method described in claim 6, it is characterized in that, further includes:
    After predetermined time delay, the script of middle local cache is locally stored according to the preset update policy update File.
  8. 8. according to the method described in claim 5, it is characterized in that, the more new strategy includes:
    Required parameter request content distribution network service is carried, wherein the required parameter includes middle local cache is locally stored The cryptographic Hash of the corresponding script file of cryptographic Hash and latest edition number of the script file;
    If there are the corresponding scripts of the script file and latest edition number of local cache in content delivery network service The script file of middle local cache is locally stored according to the character difference update for character difference between file.
  9. 9. according to the method described in claim 8, it is characterized in that, the more new strategy further includes:
    If the script file of local cache and the corresponding foot of latest edition number are not present in content delivery network service Character difference between this document, by the corresponding script file of the script file and latest edition number of local cache into Row, which compares, obtains the character difference.
  10. 10. according to the method described in claim 9, it is characterized in that, the more new strategy further includes:
    The character difference for comparing acquisition is stored into content delivery network service.
  11. 11. it according to the method described in claim 1, it is characterized in that, further includes:
    The alternative document of storage picture and/or word is obtained from services group.
  12. 12. it according to the method described in claim 1, it is characterized in that, further includes:
    If the browser does not support services group, first document is obtained from node server.
  13. 13. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on the processor Computer program, which is characterized in that claim 1-12 any one of them methods are realized when the program is performed by the processor Step.
  14. 14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled Such as claim 1-12 any one of them method and steps are realized when device performs.
CN201810299677.8A 2018-04-04 2018-04-04 Method and device for loading website page Active CN108228282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810299677.8A CN108228282B (en) 2018-04-04 2018-04-04 Method and device for loading website page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810299677.8A CN108228282B (en) 2018-04-04 2018-04-04 Method and device for loading website page

Publications (2)

Publication Number Publication Date
CN108228282A true CN108228282A (en) 2018-06-29
CN108228282B CN108228282B (en) 2021-08-27

Family

ID=62657371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810299677.8A Active CN108228282B (en) 2018-04-04 2018-04-04 Method and device for loading website page

Country Status (1)

Country Link
CN (1) CN108228282B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445813A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 A kind of file quoting method and device
CN109871499A (en) * 2019-01-16 2019-06-11 中国平安财产保险股份有限公司 Page loading method and client
WO2020034952A1 (en) * 2018-08-15 2020-02-20 深圳点猫科技有限公司 Method for optimizing webpage loading speed on basis of browser caching mechanism and electronic device
CN111125573A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Webpage data processing method and device and electronic equipment
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111371585A (en) * 2018-12-26 2020-07-03 北京奇虎科技有限公司 Configuration method and device for CDN node
CN111382344A (en) * 2018-12-27 2020-07-07 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN111381932A (en) * 2020-03-06 2020-07-07 咪咕文化科技有限公司 Method and device for triggering application program change, electronic equipment and storage medium
CN111769965A (en) * 2019-10-12 2020-10-13 北京京东尚科信息技术有限公司 Information processing method, device and equipment
CN111767492A (en) * 2020-06-30 2020-10-13 中国平安财产保险股份有限公司 Picture loading method and device, computer equipment and storage medium
CN112073405A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Webpage data loading method and device, computer equipment and storage medium
CN112214270A (en) * 2020-09-18 2021-01-12 北京鸿腾智能科技有限公司 Page redrawing method, device, equipment and storage medium
CN112286907A (en) * 2020-10-26 2021-01-29 中信百信银行股份有限公司 Database configuration method and device, electronic equipment and readable storage medium
CN112764759A (en) * 2021-01-21 2021-05-07 商客通尚景科技(上海)股份有限公司 Method and system for dynamically adding or refreshing webpage
CN113127353A (en) * 2021-04-20 2021-07-16 顶象科技有限公司 Gray scale publishing method and device
CN113190228A (en) * 2021-05-14 2021-07-30 北京字节跳动网络技术有限公司 Method and device for generating script file and computer storage medium
CN114117273A (en) * 2021-11-04 2022-03-01 深圳依时货拉拉科技有限公司 Page loading method and device, computer equipment and storage medium
CN114924826A (en) * 2022-06-09 2022-08-19 北京百度网讯科技有限公司 Page fusion method, device and equipment based on different code platforms

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001027717A2 (en) * 1999-10-11 2001-04-19 I2 Technologies, Inc. Distributed session services
JP2005070934A (en) * 2003-08-21 2005-03-17 Nec Software Chubu Ltd Webpage update information report system, webpage update information report method, and program
US20070288328A1 (en) * 2006-03-31 2007-12-13 Digital River, Inc. Web-Based Product Ordering Method
CN101431525A (en) * 2007-11-06 2009-05-13 陈明杰 Acceleration method and system for network content loading, its server and terminal
CN102750285A (en) * 2011-04-19 2012-10-24 英业达股份有限公司 system and method for providing offline browsing
CN104704485A (en) * 2012-07-19 2015-06-10 格兰斯电讯网络有限公司 Integrating co-browsing with other forms of information sharing
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device
CN105630981A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Network resource loading and configuration method and device
CN106066868A (en) * 2016-05-27 2016-11-02 北京小米移动软件有限公司 Webpage loading method and device
CN107465707A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of content refresh method and device of content distributing network
CN107463613A (en) * 2017-06-29 2017-12-12 北京五八信息技术有限公司 Page loading method and device
CN107508903A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 The access method and terminal device of a kind of web page contents
CN107547629A (en) * 2017-07-20 2018-01-05 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001027717A2 (en) * 1999-10-11 2001-04-19 I2 Technologies, Inc. Distributed session services
JP2005070934A (en) * 2003-08-21 2005-03-17 Nec Software Chubu Ltd Webpage update information report system, webpage update information report method, and program
US20070288328A1 (en) * 2006-03-31 2007-12-13 Digital River, Inc. Web-Based Product Ordering Method
CN101431525A (en) * 2007-11-06 2009-05-13 陈明杰 Acceleration method and system for network content loading, its server and terminal
CN102750285A (en) * 2011-04-19 2012-10-24 英业达股份有限公司 system and method for providing offline browsing
CN104704485A (en) * 2012-07-19 2015-06-10 格兰斯电讯网络有限公司 Integrating co-browsing with other forms of information sharing
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device
CN105630981A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Network resource loading and configuration method and device
CN106066868A (en) * 2016-05-27 2016-11-02 北京小米移动软件有限公司 Webpage loading method and device
CN107465707A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of content refresh method and device of content distributing network
CN107463613A (en) * 2017-06-29 2017-12-12 北京五八信息技术有限公司 Page loading method and device
CN107547629A (en) * 2017-07-20 2018-01-05 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded
CN107508903A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 The access method and terminal device of a kind of web page contents

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034952A1 (en) * 2018-08-15 2020-02-20 深圳点猫科技有限公司 Method for optimizing webpage loading speed on basis of browser caching mechanism and electronic device
CN109445813A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 A kind of file quoting method and device
CN111125573A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Webpage data processing method and device and electronic equipment
CN111371585A (en) * 2018-12-26 2020-07-03 北京奇虎科技有限公司 Configuration method and device for CDN node
CN111382344B (en) * 2018-12-27 2023-04-28 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN111382344A (en) * 2018-12-27 2020-07-07 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN109871499A (en) * 2019-01-16 2019-06-11 中国平安财产保险股份有限公司 Page loading method and client
CN111769965A (en) * 2019-10-12 2020-10-13 北京京东尚科信息技术有限公司 Information processing method, device and equipment
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111381932A (en) * 2020-03-06 2020-07-07 咪咕文化科技有限公司 Method and device for triggering application program change, electronic equipment and storage medium
CN111381932B (en) * 2020-03-06 2024-03-22 咪咕文化科技有限公司 Method, device, electronic equipment and storage medium for triggering application program change
CN111767492A (en) * 2020-06-30 2020-10-13 中国平安财产保险股份有限公司 Picture loading method and device, computer equipment and storage medium
CN112073405A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Webpage data loading method and device, computer equipment and storage medium
CN112073405B (en) * 2020-09-03 2024-02-06 中国平安财产保险股份有限公司 Webpage data loading method and device, computer equipment and storage medium
CN112214270A (en) * 2020-09-18 2021-01-12 北京鸿腾智能科技有限公司 Page redrawing method, device, equipment and storage medium
CN112286907A (en) * 2020-10-26 2021-01-29 中信百信银行股份有限公司 Database configuration method and device, electronic equipment and readable storage medium
CN112764759A (en) * 2021-01-21 2021-05-07 商客通尚景科技(上海)股份有限公司 Method and system for dynamically adding or refreshing webpage
CN112764759B (en) * 2021-01-21 2023-10-27 商客通尚景科技(上海)股份有限公司 Method and system for dynamically adding or refreshing web pages
CN113127353A (en) * 2021-04-20 2021-07-16 顶象科技有限公司 Gray scale publishing method and device
CN113190228B (en) * 2021-05-14 2024-01-26 抖音视界有限公司 Script file generation method and device and computer storage medium
CN113190228A (en) * 2021-05-14 2021-07-30 北京字节跳动网络技术有限公司 Method and device for generating script file and computer storage medium
CN114117273A (en) * 2021-11-04 2022-03-01 深圳依时货拉拉科技有限公司 Page loading method and device, computer equipment and storage medium
CN114924826A (en) * 2022-06-09 2022-08-19 北京百度网讯科技有限公司 Page fusion method, device and equipment based on different code platforms
CN114924826B (en) * 2022-06-09 2023-08-01 北京百度网讯科技有限公司 Page fusion method, device and equipment based on different code platforms

Also Published As

Publication number Publication date
CN108228282B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN108228282A (en) For the method and device of Website page loading
RU2673403C2 (en) Website access method, device and website system
US9064029B2 (en) Dynamically identifying and evaluating component hierarchy for rendering content components on a webpage
CN105446750B (en) The method and apparatus that WebApp starting runs, generates image file
US9253013B1 (en) Efficient delivery of content by virtualization of dynamic interaction with the document object model
CN107391664A (en) Page data processing method and system based on WEB
WO2017124962A1 (en) Method, apparatus, and system for hot-deploying application
CN109388766A (en) The method and apparatus of page load
CN102109989A (en) Method, device and system for controlling browser cache
CN103095743A (en) Handling method and system of grey release
CN103873502A (en) Cache updating method and system, and update resource providing method and system
CN102447688A (en) Webpage game resource accelerator and acceleration method
CN102882974A (en) Method for saving website access resource by website identification version number
CN106649395A (en) Webpage updating method and apparatus
CN107463657B (en) File operation method and terminal
CN106817391A (en) Document breakpoint transmission method and apparatus
CN103324756A (en) Method and device for increasing access speed of browser
CN110244962A (en) Load application file and device, system, storage medium, electronic device
CN107483591A (en) A kind of script file synchronous method and device
US20110302285A1 (en) Update server to update rendered content
CN110765208A (en) Data synchronization method and device, electronic equipment and storage medium
CN112473131A (en) Method and device for realizing game running and computer readable storage medium
CN105871961B (en) A kind of method and device of gray scale publication routing
CN106161623A (en) Caching server, renewal server and data-updating method
CN113779458A (en) Method and device for accelerating application loading, electronic 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
GR01 Patent grant
GR01 Patent grant