I have the navigation menu with <a>
tags.
Now if I reload the page using browser refresh button, jQuery dom ready($(document).ready(function() {}
) method is being invoked.
But if I click on navigation links, that time jQuery dom ready($(document).ready(function() {}
) method is not invoked.
If it helps in any way, I'm using Ruby on Rails as a framework.
This is how my application.js looks like:
//= require jquery
//= require_tree