I m getting the $(...).imagesLoaded is not a function error when i m opening my document and it is happening for all the documents. Can someone help me how can I fix it.
Hi @nikita satpute ,
Most common cause for this issue could be, jQuery is loaded, but imagesLoaded is not
Another issue could be script loading order:
If imagesLoaded is loaded:
it won’t be available at runtime.
Solution:
Explicitly include imagesLoaded (recommended). Add the imagesLoaded plugin to your app after jQuery. Add this to your Theme → CSS/JS Includes or a global layout:
<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>
This immediately fixes the error in most cases.
Hope this helps,
Cheers,
Saugat