Nikola Đuza
<%= link_to "an article", @article, remote: true %>
<a href="/articles/1" data-remote="true">an article</a>
$ ->
$("a[data-remote]").on "ajax:success", (e, data, status, xhr) ->
alert "The article was deleted."
The first feature of the pipeline is to concatenate assets, which can reduce the number of requests that a browser makes to render a web page.
The second feature of the asset pipeline is asset minification or compression.
The third feature of the asset pipeline is it allows coding assets via a higher-level language, with precompilation down to the actual assets.
gem "rails-assets-lodash", "~> 2.4.1"
Asset compilation went from 11 minutes to 1 minute.
Cucumber scenarios went from ~5 minutes to ~2 minutes.
Minified application.js went from ~8 MB to ~4.5 MB