Javascript includes not loading for later in the page
问题 We have a Rails application where we are including our application dependencies in the html head within application.js : //= require jquery //= require analytics // other stuff... Then on individual pages we have a script tag at the bottom of the page for analytics : <script> analytics.track('on that awesome page'); </script> This normally works fine, but very occasionally we see the error analytics is not defined , most recently on Chrome 43. Because everything should be loaded synchronously