I used CDN by simply adding
What is the advantage/disadvantage of using CDN instead of Download
How to manually add them in project
There are 2 ways
Either put them(e.g. masonry.pkgd.min.js) under
//= require masonry.pkgd.min.js but only if you do not have this line
Or put them in
added masonry script to the top of index.html.erb view file that will use the script. Is this correct?
It is correct in the sense that it will load only to that particular view. Now if you put the same in
application.html.erb or loaded it via assets then the same js script will load on every views.