Slow loading images, best way to display temporary image? JQuery perhaps?

后端 未结 6 1101
死守一世寂寞
死守一世寂寞 2021-01-12 01:47

I am using Google Charts to display charting data in my application. Sometimes Google is slow and the charts will take a while to load. This scenario seems to be a common en

6条回答
  •  臣服心动
    2021-01-12 02:37

    You can show one of those fancy loading gifs found at http://ajaxload.info/ while the image is loading. After the image is loaded you hide the loading gif and show the image itself.

    check http://jqueryfordesigners.com/image-loading/ for a tutorial.

提交回复
热议问题