摘要 |
The invention discloses component rendering method and device. The component rendering method comprises the steps of: initializing page data and then loading components of a page according to the page data; judging whether the loaded components are in need of immediate rendering or not according to content to be displayed and output currently; if so, immediately rendering the components; and or else, setting deferred rendering identifications for the components. By applying the technical scheme provided by the invention, on one hand, meaningless rendering operations can be avoided so as to save system resources, and on the other hand, the loaded components without being rendered immediately can be set with the deferred rendering identifications so as to render the components at a proper time and avoid the problem of system resource occupation caused by rendering a mass of components in a short time. |