Do you like Turbolinks? It's easy and fast way to imporove user experience of surfing on your site.
But if you have large codebase with lots of $(el).bind(...)
Turbolinks will surprise you. Most part of you JavaScripts stop working in usual way. It's because the nodes on which you bind events no longer exist.
I wrote jquery.turbolinks to solve this problem in my project. It's easy to use: just require it after jquery.js
and tubrolinks.js
, but before rest scripts.
Sponsored by Evil Martians.
Gemfile:
gem 'jquery-turbolinks'
JavaScript manifest file:
//= require jquery.turbolinks
And now it just works!
This project uses Semantic Versioning for release numbering.
- First, initial release
Idea and code by @kossnocorp.