更新时间:2022-06-25 23:37:09
我的插件, waitForImages ,允许您附加回调时图像已经加载。
My plugin, waitForImages, allows you to attach callbacks when images have loaded.
它支持在CSS中引用的图像。
It supports images referenced in the CSS.
$('#some-container').waitForImages({
waitForAll: true,
finished: function() {
// Loaded all images referenced in CSS.
}
});