manifest / performance / turbolinks-by-timbr
Turbolinks by timbr
A WordPress plugin to speed up your website with Turbolinks.
by Tim Brugman · github.com/brugman/turbolinks-by-timbr · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/brugman/turbolinks-by-timbr/archive/refs/heads/master.zipFrom the readme
Turbolinks by timbr
A WordPress plugin that speeds up your site with Turbolinks.
Before you install this plugin please read up on what Turbolinks is, and what it requires from you. Slapping Turbolinks on a production site is a bad idea!
Installation
1. Download the ZIP.
1. Extract the folder to /wp-content/plugins/.
or
Update
1. Download the new ZIP.
1. Replace the old folder in /wp-content/plugins/.
or
Configuration
Configuration is optional. The plugin will work out of the box.
Partially disable Turbolinks
You can customize the Turbolinks behavior in turbolinks-settings.js. By default, every link is a Turbolink, except for the toolbar (#wpadminbar) and anchor links (#foo).
To disable Turbolinks for a link or a wrapper, you can use setturbolinksstatus( '.no-turbo', false );.
The first parameter is the selector. It can be a class (.no-turbo), an id (#menu-all-pages), or a selector (nav).
The second parameter turns Turbolinks off with false.
Partially re-enable Turbolinks
If you get yourself in a situation where you want to re-enable Turbolinks for a link inside a disabled zone, you can use the same function with true for the second parameter.
I.e. setturbolinksst