有没有办法让同位素不加载图像,除非它们在屏幕上可见?

Is there a way for isotope to not load images unless they are visible on screen?

我为 Isotope 加载了很多图像,我想知道是否有办法让 isotope 不加载图像,除非它们在屏幕上?如果图像占用适当数量的 space 我很好,因为我提供了所有图像的宽度和高度,但我想知道是否有一种方法可以让图像在不需要时不加载?

在不知道您可能有什么要求的情况下,我建议将 Lazy Load 与 Isotope 结合使用。

Here's a detailed explanation of how to integrate the two scripts.

如果您需要更多帮助,请post一个fiddle您的代码。