Because unpkg.com return rate limit at 2019-12-24, here is alternative scripts. Scripts are supplied by CloudFlare CDN.
infinite-scroll 3.0.6
https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.min.js
https://cdn.cornerwonder.com/infinite-scroll/3.0.6/infinite-scroll.pkgd.min.js
masonry-layout 4.2.2
https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js
https://cdn.cornerwonder.com/masonry/4.2.2/masonry.pkgd.min.js
imagesloaded 4.1.4
https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js
https://cdn.cornerwonder.com/imagesloaded/4.1.4/imagesloaded.pkgd.min.js
If you need another scripts, please contact cleanwind[a]onmore.com.tw . Replace [a] to @.