Closed
Description
Turbolinks compatibility is something I'd love to have with the SVG version of FA5. Right now, I have hacked together a solution that works alright, but each new pageview flickers with the icons being rendered and I was curious if there'd be a smoother way for handling this.
- Include Turbolinks
- Include svg-with-js library for FA5
- Add the following to re-run FA5 each new Turbolinks pageview
document.addEventListener("turbolinks:load", function() {
FontAwesome.dom.i2svg();
});
This works well, but produces a noticeable flicker going back and forth between pages while the Javascript replaces tags on the page with their SVG equivalents.
Is there any better way we can do this?