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.
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
source
share