Is jquery masonry a duplicate function of imagesLoaded?

I am new to javascript plugins. So this is my question related to this (regarding jQuery masonry).

I noticed that the last masonry.js has imagesLoaded inside it. Then I also noticed that the masonry website offers users to download the imagesLoaded plugin.

  • Q1) Is this a duplication, or should both exist for this to work?
  • Q2) Do I need to include and reference a separate imagesLoaded.js to use it?

Side note. I came to this conclusion, noticing that my class object loads just fine at first, but with subsequent loads the masonry gives an error when I try to initialize it. Despite the fact that despite this, imagesLoaded images work fine, WITHOUT including the imagesLoaded plugin file itself.

  • updated *

The error that I saw was due to the fact that I did not "delete" the contents of the masonry, but updated it with new content. So this is not a problem with the updated imagesLoaded.js

+5
source share
1 answer

jQuery Masonry includes an obsolete version of jQuery imagesLoaded plugin v1.1.0.

30 2012 jQuery imagesLoaded v2.0.1 https://github.com/desandro/imagesloaded/blob/master/jquery.imagesloaded.js

jQuery imageloaded 1.1.0 2.0.1, script jQuery Masonry.

, -. , .

Update

jQuery jQuery imagesLoaded - , desandro.

jQuery Masonry jQuery imagesLoaded, , .

script .

jQuery imagesLoad, script, .

jQuery imagesLoad , .

+2

All Articles