reed / turbolinks-compatibility

A collection of tutorials for how to get your favorite javascript libraries, plugins, and snippets working with Turbolinks.
reed.github.io/turbolinks-compatibility
MIT License
147 stars 35 forks source link

Improve solution #2 in twitter compatibility #71

Closed itmammoth closed 7 years ago

itmammoth commented 8 years ago

$.getScript is async function as you know, so it's better to invoke a callback function after getting the script.