CN111581473B - Webpage processing method - Google Patents

Webpage processing method Download PDF

Info

Publication number
CN111581473B
CN111581473B CN202010250392.2A CN202010250392A CN111581473B CN 111581473 B CN111581473 B CN 111581473B CN 202010250392 A CN202010250392 A CN 202010250392A CN 111581473 B CN111581473 B CN 111581473B
Authority
CN
China
Prior art keywords
file
rendering
web page
webpage
client
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
CN202010250392.2A
Other languages
Chinese (zh)
Other versions
CN111581473A (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 Pierbulaini Software Co ltd
Original Assignee
Beijing Pierbulaini 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 Pierbulaini Software Co ltd filed Critical Beijing Pierbulaini Software Co ltd
Priority to CN202010250392.2A priority Critical patent/CN111581473B/en
Publication of CN111581473A publication Critical patent/CN111581473A/en
Application granted granted Critical
Publication of CN111581473B publication Critical patent/CN111581473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/951Indexing; Web crawling techniques
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention discloses a webpage processing method, which is suitable for being executed in a network server, and comprises the following steps: obtaining a configuration file, combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, the second type file having a predetermined format suitable for processing by a network application residing on a network server; receiving a webpage request of a client in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and processing the rendering file by a network application to generate a target webpage file; the target web page file is sent to the client for rendering the target web page file at the client. A computing device and a computer-readable storage medium are also disclosed.

Description

Webpage processing method
Technical Field
The invention relates to the field of data display, in particular to a webpage processing method.
Background
With the continuous development of internet and communication technologies, people increasingly browse web pages on mobile devices, and development of front-end web pages becomes a very important ring in the whole development work. When developing a web page browsed on a mobile device, the development of the front end of the web page is usually performed by combining Vue and weback. Vue is a set of progressive JavaScript frames used to build user interfaces, and weback is the static module wrapper of modern JavaScript applications.
However, the existing modes of development of this Vue and weback have certain drawbacks. Pages developed in this mode need to be loaded with JavaScript on a mobile device used by a user before the document object model can be generated and rendered into a web page file for display on the mobile device. The loading time required by the process is long, and the user needs to wait for a long time when browsing the page, so that experience is poor. Moreover, through the page rendered at the client, search engine optimization cannot be performed, and when the search engine crawls the page content, only an empty webpage structure can be crawled, and related content in the page cannot be accurately known.
Therefore, a new web page processing method is required.
Disclosure of Invention
To this end, the present invention provides a web page processing method in an effort to solve or at least alleviate the above-presented problems.
According to an aspect of the present invention, there is provided a web page processing method adapted to be executed in a web server, the method comprising the steps of: obtaining a configuration file, combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, the second type file having a predetermined format suitable for processing by a network application residing on a network server; receiving a webpage request of a client in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and performing rendering processing on the rendering file by a network application to generate a target webpage file; the target web page file is sent to the client for rendering the target web page file at the client.
Optionally, in the web page processing method according to the present invention, the second type file is a template file.
Optionally, in the web page processing method according to the present invention, the step of the web application performing rendering processing on the rendering file to generate the target web page file includes: the network application obtains the network data corresponding to the webpage request from a database residing on a network server; and loading the network data into a template file in the rendering file to generate a target webpage file.
Optionally, in the web page processing method according to the present invention, the first type file includes one or more web page files and one or more script files.
Optionally, in the web page processing method according to the present invention, the rendering file includes a template file, a web page file, and a script file.
Optionally, in the web page processing method according to the present invention, the target web page file includes a web page file and a script file.
Optionally, in the web page processing method according to the present invention, the method further includes the steps of: dividing the content of the target webpage into static content and dynamic content; the rendering file is a rendering file of dynamic content in the target webpage file.
Optionally, in the web page processing method according to the present invention, the method further includes the steps of: and sending the rendering file of the static content in the target webpage content to the client so as to directly render the target webpage file of the static content in the client.
Optionally, in the web page processing method according to the present invention, the method further includes the steps of: and merging the target webpage files of the static content and the dynamic content in the client for display.
According to yet another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, which when executed by the processors implement the steps of a web page processing method as described above.
According to yet another aspect of the present invention, there is provided a readable storage medium storing one or more programs, the one or more programs comprising instructions which when executed by a computing device implement the steps of a web page processing method as described above.
According to the technical scheme of the webpage processing method, the configuration file is obtained, the first type file and the second type file are combined according to the preset rule in the configuration file to generate the rendering file, and the second type file has a preset format and is suitable for being processed by a network application residing on a network server; receiving a webpage request of a client in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and performing rendering processing on the rendering file by a network application to generate a target webpage file; the target web page file is sent to the client for rendering the target web page file at the client. The rendering file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
And further, the second type file in the configuration file has a preset format, is suitable for being processed by network application residing on a network server, and obtains corresponding data from a database to be filled in the processing process, wherein the second type file with the preset format is a template file, can share a common template under the condition that file content data are different, and can be filled by using corresponding or latest data, thereby improving file processing efficiency, being particularly suitable for processing dynamic content with changed data and further improving webpage presentation speed.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram 100 of a network server connected to a client according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
fig. 3 shows a block diagram of a mobile terminal 300 according to one embodiment of the invention;
FIG. 4 illustrates a flow diagram of a web page processing method 400 according to one embodiment of the invention; and
FIG. 5 illustrates a page presentation effect diagram according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a schematic diagram 100 of a network server connected to a client according to an embodiment of the present invention, as shown in fig. 1, the case where the network server and the client are linked as shown in fig. 1 is merely exemplary, and in a specific practical case, there may be different numbers of network servers and clients connected, and the present invention does not limit the number of network servers and clients. As shown in fig. 1, 1 web server 110 and 3 clients 120, 130, and 140 are included in fig. 1. Wherein the web server 110 is communicatively coupled to the clients 120, 130, and 150, respectively, and is capable of data transmission.
The web page processing method of the present invention is suitable for being executed in the web server 110, and the web server 110 may be any server capable of implementing the web page processing method in the prior art, and the present invention is not limited to the specific type of the web server 110. In an embodiment of the invention, the web server 110 may be implemented as a computing device. FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention. In a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache, such as a first level cache 210 and a second level cache 212, a processor core 214, and registers 216. The example processor core 214 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations, the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 may include an operating system 220, one or more programs 222, and program data 224. In some implementations, the program 222 may be arranged to execute instructions on an operating system by the one or more processors 204 using the program data 224.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to basic configuration 202 via bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. The example peripheral interface 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication via one or more I/O ports 258 and external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.). The example communication device 246 may include a network controller 260 that may be arranged to facilitate communication with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 200 may be implemented as a server, such as a file server, database server, application server, etc., which may be, for example, a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that may include any of the above functions. Computing device 200 may also be implemented as a personal computer including desktop and notebook computer configurations. In some embodiments, the computing device 200 is configured to perform a web page processing method 400.
The web page processing method of the present invention is suitable for being executed in a web server 110, the web server 110 is in communication connection with a plurality of clients 120, 130 and 140, and the web server 110 can obtain a web request from a client and send a rendered target web page file to the clients 120, 130 and 140. Clients 120, 130, and 140 may be implemented as any client capable of data communication with web server 110 in the prior art, and the invention is not limited to the specific type of client 120, 130, and 140. In an embodiment of the present invention, clients 120, 130, and 140 may be implemented as a mobile terminal. Fig. 3 shows a block diagram of a mobile terminal 300 according to one embodiment of the invention. The mobile terminal 300 may include a memory interface 302, one or more data processors, an image processor and/or central processing unit 304, and a peripheral interface 306.
The memory interface 302, the one or more processors 304, and/or the peripheral interface 306 may be discrete components or integrated in one or more integrated circuits. In the mobile terminal 300, the various elements may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems may be coupled to peripheral interface 306 to facilitate various functions.
For example, a motion sensor 310, a light sensor 312, and a distance sensor 314 may be coupled to the peripheral interface 306 to facilitate orientation, illumination, and ranging functions. Other sensors 316 may also be coupled to the peripheral interface 306, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, to facilitate relevant functions.
The camera subsystem 320 and optical sensor 322, which may be, for example, a Charge Coupled Device (CCD) or a complementary metal oxide semiconductor (centimeter OS) optical sensor, may be used to facilitate implementation of camera functions such as recording photographs and video clips. Communication functions may be facilitated by one or more wireless communication subsystems 324, which may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. The particular design and implementation of the wireless communication subsystem 324 may depend on the one or more communication networks supported by the mobile terminal 300. For example, the mobile terminal 300 may include a network designed to support LTE, 3G, GSM, GPRS, EDGE, wi-Fi, or WiMax networks, and BlueBooth TM A communication subsystem 324 of the network.
An audio subsystem 326 can be coupled with a speaker 328 and a microphone 330 to facilitate voice-enabled functions such as voice recognition, voice replication, digital recording, and telephony functions. The I/O subsystem 340 may include a touch screen controller 342 and/or one or more other input controllers 344. The touch screen controller 342 can be coupled to a touch screen 346. For example, the touch screen 346 and touch screen controller 342 can detect contact and movement or suspension therewith using any of a variety of touch sensing technologies including, but not limited to, capacitive, resistive, infrared and surface acoustic wave technologies. One or more other input controllers 344 may be coupled to other input/control devices 348, such as one or more buttons, rocker switches, thumbwheels, infrared ports, USB ports, and/or pointing devices such as a stylus. The one or more buttons (not shown) may include up/down buttons for controlling the volume of the speaker 328 and/or microphone 330.
Memory interface 302 may be coupled with memory 350. The memory 350 may include an internal memory such as a Static Random Access Memory (SRAM), a non-volatile memory (NVRAM), etc., but is not limited thereto; the external memory may be, for example, a hard disk, a removable hard disk, a usb disk, or the like, but is not limited thereto. Memory 350 may store program instructions, which may include, for example, an operating system 352 and applications 354. The operating system 352 may be, for example, android, iOS, windows Phone, etc., which includes program instructions for handling basic system services and performing hardware dependent tasks. The memory 350 may also store an application 354, and the application 354 may include program instructions for implementing various user desired functions. The applications 354 may be provided separately from the operating system or may be native to the operating system. In addition, when the application 354 is installed in the mobile terminal 300, a driver module may also be added to the operating system. The operating system 352 is loaded from the memory 350 and executed by the processor 304 when the mobile terminal 300 is in operation. The application 354 is also loaded from the memory 350 and executed by the processor 304 at runtime. Applications 354 run on top of the operating system and utilize interfaces provided by the operating system and underlying hardware to implement various user-desired functions such as instant messaging, web browsing, picture management, sports and leisure, and the like. Among the various applications 354 described above, one of which is the application 360 displaying pages residing in the mobile terminal 300 according to the present invention, the processor 304 may perform steps of a page display method 300 to execute the application 360 displaying pages, render the received rendered file and present the target web page file.
FIG. 4 shows a flow diagram of a web page processing method 400 according to one embodiment of the invention. The method 400 is performed in a network server, such as in a computing device 100 implemented. As shown in fig. 4, the method starts at step S410, where a configuration file is obtained, and a first type file and a second type file are combined according to a predetermined rule in the configuration file to generate a rendering file, the second type file having a predetermined format suitable for processing by a network application residing on a network server.
In this step, the web server will make a call from a database in the web server to develop a configuration file for the page suitable for display at the client. The configuration file includes data of all static contents and dynamic contents in the page, such as contents presented in the form of text and pictures, the structure of the web page, and the like, and the invention does not limit the data form of the configuration file. Static content in the configuration file is content which is stable in presentation in a page within a period of time, wherein data does not need to change with time according to business requirements, such as information of a provider of a web page service. The dynamic content of the configuration file is the content which needs to be updated at random or at regular time, and the data in the configuration file needs to be changed along with time when the configuration file is presented in a page, such as the current time, date and time of the user accessing the page in the page, the real-time click quantity of information presented in the page where the page service provider is located, the selling price of a certain commodity, and the like.
The configuration files are acquired, the first type files combined according to the configuration files are web page files and script files, the second type files have a preset format and are template files, and the configuration files are suitable for being processed by network applications. When the configuration files are combined to generate different types of files, the occupation of the template file which is input later is created in the webpage file. According to one embodiment of the present invention, the template file of the second type of file is a Freemarker template file. The present invention does not limit the file type of the template file. When the template file is a Freemarker template file, writing a Freemarker script language in the Freemarker template file when the second type file is generated in a combined way. Freemarker is a tool that is based on templates and data to be changed and is used to generate output web pages, emails, configuration files, source code, etc.
And after the first type file and the second type file are generated in a combined way, further generating a rendering file so that the rendering file is rendered by the network application in the network server. The rendering files include template files, web page files, and script files. When the rendering file is generated, the first type file and the second type file are packaged, and according to one embodiment of the invention, the file is packaged by adopting weback, and the mode of packaging the file is not limited. When the file is packaged by using the weback, the type of the packaged file is set in the weback packaging configuration. The content of the Freemarker template file is read, the type of the packaged file is set as the Freemarker template file, the content of the Freemarker template file is correspondingly set in the packaging configuration, and the file extension name of the second type file is changed to ftl. After the packaging configuration of the weback is completed, a weback packaging script is operated, and the first type file and the second type file are combined.
Subsequently, step S420 is performed, a web page request of a client communicatively connected to the web server is received, a rendering file corresponding to the web page request is obtained, and the rendering file is rendered by the web application to generate a target web page file. In this step, the web server listens for web page requests from clients and responds to web page requests. And the network application resident in the network server processes the network request and judges the target webpage requested to be accessed by the webpage request. And acquiring the generated rendering file of the target webpage with the same identification from the database according to the identification of the target webpage. And rendering the rendering file to generate a target webpage file. The method comprises the steps of acquiring network data corresponding to a webpage request from a database. The network data acquired in this step is the network data required for the dynamic content of the web page profile, and the network data in the database can be set to change with natural time or be set and changed manually by the developer accordingly. After the network data is obtained, the network data is loaded into a template file in a rendering file to generate a target webpage file. The generated target web page file includes a web page file and a script file.
Finally, step S430 is performed to send the target web page file to the client, so as to present the target web page file at the client. The rendering file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
According to one embodiment of the present invention, when the configuration file is obtained, the first type file and the second type file are generated, and then the rendering file is generated, the method further comprises the step of dividing the webpage according to static content and dynamic content. For dynamic content, the configuration file is used for generating a first type file and a second type file, and for static content, only the first type file is generated. And after generating the rendering file, sending the rendering file to the client side to directly render so as to obtain the target webpage file of the static content. The method and the device do not limit the file rendering mode of the client. When the client renders the rendering file with vue, the web server creates vue a mount point when generating the first type file. And after receiving the target webpage file of the dynamic content part sent by the network server, the client merges the target webpage file with the target webpage file of the static content rendered by the client for display.
FIG. 5 illustrates a page presentation effect diagram according to one embodiment of the invention, as shown in FIG. 5, where the "Wheatstone" module renders on the client as static content of the web page and the "Wheatstone" module renders as dynamic content of the web page through the web server. The structure can ensure that the 'shopping cart' module can be displayed immediately after the page downloading is completed.
According to a web page processing method 400 of the present invention, first, a first type file is prepared, in the present invention, the first type file is a web page file, and a occupation of a template file serving as a second type file is created in the web page file, and an example code of the step is as follows:
reading the content of a Freemarker template file, setting the type of a package file as the Freemarker template file, correspondingly setting the content of the Freemarker template file in package configuration, and changing the file extension name of a second type file into ftl, wherein one example code of the step is as follows:
after the packing configuration of the weback is completed, a weback packing script is operated, the first type file and the second type file are combined, and the code of the obtained rendering file is as follows:
when the client downloads the page, the client receives the webpage content rendered by the network server, and the code of the received content is as follows:
according to the technical scheme of the webpage processing method, the configuration file is obtained, the first type file and the second type file are combined according to the preset rule in the configuration file to generate the rendering file, and the second type file has a preset format and is suitable for being processed by a network application residing on a network server; receiving a webpage request of a client in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and performing rendering processing on the rendering file by a network application to generate a target webpage file; the target web page file is sent to the client for rendering the target web page file at the client. The rendering file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
And further, the second type file in the configuration file has a preset format, is suitable for being processed by network application residing on a network server, and obtains corresponding data from a database to be filled in the processing process, wherein the second type file with the preset format is a template file, can share a common template under the condition that file content data are different, and then uses corresponding or latest data to be filled in, thereby improving file processing efficiency, being particularly suitable for processing dynamic content with changed data and further promoting webpage presentation speed.
A9, a web page processing method as defined in any one of A7-A8, further comprising the steps of: and merging the target webpage files of the static content and the dynamic content in the client for display.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or groups of embodiments may be combined into one module or unit or group, and furthermore they may be divided into a plurality of sub-modules or sub-units or groups. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the test data processing method of the invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, computer readable media comprise computer storage media and communication media. Computer-readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (6)

