quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Handle difference for "popstate on page load" for chrome vs. firefox #236

Open karussell opened 9 years ago

karussell commented 9 years ago

I discribed the current problem I have with Firefox here

The reason for that behaviour is that firefox does NOT create a popstate on page load! And chrome does ... one can workaround this via this code

karussell commented 9 years ago

For me the simple workaround of disabling html5 popstate stuff worked:

var app = $.sammy('#all', function () {
   this.disable_push_state = true;
   ...
}