首页>
外国专利>
FRONT-END PROGRAMMING LANGUAGE-BASED METHOD FOR OPTIMIZING IMAGE LAZY-LOADING, AND ELECTRONIC APPARATUS
FRONT-END PROGRAMMING LANGUAGE-BASED METHOD FOR OPTIMIZING IMAGE LAZY-LOADING, AND ELECTRONIC APPARATUS
展开▼
机译:基于前端编程语言的图像惰性加载优化方法和电子设备
展开▼
页面导航
摘要
著录项
相似文献
摘要
Disclosed are a front-end programming language-based method for optimizing image lazy-loading and an electronic apparatus. The method comprises: when a webpage loads a buffer image by means of image lazy-loading, determining whether rendering of a current node of the buffer image has been completed; if so, displaying a pre-determined buffer image in the webpage; acquiring a target node of a target image, and determining whether the target node satisfies pre-determined image attribute information and whether rendering of the target node has been completed; and if so, acquiring a target address of the target image, loading the target image according to the target address, replacing the buffer image with the target image, and displaying the target image. The invention does not require monitoring of user operations in a webpage, and improves the performance of image lazy-loading, thereby improving efficiency of loading an image in a webpage, and saving time.
展开▼