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

后端 未结 6 1191
死守一世寂寞
死守一世寂寞 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:31

    Images have an onload event which will fire once the image has finished loading.

    You could listen for that event, and until it fires show another image.

    
    
    
    
    

提交回复
热议问题