meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
808 stars 125 forks source link

document ready fxn not firing in Safari #62

Closed adambilsing closed 10 years ago

adambilsing commented 10 years ago

Backbone events are not firing in Safari. I have peeled it back to the main application.js.coffee file. Even with something as simple as an alert firing on document ready fails in Safari but works in all other browsers.

I have found that on initial page load in safari the event does not fire, but if you refresh the page it fires as expected.

meleyal commented 10 years ago

You could try moving the javascript_include_tag to the bottom of the page.

Will close this as I guess it's not related to the gem.