I need to detect the first time a page loads in jQuery so that I can perform some actions only when the page loads the first time a user navigates to that page. Similar to serve
You will have to use cookie to store first load information:
if (! $.cookie("cookieName")){ // do your stuff // set cookie now $.cookie("cookieName", "firstSet", {"expires" : 7}) }
Note: Above example uses jQuery Cookie plugin.