2017 © Pedro PelĂĄez
 

library turbolinks

Frenzy Turbolinks makes following links in your web application faster with Laravel 5

image

efficiently/turbolinks

Frenzy Turbolinks makes following links in your web application faster with Laravel 5

  • Monday, January 8, 2018
  • by TortueTorche
  • Repository
  • 2 Watchers
  • 1 Stars
  • 161 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

DEPRECATED

In favor of the original repository Frenzy Turbolinks, who merged my changes :+1:, (*1)

Turbolinks for Laravel 4.1+

Turbolinks is a port of the Rails turbolinks and the jquery.turbolinks gems for projects using the PHP Laravel 4.1+ framework., (*2)

Versions

Current versions of the following JavaScript libraries are used:, (*3)

  • turbolinks: v2.4.0
  • jquery.turbolinks: v2.1.0

For Laravel 5.0 supports see Turbolinks 1.0 branch, (*4)

Performance

Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between each page change, it keeps the current page instance alive and replaces only the body and the title in the head., (*5)

Performance improvements will vary depending on the amount of CSS and Javascript you are using. You can get up to a 2X increase when using a lot of Javascript and CSS. You can find the Rails benchmarks here., (*6)

Installation

Using Composer

Add the following in your composer.json:, (*7)

{
    "require": {
        // ...
        "efficiently/turbolinks": "dev-master"
    }
}

Run this command in a terminal:, (*8)

composer update efficiently/turbolinks

Add 'Efficiently\Turbolinks\TurbolinksServiceProvider', to the providers array in app/config/app.php after Larasset one (if you have installed this package)., (*9)

With the Larasset package

If you have installed the Larasset package:, (*10)

The turbolinks.js and jquery.turbolinks.js files will be added to the asset pipeline and available for you to use., (*11)

Add these lines in your app/assets/javascripts/application.js file, in this order:, (*12)

//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//
// ... your other scripts here ...
//
//= require turbolinks

Then if the <head>section of your main layout., (*13)

<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- ... -->
        {{ stylesheet_link_tag('application', ['data-turbolinks-track' => true]) }}
        {{ javascript_include_tag('application', ['data-turbolinks-track' => true]) }}
    </head>
    <!-- ... -->
</html>

Without the Larasset package (legacy method)

Click here to publish the assets manually., (*14)

Compatibility

The turbolinks javascript is designed to work with any browser that fully supports pushState and all the related APIs. This includes Safari 6.0+ (but not Safari 5.1.x!), IE10+, and latest Chrome and Firefox., (*15)

Do note that existing JavaScript libraries may not all be compatible with Turbolinks out of the box due to the change in instantiation cycle. You might very well have to modify them to work with Turbolinks' new set of events. For help with this, check out the Turbolinks Compatibility project., (*16)

Additional Resources

Please refer to the turbolinks and jquery.turbolinks projects if you require additional information on the javascript libraries and their usage., (*17)

Bugs

For bugs or feature requests, please create an issue., (*18)

Credits

This package is a fork of Frenzy Turbolinks repository., (*19)

Which is based on the Symfony middleware package Helthe Turbolinks., (*20)

Many thanks to them!, (*21)

The Versions

08/01 2018

dev-dev

dev-dev

Frenzy Turbolinks makes following links in your web application faster with Laravel 5

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel javascript ajax assets laravel 5 pjax larasset turbolinks turbolinks 5

23/01 2017

dev-patch-turbo5

dev-patch-turbo5

Frenzy Turbolinks makes following links in your web application faster with Laravel 5

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel javascript ajax assets laravel 5 pjax larasset turbolinks turbolinks 5

23/01 2017

dev-turbo5

dev-turbo5

Frenzy Turbolinks makes following links in your web application faster with Laravel 5

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel javascript ajax assets laravel 5 pjax larasset turbolinks turbolinks 5

22/07 2015

dev-turbo3

dev-turbo3

Frenzy Turbolinks makes following links in your web application faster with Laravel 5.0

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel jquery javascript ajax asset laravel 5 pjax larasset turbolinks jquery.turbolinks

30/03 2015

1.0.x-dev

1.0.9999999.9999999-dev

Turbolinks makes following links in your web application faster with Laravel 5.0

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel jquery javascript ajax asset laravel 5 pjax larasset turbolinks jquery.turbolinks

30/03 2015

0.9.x-dev

0.9.9999999.9999999-dev

Turbolinks makes following links in your web application faster with Laravel 4.1+

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel jquery javascript ajax asset pjax larasset turbolinks jquery.turbolinks

30/03 2015

dev-master

9999999-dev

Turbolinks makes following links in your web application faster with Laravel 4.1+

  Sources   Download

MIT

The Requires

 

by Tortue Torche
by Studio Frénétic

laravel jquery javascript ajax asset pjax larasset turbolinks jquery.turbolinks