Ajax, popstate

Ajax, popstate

Hello, I know this not exacly strick forum for this type of problem but maybe some1 will help me.
I was looking around for some time into example made by Sebastian Sulinki 

It is perfect, but it seems that `window.onpopstate = function(){`

does not work on document ready or window load in firefox and interner explorer 11 and 10 
It does trigger on other browsers.

I can't demonstrate in on my server because it wont work(demo) on not domain
script works only on domain.com/ will not work server.com/folder/
So sorry about that, I dont have any free domain.

But if anyone would like to invastigate it a bit more, just download it and try on localhost/ (not lower folder but main directory)
or on some domain

Then easy way to check it is to add `console.log("this url is " + url);` to this fragment of script

  1.     load: function(url) {
  2.         url = url === '/' ? '/ygwyg' : url;
  3.         jQuery.getJSON(url, {
  4.             ajax: 1
  5.         }, function(data) {
  6.             
  7.             jQuery.each(data, function(k, v) {
  8.                 $('#' + k + ' section').fadeOut(200, function() {
  9.                     $(this).replaceWith($(v).hide().show());
  10.                     console.log(url)
  11.                 });
  12.             });
  13.         });

  14.     },


When you'll open website on chrome it will show url at start, but on FF and IE it will show nothing until you'll press `#navigation a` button then script trigger.

Thanks for time used and any anwsers, tips, info :)

**EDIT:** 
I found out here(link under) about that will not trigger - but why? any solutions?