I'm putting together a simple site and I want to use the nice transitions from SmoothState.js, but I also use other jQuery scripts (such as Flexslider) that I have set up to fire on $(document).ready()
-- and now that my transitions are nice and smooth, the other JS is no longer firing.
I've tried placing this at the beginning of all my pages (taken from here):
(function($, undefined) {
var isFired = false;
var oldReady = jQuery.fn.ready;
$(function() {
isFired = true;
$(document).ready();
});
jQuery.fn.ready = function(fn) {
if(fn === undefined) {
$(document).trigger('_is_ready');
return;
}
if(isFired) {
window.setTimeout(fn, 1);
}
$(document).bind('_is_ready', fn);
};
})(jQuery);
But they're still not firing properly.
What am I missing?
so do you mean i need to load it inside the .m-scene class?
– benpalmer Aug 19 '15 at 16:35