1. A web page processing method adapted to be executed in a web server, the method comprising the steps of:
acquiring a configuration file, and dividing a webpage according to static content and dynamic content;
generating a first type file and a second type file for dynamic content according to the configuration file, and generating the first type file for static content, wherein the first type file comprises one or more webpage files and one or more script files;
combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, wherein the second type file is a template file and has a predetermined format so as to be suitable for being processed by a network application residing on the network server;
receiving a webpage request of a client which is in communication connection with the network server, sending a rendering file of the static content in target webpage content to the client so as to directly render the target webpage file of the static content in the client, acquiring a rendering file of dynamic content corresponding to the webpage request, and rendering the rendering file of the dynamic content by the network application to generate the target webpage file;
and sending the target webpage file to the client so that the client can be combined with the target webpage file of the static content rendered at the client for display after receiving the target webpage file of the dynamic content sent by the network server.
2. The web page processing method as claimed in claim 1, wherein the web application performs a rendering process on the rendering file to generate the target web page file comprises:
the network application acquires network data corresponding to the webpage request from a database residing on the network server;
and loading the network data into the template file in the rendering file to generate a target webpage file.
3. A web page processing method as claimed in claim 1 or 2, wherein the rendering file comprises a template file, a web page file and a script file.
4. A web page processing method as recited in claim 3, wherein said target web page file comprises a web page file and a script file.
5. A computing device, comprising:
at least one processor; and
at least one memory including computer program instructions;
the at least one memory and the computer program instructions are configured to, with the at least one processor, cause the computing device to perform the method of any of claims 1-4.
6. A readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-4.
CN202010250392.2A 2020-04-01 2020-04-01 Webpage processing method Active CN111581473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010250392.2A CN111581473B (en) 2020-04-01 2020-04-01 Webpage processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010250392.2A CN111581473B (en) 2020-04-01 2020-04-01 Webpage processing method

