.load() does not work on ipad

后端 未结 2 726
清酒与你
清酒与你 2021-01-25 03:23

I have simple script to check image, but it is not working properly on my ipad with ios 5.1. In image i receive stream of jpg\'s, so load must work on each frame (as in big safa

2条回答
  •  不要未来只要你来
    2021-01-25 04:00

    It is mentioned on the jQuery official website:

    Caveats of the load event when used with images

    A common challenge developers attempt to solve using the .load() shortcut is to execute a function when an image (or collection of images) have completely loaded. There are several known caveats with this that should be noted. These are:

    • It doesn't work consistently nor reliably cross-browser
    • It doesn't fire correctly in WebKit if the image src is set to the same src as before
    • It doesn't correctly bubble up the DOM tree
    • Can cease to fire for images that already live in the browser's cache

提交回复
热议问题