Why would you wanna use Turbolinks?…Turbolinks offers the performance…of a single-page application.…That's part of what JavaScript frameworks…like to boast about.…The speed that you get when using…a single-page application approach,…but Turbolinks does not require us to use a client-side…JavaScript framework to get these benefits.…You can work directly with HTML pages…in your existing Rails application.…The way Turbolinks works, is that any link you click…on a page does not load a completely new…

An immediately-invoked function expression is a pattern which produces a lexical scope using JavaScript's function scoping. Immediately-invoked function expressions can be used to avoid variable hoisting from within blocks, protect against polluting the global environment and simultaneously allow public access to methods while retaining privacy for variables defined within the function.

This pattern has been referred to as a self-executing anonymous function, but @cowboy (Ben Alman) introduced the term IIFE as a more semantically accurate term for the pattern .