SyntaxFix
Write A Post
Hire A Developer
Questions
Instead of using a variable to save the "ready" function and bind it to the events, you might want to trigger the ready event whenever page:load triggers.
ready
page:load
$(document).on('page:load', function() { $(document).trigger('ready'); });