Publications (2)

Publication Number Publication Date
CN111581473A CN111581473A (en) 2020-08-25
CN111581473B true CN111581473B (en) 2024-03-15

Family

ID=72114895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010250392.2A Active CN111581473B (en) 2020-04-01 2020-04-01 Webpage processing method

Country Status (1)

Country Link
CN (1) CN111581473B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131844A (en) * 2020-10-10 2020-12-25 北京字跳网络技术有限公司 Online document editing method and device and electronic equipment
CN113760252A (en) * 2020-11-16 2021-12-07 北京沃东天骏信息技术有限公司 Data visualization method, device, computer system and readable storage medium
CN112989249A (en) * 2021-02-19 2021-06-18 北京皮尔布莱尼软件有限公司 Page display method, computing device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101300A (en) * 2018-06-14 2018-12-28 腾讯科技(深圳)有限公司 A kind of page rendering method, apparatus and terminal
CN110442811A (en) * 2019-08-14 2019-11-12 广州虎牙科技有限公司 A kind of processing method of the page, device, computer equipment and storage medium
CN110795195A (en) * 2019-10-31 2020-02-14 百度在线网络技术(北京)有限公司 Webpage rendering method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10268460B2 (en) * 2017-01-25 2019-04-23 Walmart Apollo, Llc Systems, method, and non-transitory computer-readable storage media for generating code for displaying a webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101300A (en) * 2018-06-14 2018-12-28 腾讯科技(深圳)有限公司 A kind of page rendering method, apparatus and terminal
CN110442811A (en) * 2019-08-14 2019-11-12 广州虎牙科技有限公司 A kind of processing method of the page, device, computer equipment and storage medium
CN110795195A (en) * 2019-10-31 2020-02-14 百度在线网络技术(北京)有限公司 Webpage rendering method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111581473A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111581473B (en) Webpage processing method
JP5599412B2 (en) Composition and distribution of content at the time of capture
US20190260728A1 (en) Utilizing a customized digital font to identify a computing device
CN106294658B (en) Webpage quick display method and device
WO2018121618A1 (en) Scrolling page turning display method and device, computing device and storage medium
US8873875B2 (en) Delayed image decoding
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN108874922B (en) Client device, webpage rendering method based on single page application and storage medium
US10375149B2 (en) Application registration and interaction
CN110765398A (en) Page content display method and mobile terminal
CN111931093A (en) Display method of table in page and mobile terminal
US10630755B2 (en) Selective consumption of web page data over a data-limited connection
US9697628B2 (en) On-demand image spriting
CN112417339A (en) Page loading method and device, computing equipment and readable storage medium
CN111444448B (en) Data processing method, server and system
TWI489370B (en) System and method for rendering widget
CN115269077A (en) Picture display method, module, mobile terminal and storage medium
US11010447B1 (en) Systems, devices, and methods for presenting customized content through web API
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN113343137A (en) Optimized SEO page generation method and device, electronic equipment and storage medium
CN112771519A (en) Detecting selection of a disabled internal link within nested content
CN111680239A (en) Page display method
US9990384B2 (en) Electronic device and method for automatically storing URL by calculating content stay value
CN111488534B (en) Advertisement detection method and device, electronic equipment and computer readable storage medium
CN111209506B (en) Data analysis system and method

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