CN107678820B - Webpage processing method, device, server, terminal equipment and medium - Google Patents

Webpage processing method, device, server, terminal equipment and medium Download PDF

Info

Publication number
CN107678820B
CN107678820B CN201710913466.4A CN201710913466A CN107678820B CN 107678820 B CN107678820 B CN 107678820B CN 201710913466 A CN201710913466 A CN 201710913466A CN 107678820 B CN107678820 B CN 107678820B
Authority
CN
China
Prior art keywords
code
webpage
web page
logic
requested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710913466.4A
Other languages
Chinese (zh)
Other versions
CN107678820A (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 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 CN201710913466.4A priority Critical patent/CN107678820B/en
Publication of CN107678820A publication Critical patent/CN107678820A/en
Application granted granted Critical
Publication of CN107678820B publication Critical patent/CN107678820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a webpage processing method, a webpage processing device, a server, terminal equipment and a medium, relates to the field of computer application, and is used for solving the problems of large webpage refreshing flow and low refreshing speed in the prior art. The webpage processing method comprises the following steps: receiving a webpage request of a browser; analyzing the requested webpage to obtain a first HTML code; determining a CSS style and a JS logic code required by the requested webpage; extracting a link of the CSS style and the JS logic code; and assembling the CSS style into a head tag of the first HTML code, assembling a link of the JS logic code into a main body part of the first HTML code, obtaining a second HTML code corresponding to the current webpage and sending the second HTML code to a browser. The invention can reduce the network transmission flow, improve the webpage refreshing speed and give consideration to SEO, and is suitable for various webpage browsers and servers.

Description

Webpage processing method, device, server, terminal equipment and medium
Technical Field
The present invention relates to the field of computer applications, and in particular, to a method, an apparatus, a server, a terminal device, and a medium for processing a web page.
Background
In the modern times, the internet has become very popular, web browsing has become an essential part of people's life, and no matter whether the types of stations such as news, shopping, games, and applications are mainly realized by web technology, even many APPs are embedded with web content or realized by web technology. The web page technology can be completed by various development languages, such as common JAVA, PHP, Python, JavaScript, and the like. At present, a website has stepped into the WEB 2.0 era, a user opens a webpage for the first time, namely, refreshing and displaying all pages, and some subsequent small functions can be displayed under the condition that the page is not refreshed and whitened, but if the content of the page is greatly changed or the page is directly jumped, the whole webpage needs to be refreshed, the network flow is large, and the refreshing speed is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a server, a terminal device, and a medium for processing a web page, so as to solve the problems of large web page refresh traffic and slow refresh rate in the prior art.
In a first aspect, an embodiment of the present invention provides a web page processing method, which is used for a server, and includes:
receiving a webpage request of a browser;
analyzing the requested webpage to obtain a first HTML code of a hypertext markup language;
determining CSS style and JavaScript logic code of the cascading style sheet required by the requested webpage;
extracting a link of the CSS style and the JavaScript logic code;
assembling the CSS style into a head tag of the first HTML code, and assembling a link of the JavaScript logic code into a main body part of the first HTML code to obtain a second HTML code corresponding to the requested webpage;
and sending the second HTML code to a browser.
With reference to the first aspect, in a first implementation manner of the first aspect, before receiving a web page request of a browser, the method further includes:
generating a webpage logic code in a single-page development mode;
packaging the webpage logic codes into an entry file and each function package code; wherein, each function package code can be downloaded through the entry file;
and storing the entry file corresponding to the webpage logic code and each function package code.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the JavaScript logic code includes invocation logic of each feature pack code required by the entry file and the requested web page;
wherein the assembling the link of the JavaScript logic code to the main body part of the first HTML code comprises:
assembling the link of the portal file to a main body part of the first HTML code to serve as a link of a first JavaScript logic code required by the requested webpage;
and assembling links of all function package codes required by the requested webpage to the main body part of the first HTML according to the calling logic.
With reference to the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the packaging the web page logic code into an entry file and each function package code specifically includes:
and packaging the webpage logic codes into an entry file and each function package code through a code packaging tool Webpack or Browserify.
In a second aspect, an embodiment of the present invention provides a web page processing method, which is used for a terminal device, and includes:
sending a webpage request to a server side;
receiving a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage;
analyzing the second HTML code to obtain a link of a first HTML code, a CSS style and a JavaScript logic code corresponding to the requested webpage;
downloading the JavaScript logic code from the server side according to the JavaScript logic code link;
and dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code to obtain and display the requested webpage.
With reference to the second aspect, in a first implementation manner of the second aspect, the JavaScript logic code includes an entry file and invocation logic of each feature pack code required by the requested web page; each function package code can be downloaded through the portal file;
wherein, the downloading the JavaScript logic code from a server side according to the link of the JavaScript logic code comprises:
downloading the entry file from a server side according to the link of the entry file in the JavaScript logical code link;
and operating the entry file, and downloading each function package code required by the requested webpage according to the calling logic.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, after dynamically rendering the first HTML code and the CSS style by using the downloaded JavaScript logic code, and obtaining and displaying the requested web page, the method further includes:
receiving click operation on another webpage link in the current webpage;
downloading a function package code required by the other webpage through the portal file;
and dynamically rendering the current webpage by adopting the function package code required by the other webpage, and realizing the jump from the current webpage to the other webpage.
With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, after receiving a click operation on a link of another web page in a current web page, before downloading, through the portal file, a feature pack code required by the another web page, the web page processing method further includes:
judging whether a function package code required by the other webpage exists locally;
and if the function package code required by the other webpage does not exist locally, downloading the function package code required by the other webpage through the portal file.
In a third aspect, an embodiment of the present invention provides a web page processing apparatus, for a server, including:
the first receiving module is used for receiving a webpage request of a browser;
the first analysis module is used for analyzing the requested webpage to obtain a first hypertext markup language (HTML) code;
the determining module is used for determining the CSS style and the JavaScript logic code of the cascading style sheet required by the requested webpage;
the extraction module is used for extracting the link between the CSS style and the JavaScript logic code;
the assembling module is used for assembling the CSS style into a head label of the first HTML code, and assembling a link of the JavaScript logic code into a main body part of the first HTML code to obtain a second HTML code corresponding to the requested webpage;
and the sending module is used for sending the second HTML code to a browser.
With reference to the third aspect, in a first implementation manner of the third aspect, the method further includes:
the development module is used for generating a webpage logic code in a single-page development mode;
the packaging module is used for packaging the webpage logic codes into an entry file and each function package code; wherein, each function package code can be downloaded through the entry file;
and the storage module is used for storing the entry file corresponding to the webpage logic code and each function package code.
With reference to the first implementation manner of the third aspect, in a second implementation manner of the third aspect, the JavaScript logic code determined by the determining module includes invocation logic of each feature pack code required by the entry file and the requested web page;
the assembling module is specifically configured to assemble the CSS style into a header tag of the first HTML code, assemble a link of the entry file into a main body portion of the first HTML code as a link of a first JavaScript logic code required by the requested web page, and assemble links of each feature pack code required by the requested web page into the main body portion of the first HTML code according to the call logic.
With reference to the first implementation manner of the third aspect, in a third implementation manner of the third aspect, the packaging module is specifically configured to package the web page logic codes into an entry file and each function package code through a code packaging tool Webpack or browse.
In a fourth aspect, an embodiment of the present invention provides a web page processing apparatus, configured to a terminal device, where the apparatus includes:
the request module is used for sending a webpage request to the server side;
the second receiving module is used for receiving a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage;
the second analysis module is used for analyzing the second HTML codes to obtain links of the first HTML codes, the CSS styles and the JavaScript logic codes corresponding to the requested webpage;
the downloading module is used for downloading the JavaScript logic codes from the server side according to the JavaScript logic code link;
and the rendering module is used for dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code to obtain and display the requested webpage.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the downloading module is specifically configured to first download the entry file from a server according to a link of the entry file in the JavaScript logic code link, then run the entry file, and download each function package code required by the requested web page according to a call logic of each function package code required by the requested web page recorded in the JavaScript logic code.
With reference to the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the second receiving module is further configured to receive a click operation on another web page link in the current web page;
the downloading module is further configured to download, through the entry file, a function package code required by another webpage corresponding to the click operation;
the rendering module is further configured to dynamically render the current webpage by using the function package code required by the other webpage, so as to realize a jump from the current webpage to the other webpage.
With reference to the second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the downloading module includes:
the judging submodule is used for judging whether the function package code required by the other webpage exists locally;
and the downloading submodule is used for downloading the function package code required by the other webpage through the entry file when the judging module judges that the function package code required by the other webpage does not exist locally.
In a fifth aspect, an embodiment of the present invention provides a server, where the server includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the web page processing method for the server in any one of the foregoing embodiments.
In a sixth aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the client; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the web page processing method for the terminal device according to any one of the foregoing embodiments.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements the web page processing method for a server according to any of the foregoing embodiments.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the web page processing method for a terminal device according to any of the foregoing embodiments.
In a ninth aspect, an embodiment of the present invention further provides an application program, configured to execute the method for processing a web page for a server according to any one of the foregoing embodiments.
In a tenth aspect, an embodiment of the present invention further provides an application program, configured to execute the method for processing a web page for a terminal device according to any of the foregoing embodiments.
The technical scheme of the invention has the following beneficial effects:
according to the scheme, when a server receives a webpage request of a browser, the requested webpage is analyzed into a first HTML code comprising the content of the requested webpage, then links of a CSS style and a JavaScript logic code required by the requested webpage are assembled into the first HTML code, a second HTML code which comprises the content of the requested webpage and is the simplest is obtained and sent to the browser, the browser builds a webpage frame according to the second HTML code, and downloads a JS code required by the requested webpage in a targeted mode according to the links in the second HTML code, so that the transmission of network traffic can be effectively reduced, the time for the browser to open the requested webpage for the first time is shortened, the traffic speed of a user is higher, the experience is better, and more contents can be browsed in limited time. When the subsequent browser needs to open other webpage links in the current webpage, the webpage does not need to be refreshed, and only the corresponding service function packet is downloaded from the server to be rendered according to the logical relation and the recorded links in the JavaScript logical code, so that the non-refreshing jump of the webpage is realized, and the search and popularization functions of the SEO are considered.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of a method for processing a web page by a server according to the present invention;
FIG. 2 is a flow chart of a method for pre-processing web page logic;
FIG. 3 is a flowchart of a second embodiment of a method for processing a web page by a server according to the present invention;
FIG. 4 is a flowchart of a first embodiment of a method for processing a web page of a terminal device according to the present invention;
FIG. 5 is a flowchart of a second embodiment of a method for processing a web page of a terminal device according to the present invention;
FIG. 6 is a schematic structural diagram of a first embodiment of a web page processing apparatus for a server according to the present invention;
FIG. 7 is a schematic structural diagram of a second embodiment of a web page processing apparatus for a server according to the present invention;
FIG. 8 is a schematic structural diagram of a first embodiment of a web page processing apparatus for a terminal device according to the present invention;
fig. 9 is a schematic structural diagram of a second embodiment of a web page processing apparatus for a terminal device according to the present invention;
FIG. 10 is a schematic structural diagram of one embodiment of a server of the present invention;
fig. 11 is a schematic structural diagram of an embodiment of a terminal device of the present invention.
Detailed Description
A web page processing method and apparatus according to an embodiment of the present invention are described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a first embodiment of a web page processing method for a server according to the present invention, which can also be regarded as a web page providing method. As shown in fig. 1, the method of this embodiment may include:
step 101, receiving a webpage request of a browser.
In this embodiment, a user inputs a Uniform Resource Locator (URL) in an address bar, and after a button such as a single-click keyboard enter requests the browser to open the URL, the browser searches for the server where the URL is located, and by querying the DNS server, the browser can obtain the IP address of the website where the URL is located. Then, the browser makes a connection request to the address, and establishes a connection to the server.
And 102, analyzing the requested webpage to obtain a first HTML code.
In this embodiment, when a server receives a web page request, a local program is run to simulate browser-side running, and a web page logic corresponding to a URL is parsed into a first HyperText Markup Language (HTML) code.
Step 103, determining a Cascading Style Sheets (CSS) Style and javascript (js) logic code required by the requested webpage.
In this embodiment, the server analyzes the CSS style and the JS logic code required for the requested web page without redundant code.
And 104, extracting the link of the CSS style and the JavaScript logic code.
And 105, assembling the CSS style into a head tag of the first HTML code, and assembling a link of the JavaScript logic code into a main body part of the first HTML code to obtain a second HTML code corresponding to the requested webpage.
In this embodiment, the CSS is assembled into the < header > tag of the first HTML code, and the link of the JavaScript logic code required by the requested web page is assembled into the < body > part of the first HTML code, so as to obtain the second HTML code composed of the simplest HTML, CSS, and JS codes.
And step 106, sending the second HTML code to a browser.
In this embodiment, when a server receives a web page request from a browser, a requested web page is parsed into a first HTML code including requested web page content, then links of CSS styles and JavaScript logic codes required by the requested web page are assembled into the first HTML code, a second HTML code which includes the requested web page content and is the simplest is obtained and sent to the browser, a page frame and page content which can be downloaded to a current page for the first time are browsed, JS codes required for rendering can be downloaded through corresponding links in the subsequent process, transmission of network traffic can be effectively reduced, time for the browser to open the requested web page for the first time is shortened, user traffic speed is faster, experience is better, more content can be browsed within limited time, and simultaneously seio can be considered to ensure a search and promotion function.
Preferably, in the above-mentioned web page processing method, before the step 101, a preprocessing method of web page logic is further included, as shown in fig. 2, the method includes the following steps 201 and 203:
step 201, generating a web page logic code in a single page development mode.
The existing website architecture adopting a Single Page web Application (SPA) mode can download complete JavaScript codes of a browser for the first time, dynamically create a browsing webpage according to the operation of a user subsequently, and improve the display speed and the user experience. The single page development mode is used to generate the web page logic code.
Step 202, packaging the web page logic codes into an entry file and each function package code.
In the existing SPA mode, due to the fact that the content of a complete JavaScript code is large, the downloading time of a browser end is long, and the time for opening a webpage for the first time is long. And the subsequent contents are rendered by JavaScript of the client, which influences the retrieval of a search engine and indirectly influences the popularization of the website, so that the method can not be applied to website development for a large number of users.
In order to solve the problem, the webpage logic codes are packaged into an entry file and each function package code, wherein each function package code can be downloaded through the entry file, namely, a downloading path, a downloading mode and the like of each function package code are defined in the entry file.
Preferably, the web page logic code can be packaged into an entry file and each function package code through a code packaging tool Webpack or Browserify.
And 203, storing the entry file corresponding to the webpage logic code and each function package code.
The entrance file corresponding to the webpage logic code and each function package code are stored in the server side so that the browser can download the entrance file and each function package code according to the subsequent webpage function, and the phenomenon that the webpage opening time is influenced and resources are wasted due to the fact that all JS codes are sent to the browser side at one time is avoided.
Fig. 3 is a flowchart of a second embodiment of a web page processing method for a server according to the present invention, which can also be regarded as a web page providing method. As shown in fig. 3, the method of this embodiment may include:
step 301, receiving a web page request of a browser.
In this embodiment, the process of step 301 is similar to that of step 101 of the above method embodiment, and is not described here again.
Step 302, analyzing the requested webpage to obtain a first HTML code.
In this embodiment, the process of step 302 is similar to step 102 of the above method embodiment, and is not described here again.
Step 303, determining the CSS style and JavaScript logic code required by the requested web page.
The JavaScript logic codes required by the requested webpage comprise pre-packaged entry files and calling logic of each function package code required by the requested webpage. In this embodiment, the process of step 303 is similar to step 103 of the above method embodiment, and is not described here again.
And step 304, extracting the link of the CSS style and the JavaScript logic code.
In this embodiment, the process of step 304 is similar to that of step 104 of the above method embodiment, and is not described here again.
And 305, assembling the CSS style into a head tag of the first HTML code.
In this embodiment, the process of step 305 is similar to that of step 105 of the above method embodiment, and is not described again here.
And step 306, assembling the link of the portal file to the main body part of the first HTML code as the link of the first JavaScript logic code required by the requested webpage.
In this embodiment, the entry file is used as the first JavaScript logic code required by the requested web page, and after receiving the second HTML, the browser may first download and execute the entry file according to the link to facilitate downloading of the subsequent feature pack code.
And 307, assembling links of all function package codes required by the requested webpage to a main body part of the first HTML according to the calling logic to obtain a second HTML code.
In this embodiment, links of each feature pack code required by the requested web page are assembled to the main body portion of the first HTML and the rear side of the entry file according to the call logic, and finally, the second HTML code is obtained.
And 308, sending the second HTML code to a browser.
In this embodiment, after the web page is logically packaged into multiple copies, only the function package code link required by the current page is provided in the second HTML code, and after the browser receives the web page logic architecture, the corresponding function package code can be downloaded through the entry file as needed, so that the transmission of network traffic can be effectively reduced, and the time for the browser to open the requested web page for the first time is shortened. When other webpage links in the requested webpage need to be opened by the subsequent browser, the webpage does not need to be refreshed, only the required service function packet needs to be downloaded from the server for rendering, so that the non-refreshing jump of the webpage is realized, and the search and popularization functions of the SEO are considered.
The invention also provides a webpage processing method for the terminal equipment where the browser is located, which corresponds to the webpage processing method for the server provided by the invention. Fig. 4 is a flowchart of a first embodiment of a method for processing a web page of a terminal device according to the present invention, which can also be regarded as a web page display method. As shown in fig. 4, the method of this embodiment may include:
step 401, sending a web page request to a server.
In this embodiment, after receiving a URL and a GO instruction input by a user in an address bar of a browser, a terminal device requests a server for a web page corresponding to the URL.
And step 402, receiving a second HTML code sent by the server.
Wherein the second HTML code includes content of the requested web page; the head label of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage.
And step 403, analyzing the second HTML code to obtain a link of the first HTML code, the CSS style and the JavaScript logic code corresponding to the requested webpage.
And step 404, downloading the corresponding JavaScript logic code from the server side according to the link of the JavaScript logic code.
In this embodiment, only the JS logical code required by the requested web page needs to be downloaded according to the link recorded in the JavaScript logical code, and other redundant codes or codes which are useless in the current web page do not need to be downloaded.
Preferably, the JavaScript logic code includes an entry file and calling logic of each feature pack code required by the requested web page; the respective feature pack codes are downloadable through the portal file. After analyzing the link of the JavaScript logic code by the browser, firstly downloading an entry file from a server side according to the link of the entry file arranged at the head in the JavaScript logic code link; and then, the entry file is operated, and according to the function package codes required by the requested webpage, which are stored in the calling logic downloading server side in a pre-packaged mode, the purpose of what is needed is achieved, and network transmission of useless JS codes is reduced.
And 405, dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code, and obtaining and displaying the requested webpage.
In the embodiment, the framework and the content of the requested webpage are constructed by adopting the first HTML code, the style of the requested webpage is adjusted by adopting the CSS style, the first HTML code and the CSS style are dynamically rendered by adopting the JavaScript logic code, and the requested webpage is obtained and displayed.
In this embodiment, the terminal device initiates a web page request to the server, parses a link of a first HTML code, a CSS style, and a JavaScript logic code corresponding to the requested web page according to a second HTML code sent by the server, and downloads a corresponding function code required by the requested web page according to the link to achieve web page rendering, so that the web page processing speed is high, and the web page access traffic is saved.
Fig. 5 is a flowchart of a second embodiment of a method for processing a web page of a terminal device, where this embodiment further includes, on the basis of the embodiment shown in fig. 4, a method step of implementing web page hopping on the basis of a current web page, and the method of this embodiment may include:
step 501, sending a web page request to a server.
In this embodiment, the process of step 501 is similar to that of step 401 of the above method embodiment, and is not described here again.
And step 502, receiving a second HTML code sent by the server.
In this embodiment, the process of step 502 is similar to step 402 of the above method embodiment, and is not described here again.
Step 503, analyzing the second HTML code to obtain a link of the first HTML code, the CSS style, and the JavaScript logic code corresponding to the requested web page.
The JavaScript logic code corresponding to the link of the JavaScript logic code comprises an entry file and calling logic of each function package code required by the requested webpage. The respective feature pack codes are downloadable through the portal file.
And step 504, downloading the entry file from the server side according to the link of the entry file in the JavaScript logical code link.
And 505, running the entry file, and downloading each function package code required by the requested webpage according to the calling logic.
In this embodiment, according to the downloading function of each function package code in the entry file, each function package code required by the requested web page is downloaded according to the call logic.
And step 506, dynamically rendering the first HTML codes and the CSS styles by adopting the downloaded function package codes, and obtaining and displaying the requested webpage.
And step 507, receiving click operation of another webpage link in the current webpage.
And step 508, downloading the function package code required by another webpage through the portal file.
Preferably, this step is to query whether the function package code required by another web page exists locally (i.e. has been downloaded) before downloading the function package code required by another web page; if the local site does not have the function package code required by another webpage, downloading the function package code required by the other webpage through the entry file; if all the function package codes required by another webpage exist locally, repeated downloading is not needed, so that the network downloading amount is reduced, and the webpage refreshing speed is further improved.
Step 509, dynamically rendering the current webpage by using the function package code required by the other webpage, so as to realize the jump from the current webpage to the other webpage.
In this embodiment, when the browser needs to open other web page links in the current web page, the web page does not need to be refreshed, and only the corresponding service function package is downloaded from the server for rendering according to the logical relationship and the recorded links in the JavaScript logic code, so as to implement the non-refresh skip of the web page, which considers the search and promotion function of the SEO, and meanwhile, if the corresponding function package code is downloaded locally, the repeated downloading is not needed, and the web page refresh speed is high.
According to the scheme, after the current page is opened by the browser, if the page is refreshed, the browser can take the URL of the address bar during refreshing as the first logic, the logic is executed again at the server, the page returns the URL of the address bar corresponding to HTML during refreshing completely, and the JavaScript logic is continued to be used in subsequent operations, so that the SEO problem can be solved well, and subsequent user experience is guaranteed.
Corresponding to the web page processing method for the server provided by the embodiment of the present invention, an embodiment of the present invention further provides a web page processing apparatus, and fig. 6 is a schematic structural diagram of a first embodiment of the web page processing apparatus according to the present invention, where the web page processing apparatus is used for the server. As shown in fig. 6, the web page processing apparatus provided by the present embodiment includes: the system comprises a first receiving module 11, a first analyzing module 12, a determining module 13, an extracting module 14, an assembling module 15 and a sending module 16; the first receiving module 11 is configured to receive a web page request of a browser; the first analysis module 12 is used for analyzing the requested webpage to obtain a first hypertext markup language (HTML) code; a determining module 13, configured to determine a CSS style and a JavaScript logic code of the cascading style sheet required by the requested web page; an extracting module 14, configured to extract a link between the CSS style and the JavaScript logic code; the assembling module 15 is configured to assemble the CSS style into the head tag of the first HTML code, and assemble the link of the JavaScript logic code into the main body portion of the first HTML code, so as to obtain a second HTML code corresponding to the requested web page; and a sending module 16, configured to send the second HTML code to the browser. The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a second embodiment of the web page processing apparatus for a server according to the present invention, as shown in fig. 7, the apparatus of the present embodiment further includes a development module 17, a packaging module 18, and a storage module 19 on the basis of the apparatus structure shown in fig. 6; the development module 17 is configured to generate a web page logic code in a single-page development mode; a packaging module 18, configured to package the web page logic code into an entry file and each function package code; wherein, each function package code can be downloaded through the entry file; and the storage module 19 is used for storing the entry file corresponding to the web page logic code and each function package code. In this embodiment, the JavaScript logic code determined by the determining module 13 includes the entry file and the call logic of each feature pack code required by the requested web page; the assembling module 15 is specifically configured to assemble the CSS style into the header tag of the first HTML code, assemble the link of the entry file into the main body portion of the first HTML code as the link of the first JavaScript logic code required by the requested web page, and assemble the link of each feature pack code required by the requested web page into the main body portion of the first HTML code according to the call logic. The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
In another preferred embodiment, the packaging module 18 is specifically configured to package the web page logic codes into an entry file and each function package code through a code packaging tool Webpack or browse.
Corresponding to the method for processing a web page for a terminal device provided by the embodiment of the present invention, an embodiment of the present invention further provides a web page processing apparatus, and fig. 8 is a schematic structural diagram of a first embodiment of the web page processing apparatus provided by the present invention, where the web page processing apparatus is used for the terminal device. As shown in fig. 8, the web page processing apparatus provided by the present embodiment includes: a request module 21, a second receiving module 22, a second parsing module 23, a downloading module 24 and a rendering module 25; the request module 21 is configured to send a web page request to a server; a second receiving module 22, configured to receive a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage; the second analyzing module 23 is configured to analyze the second HTML code to obtain a link of the first HTML code, the CSS style, and the JavaScript logic code corresponding to the requested web page; the downloading module 24 is configured to download the JavaScript logic code from the server according to the JavaScript logic code link; and the rendering module 25 is configured to dynamically render the first HTML code and the CSS style by using the JavaScript logic code, and obtain and display the requested webpage. The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
In another preferred embodiment, the JavaScript logic code corresponding to the link of the JavaScript logic code obtained by the second parsing module 23 includes an entry file and a calling logic of each function package code required by the requested web page; each function package code can be downloaded through the portal file; the downloading module 24 is specifically configured to download the entry file from the server side according to the link of the entry file in the JavaScript logic code link, then run the entry file, and download each function package code required by the requested web page according to the call logic of each function package code required by the requested web page recorded in the JavaScript logic code.
In another preferred embodiment, the second receiving module 22 is further configured to receive a click operation on another web page link in the current web page; the downloading module 24 is further configured to download, through the entry file, a function package code required by another webpage corresponding to the click operation; the rendering module 25 is further configured to dynamically render the current webpage by using the function package code required by the another webpage, so as to implement a jump from the current webpage to the another webpage. The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a second embodiment of the web page processing apparatus for a terminal device according to the present invention, as shown in fig. 9, the apparatus of this embodiment is based on the apparatus structure shown in fig. 8, and further, the downloading module 24 includes a determining sub-module 241 and a downloading sub-module 242; the second receiving module 22 is further configured to receive a click operation on another web page link in the current web page; the judging submodule 241 is configured to judge whether a function package code required by the another web page exists locally; the downloading sub-module 242 is configured to download the function package code required by the another web page through the entry file when the determining sub-module 241 determines that the function package code required by the another web page does not exist locally. If the judging submodule 241 judges that the function package code required by the other web page exists locally, repeated downloading is not required. The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Corresponding to the method for processing a web page for a server provided in the embodiment of the present invention, an embodiment of the present invention further provides a server, fig. 10 is a schematic structural diagram of an embodiment of the server of the present invention, and a flow of the embodiment shown in fig. 1 or fig. 3 of the present invention may be implemented, and as shown in fig. 10, the server may include: the device comprises a shell 31, a processor 32, a memory 33, a circuit board 34 and a power circuit 35, wherein the circuit board 34 is arranged inside a space enclosed by the shell 31, and the processor 32 and the memory 33 are arranged on the circuit board 34; a power supply circuit 35 for supplying power to each circuit or device of the electronic apparatus; the memory 33 is used for storing executable program codes; the processor 32 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 33, for performing the following operations:
receiving a webpage request of a browser;
analyzing the requested webpage to obtain a first hypertext markup language (HTML) code;
determining CSS style and JavaScript logic code of the cascading style sheet required by the requested webpage;
extracting a link of the CSS style and the JavaScript logic code;
assembling the CSS style into a head tag of the first HTML code, and assembling a link of the JavaScript logic code into a main body part of the first HTML code to obtain a second HTML code corresponding to the requested webpage;
and sending the second HTML code to a browser.
The specific execution process of the above steps by the processor 32 and the steps further executed by the processor 32 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 3 of the present invention, and are not described herein again.
Corresponding to the method for processing a web page for a terminal device provided by the embodiment of the present invention, an embodiment of the present invention further provides a terminal device, fig. 11 is a schematic structural diagram of an embodiment of the terminal device of the present invention, and a flow of the embodiment shown in fig. 4 or fig. 5 of the present invention may be implemented, as shown in fig. 11, where the terminal device may include: a housing 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the housing 21, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for performing the following operations:
sending a webpage request to a server side;
receiving a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage;
analyzing the second HTML code to obtain a link of a first HTML code, a CSS style and a JavaScript logic code corresponding to the requested webpage;
downloading the JavaScript logic code from the server side according to the JavaScript logic code link;
and dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code to obtain and display the requested webpage.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 4 to 5 of the present invention, and are not described herein again.
The server or terminal device exists in various forms including, but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio and video playing modules (such as an iPod), handheld game consoles, electronic books, and intelligent toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the web page processing method described in any of the above embodiments are implemented, or the steps of the web page processing method described in any of the above embodiments are implemented.
The embodiment of the invention also provides an application program for executing the web page processing method for the server in any one of the above embodiments.
The embodiment of the invention also provides an application program for executing the webpage processing method for the terminal equipment in any one of the above embodiments.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first", "second", "third", etc. may be used to describe various connection ports and identification information, etc. in the embodiments of the present application, these connection ports and identification information, etc. should not be limited to these terms. These terms are only used to distinguish the connection port and the identification information and the like from each other. For example, the first connection port may also be referred to as a second connection port, and similarly, the second connection port may also be referred to as a first connection port, without departing from the scope of embodiments of the present application.
The word "if," as used herein, may be interpreted as "when or" in response to determining "or" in response to detecting, "depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A web page processing method, for a server, comprising:
receiving a webpage request of a browser;
analyzing the requested webpage to obtain a first HTML code; wherein the first HTML code includes requested web page content and web page logic;
determining CSS style and JavaScript logic code of the cascading style sheet required by the requested webpage; the JavaScript logic code comprises an entry file and calling logic of each function package code required by the requested webpage; each function package code can be downloaded through the portal file;
extracting a link of the CSS style and the JavaScript logic code;
assembling the CSS style into a head tag of the first HTML code, and assembling a link of the JavaScript logic code into a main body part of the first HTML code to obtain a second HTML code corresponding to the requested webpage;
sending the second HTML code to a browser;
wherein the assembling the link of the JavaScript logic code to the main body part of the first HTML code comprises:
assembling the link of the portal file to a main body part of the first HTML code to serve as a link of a first JavaScript logic code required by the requested webpage;
and assembling links of all function package codes required by the requested webpage to the main body part of the first HTML according to the calling logic.
2. The web page processing method of claim 1, prior to receiving a web page request from a browser, further comprising:
generating a webpage logic code in a single-page development mode; the webpage logic code is a JavaScript logic code;
packaging the webpage logic codes into the entry file and each function package code;
and storing the entry file corresponding to the webpage logic code and each function package code.
3. The method for processing a web page according to claim 2, wherein the packaging the web page logic code into the entry file and each function package code specifically includes:
and packaging the webpage logic codes into the entry file and each function package code through a code packaging tool Webpack or Browserify.
4. A web page processing method is used for a terminal device, and comprises the following steps:
sending a webpage request to a server side;
receiving a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage; the JavaScript logic code comprises an entry file and calling logic of each function package code required by the requested webpage; each function package code can be downloaded through the portal file;
analyzing the second HTML code to obtain a link of a first HTML code, a CSS style and a JavaScript logic code corresponding to the requested webpage; wherein the first HTML code includes requested web page content and web page logic;
downloading the entry file from a server side according to the link of the entry file in the JavaScript logical code link;
running the entry file, and downloading each function package code required by the requested webpage according to the calling logic;
and dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code to obtain and display the requested webpage.
5. The web page processing method of claim 4, wherein after dynamically rendering the first HTML code and CSS style using downloaded JavaScript logic code to obtain and present the requested web page, further comprising:
receiving click operation on another webpage link in the current webpage;
downloading a function package code required by the other webpage through the portal file;
and dynamically rendering the current webpage by adopting the function package code required by the other webpage, and realizing the jump from the current webpage to the other webpage.
6. The web page processing method according to claim 5, wherein before downloading a feature pack code required for another web page through the portal file after receiving a click operation on another web page link in a current web page, the web page processing method further comprises:
judging whether a function package code required by the other webpage exists locally;
and if the function package code required by the other webpage does not exist locally, downloading the function package code required by the other webpage through the portal file.
7. A web page processing apparatus, for a server, comprising:
the first receiving module is used for receiving a webpage request of a browser;
the first analysis module is used for analyzing the requested webpage to obtain a first HTML code; wherein the first HTML code includes requested web page content and web page logic;
the determining module is used for determining the CSS style and the JavaScript logic code of the cascading style sheet required by the requested webpage; the JavaScript logic code comprises an entry file and calling logic of each function package code required by the requested webpage; each function package code can be downloaded through the portal file;
the extraction module is used for extracting the link between the CSS style and the JavaScript logic code;
the assembling module is used for assembling the CSS style into a head tag of the first HTML code, assembling a link of the entry file into a main body part of the first HTML code to serve as a link of a first JavaScript logic code required by the requested webpage, and assembling links of all function package codes required by the requested webpage into the main body part of the first HTML according to the calling logic to obtain a second HTML code corresponding to the requested webpage;
and the sending module is used for sending the second HTML code to a browser.
8. The web page processing apparatus according to claim 7, further comprising:
the development module is used for generating a webpage logic code in a single-page development mode; the webpage logic code is a JavaScript logic code;
the packaging module is used for packaging the webpage logic codes into the entry files and the function package codes;
and the storage module is used for storing the entry file corresponding to the webpage logic code and each function package code.
9. The web page processing apparatus according to claim 8, wherein the packaging module is specifically configured to package the web page logic code into the entry file and each function package code by a code packaging tool Webpack or browse.
10. A web page processing apparatus, for a terminal device, comprising:
the request module is used for sending a webpage request to the server side;
the second receiving module is used for receiving a second HTML code sent by the server; wherein the second HTML code includes content of the requested web page; the head tag of the second HTML code is spliced with the CSS style required by the requested webpage, and the main body part of the second HTML code is spliced with the link of the JavaScript logic code required by the requested webpage; the JavaScript logic code comprises an entry file and calling logic of each function package code required by the requested webpage; each function package code can be downloaded through the portal file;
the second analysis module is used for analyzing the second HTML codes to obtain links of the first HTML codes, the CSS styles and the JavaScript logic codes corresponding to the requested webpage; wherein the first HTML code includes requested web page content and web page logic;
the downloading module is used for downloading the entry file from a server side according to the link of the entry file in the JavaScript logic code link, then running the entry file, and downloading each function package code required by the requested webpage according to the calling logic of each function package code required by the requested webpage recorded in the JavaScript logic code;
and the rendering module is used for dynamically rendering the first HTML code and the CSS style by adopting the JavaScript logic code to obtain and display the requested webpage.
11. The web page processing apparatus according to claim 10, wherein the second receiving module is further configured to receive a click operation on another web page link in the current web page;
the downloading module is further configured to download, through the entry file, a function package code required by another webpage corresponding to the click operation;
the rendering module is further configured to dynamically render the current webpage by using the function package code required by the other webpage, so as to realize a jump from the current webpage to the other webpage.
12. The web page processing apparatus of claim 11, wherein the download module comprises:
the judging submodule is used for judging whether the function package code required by the other webpage exists locally;
and the downloading submodule is used for downloading the function package code required by the other webpage through the entry file when the judging submodule judges that the function package code required by the other webpage does not exist locally.
13. A server, characterized in that the server comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the web page processing method of any one of the preceding claims 1 to 3.
14. A terminal device, characterized in that the terminal device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the terminal device; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the web page processing method of any one of the preceding claims 4 to 6.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the web page processing method steps of any one of claims 1 to 3.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the web page processing method steps of any one of claims 4 to 6.
CN201710913466.4A 2017-09-29 2017-09-29 Webpage processing method, device, server, terminal equipment and medium Active CN107678820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710913466.4A CN107678820B (en) 2017-09-29 2017-09-29 Webpage processing method, device, server, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710913466.4A CN107678820B (en) 2017-09-29 2017-09-29 Webpage processing method, device, server, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN107678820A CN107678820A (en) 2018-02-09
CN107678820B true CN107678820B (en) 2021-08-24

Family

ID=61139381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710913466.4A Active CN107678820B (en) 2017-09-29 2017-09-29 Webpage processing method, device, server, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN107678820B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280228A (en) * 2018-02-26 2018-07-13 北京车和家信息技术有限公司 A kind of processing method and relevant device of webpage
CN108897889A (en) * 2018-07-10 2018-11-27 深圳市金蝶天燕中间件股份有限公司 A kind of front page optimization method, front page optimization device and computer equipment
CN110879705B (en) * 2018-09-06 2023-11-03 中国电信股份有限公司 Page generation method, device and computer readable storage medium
CN111104587A (en) * 2018-10-26 2020-05-05 北京金山云网络技术有限公司 Webpage display method and device and server
CN110134904B (en) * 2019-05-21 2022-11-29 腾讯科技(上海)有限公司 Page checking method, device, equipment and medium
CN110442815B (en) * 2019-06-24 2022-04-01 北京奇艺世纪科技有限公司 Page generation method, system, device and computer readable storage medium
CN113296762B (en) * 2021-06-21 2023-07-21 北京有竹居网络技术有限公司 Page embedding method and device, storage medium and electronic equipment
CN116304458B (en) * 2023-02-27 2024-04-16 上海硬通网络科技有限公司 Method, device, equipment and medium for web page real-time notification update

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429595B1 (en) * 2007-04-10 2013-04-23 Adobe Systems Incorporated Software development tool that supports use of a design-time data feed
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104182547A (en) * 2014-09-10 2014-12-03 北京浩瀚深度信息技术股份有限公司 Method for optimizing page rendering of server and web cache server
CN104484383A (en) * 2014-12-10 2015-04-01 北京国双科技有限公司 JS file processing method and device
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN104850602A (en) * 2015-05-04 2015-08-19 微梦创科网络科技(中国)有限公司 Method and apparatus for rendering and refreshing based on Internet webpage
CN104965848A (en) * 2015-02-12 2015-10-07 腾讯科技(深圳)有限公司 Front-end resource loading method and apparatus
CN105488175A (en) * 2015-12-01 2016-04-13 福建天晴数码有限公司 Method and system for improving page content display speed
CN106294365A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The page data processing method of a kind of single page web application and equipment
CN106549907A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 A kind of web app access methods, device and system
CN106790687A (en) * 2017-02-17 2017-05-31 和创(北京)科技股份有限公司 Webpage display method, web data processing method and server

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429595B1 (en) * 2007-04-10 2013-04-23 Adobe Systems Incorporated Software development tool that supports use of a design-time data feed
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN104182547A (en) * 2014-09-10 2014-12-03 北京浩瀚深度信息技术股份有限公司 Method for optimizing page rendering of server and web cache server
CN104484383A (en) * 2014-12-10 2015-04-01 北京国双科技有限公司 JS file processing method and device
CN104965848A (en) * 2015-02-12 2015-10-07 腾讯科技(深圳)有限公司 Front-end resource loading method and apparatus
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN104850602A (en) * 2015-05-04 2015-08-19 微梦创科网络科技(中国)有限公司 Method and apparatus for rendering and refreshing based on Internet webpage
CN106294365A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The page data processing method of a kind of single page web application and equipment
CN106549907A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 A kind of web app access methods, device and system
CN105488175A (en) * 2015-12-01 2016-04-13 福建天晴数码有限公司 Method and system for improving page content display speed
CN106790687A (en) * 2017-02-17 2017-05-31 和创(北京)科技股份有限公司 Webpage display method, web data processing method and server

Also Published As

Publication number Publication date
CN107678820A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN107678820B (en) Webpage processing method, device, server, terminal equipment and medium
US11036820B2 (en) Page loading method and electronic device
CN110020292B (en) Webpage content extraction method and terminal equipment
CN107368487B (en) Dynamic layout method, device and client for page components
CN104063401B (en) The method and apparatus that a kind of webpage pattern address merges
WO2016173200A1 (en) Malicious website detection method and system
CN106354873B (en) Webpage loading method, device and system
US9934206B2 (en) Method and apparatus for extracting web page content
CN110334299B (en) Popup window display method and device based on address bar monitoring and electronic equipment
CN104428765A (en) Reducing redirects
CN106339414A (en) Webpage rendering method and device
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN104750851A (en) Webpage content lazy loading method and system
CN113377373A (en) Page loading method and device based on analysis engine, computer equipment and medium
CN113536185B (en) Application page loading method, storage medium and related equipment
CN112905928A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN102033926B (en) Page content processing method and device
US9292321B2 (en) System, method and computer-readable recording medium for synchronous script lazy loading
US20140074814A1 (en) Method and apparatus for switching search engine to repeat search
WO2014044154A1 (en) Method and apparatus for obtaining information
US20140082484A1 (en) Method and apparatus for obtaining information
CN109325192A (en) A kind of method and apparatus of the anti-shielding of advertisement
US9916391B2 (en) Method, apparatus and terminal for webpage content browsing
US20140067903A1 (en) Media query engine system and method
WO2020117694A1 (en) New media information displaying method, device, electronic device, and computer readable 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