A Component-Based Website Modular Rendering Method

A modular and component technology, applied in the Internet field, can solve the problems of inflexible loading resources, single page content, and low configurability, and achieve the effects of improving speed and flexibility, simplifying operations, and reducing the number of code compilations

Active Publication Date: 2018-09-18
南京焦点领动云计算技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to overcome many deficiencies in previous website construction technologies such as "relatively single page content, inconvenient modification, inflexible resource loading, low configurability and relatively single page content", the present invention provides a component-based website modular rendering Method, by componentizing all the content of the website, each page is composed of multiple components, and each component is stored independently in JSON data format according to the page layout rules; the JavaScript / css resources that the page depends on globally, and the JavaScript / css that each component depends on Resources can be configured by defining JSON files to flexibly configure dependent resources; when the page is rendered, by parsing the JSON format data of page components, global resources relying on JSON format data, and component resources relying on JSON format data, page HTML code is generated to ensure that the page Rendering can load resources on demand, reduce the repeated loading of invalid resources, realize the flexible formation of each web page element and the rapid construction of web pages, and improve the efficiency of page rendering

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Component-Based Website Modular Rendering Method
  • A Component-Based Website Modular Rendering Method
  • A Component-Based Website Modular Rendering Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the technical objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0033] figure 1 It is a flow chart for a component-based website modular rendering method in the embodiment of the present invention. By making all the website content into components, a component-based website modular rendering method has multiple components. Each page is composed of multiple components, and each component It is stored independently in JSON data format according to the page layout rules; the JavaScript / css resources that the page depends on globally and the JavaScript / css resources that each component depends on can be flexibly configured by defining the JSON file configuration; when the page is rendered, it can be parsed Page component JSON format data, global resources rely on JSON format data, component resource...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a website modularization rendering method based on components. According to the method, website page contents are completely componentized, each page comprises a plurality of components, each component is independently stored in a JSON data format file according to page layout rules, the pages globally depend on JavaScript / css resources, each component depends on JavaScript / css resources, dependence resources can be flexibly distributed through configuration files defining JSON data formats, the JSON format data files of the page components, dependence JSON format data of global resources and dependence JSON format data of component resources are analyzed to generate page HTML (hypertext markup language) codes when the pages are rendered, and resources can be loaded in rendering of the web pages.

Description

technical field [0001] The invention belongs to the field of Internet technology, mainly relates to the field of website construction, and specifically relates to a modular rendering method for website pages based on components. Background technique [0002] When each webpage is opened by a browser, it must be rendered and generated by the browser. Usually, web pages are composed of HTML (Hyper Text Markup Language, Hyper Text Markup Language), CSS (Cascading Style Sheets, Cascading Style Sheets), JavaScript, pictures and other files. When entering the corresponding page URL in the browser or clicking the corresponding page link When the browser obtains the file of the corresponding page from the server, it renders the content to be displayed on the web page to display the page. [0003] The page rendering refers to that the browser completes the page layout based on certain rules (CSS statement, JS statement, some rules of the browser itself, etc.) based on the page resour...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/986
Inventor 杨开森任睿
Owner 南京焦点领动云计算技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products