2017 © Pedro PelĂĄez
 

library turbolinks

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

image

frenzy/turbolinks

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

  • Monday, April 9, 2018
  • by TortueTorche
  • Repository
  • 9 Watchers
  • 130 Stars
  • 8,494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

Frenzy Turbolinks for Laravel 6.0+

Frenzy Turbolinks is a port of the Rails turbolinks gem for projects using the PHP Laravel 6.0+ framework., (*1)

Versions

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

  • turbolinks: v5.2.0

For Laravel 5.1 to 5.7 supports see Frenzy Turbolinks 3.2.3 tag, (*3)

For Laravel 5.0 supports see Frenzy Turbolinks 3.0.0 tag, (*4)

For Laravel 4.1 or 4.2 supports see Frenzy Turbolinks 1.0 tag, (*5)

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., (*6)

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., (*7)

Installation

Using Composer

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

composer require frenzy/turbolinks

Add the Turbolinks middleware, to the $middlewareGroups array in app/Http/Kernel.php:, (*9)

        \Frenzy\Turbolinks\Middleware\StackTurbolinks::class,

NOTICE: For Laravel 5.4 and below, you must modify your config/app.php, in the providers array add :, (*10)

    Frenzy\Turbolinks\TurbolinksServiceProvider::class

Add these scripts for automatic publication of assets, in your composer.json file:, (*11)

{
   "scripts": {
       "post-install-cmd": [
           "php artisan vendor:publish --provider=\"Frenzy\\Turbolinks\\TurbolinksServiceProvider\" --force"
       ],
       "post-update-cmd": [
           "php artisan vendor:publish --provider=\"Frenzy\\Turbolinks\\TurbolinksServiceProvider\" --force"
       ]
   }
}

Add Javascript files into your project, (*12)

Usage

Using turbolinks requires both the usage of the javascript library and the event listeners included with the component., (*13)

Javascripts

Both the original coffeescript version and compiled version of each script are available for use., (*14)

Using turbolinks.js

To enable turbolinks, all you need to do is add the compiled turbolinks javascript to your layout in the <head>section., (*15)

Installation with the Larasset package

Click here to publish the assets automatically., (*16)

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., (*17)

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., (*18)

Additional Resources

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

Bugs

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

Credits

This package is based on the Symfony middleware package Helthe Turbolinks., (*21)

The Versions

09/04 2018

dev-master

9999999-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

09/04 2018

3.2.2

3.2.2.0

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

15/01 2018

3.2.1

3.2.1.0

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

08/01 2018

3.2.0

3.2.0.0

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

03/04 2017

3.1.0

3.1.0.0

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

3.0.0

3.0.0.0

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

02/09 2015

dev-1.0-dev

dev-1.0-dev

Frenzy Turbolinks package for Laravel 4.1.*,4.2.*

  Sources   Download

MIT

The Requires

 

by Studio Frénétic

laravel jquery javascript ajax asset pjax larasset turbolinks jquery.turbolinks

20/03 2015

1.0.1

1.0.1.0

Frenzy Turbolinks package for Laravel 4.1.*,4.2.*

  Sources   Download

MIT

The Requires

 

by Studio Frénétic

laravel jquery javascript ajax asset pjax larasset turbolinks jquery.turbolinks

13/03 2015

2.0

2.0.0.0

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

26/01 2015

1.0

1.0.0.0

Frenzy Turbolinks package for Laravel 4.1.*,4.2.*

  Sources   Download

MIT

The Requires

 

by Studio Frénétic

laravel turbolinks jquery.turbolinks

26/01 2015

1.0.0

1.0.0.0

Frenzy Turbolinks package for Laravel 4.1.*,4.2.*

  Sources   Download

MIT

The Requires

 

by Studio Frénétic

laravel turbolinks jquery.turbolinks