首页> 外国专利> 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.
机译:公开了用于优化图像延迟加载的基于前端编程语言的方法和电子设备。该方法包括:当网页通过图像惰性加载来加载缓冲图像时,确定该缓冲图像的当前节点的渲染是否已经完成;如果是,则在网页中显示预定的缓冲图像;获取目标图像的目标节点,并确定目标节点是否满足预定的图像属性信息,以及是否完成了目标节点的渲染;如果是,获取所述目标图像的目标地址,根据所述目标地址加载所述目标图像,将所述缓冲图像替换为所述目标图像,并显示所述目标图像。本发明不需要监视网页中的用户操作,并且提高了图像延迟加载的性能,从而提高了在网页中加载图像的效率,并节省了时间。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号