I seen many sites which are refreshing their pages after a fixed interval. Sometimes it is 1-2 mins only.If i refresh a page after every 5 mins. It'll helpful to notify user with updated contents.Please tell meshould i use Ajax for the same instead of reloading the complete page?Would it affect google analytics js script? Means, whether the counter for visits will be increasing?Would it affect adsense?
Is it good to refresh a page after a fixed interval?
google adsense;performance
Automatic refresh is fine if the content is something that is constantly changing and the users would expect and want the most recent content. ESPN.com uses this to update the pages where they report scores. In that case the reload the entire page. NFL.com only updates scores that change instead of reloading the whole page.How you do it depends on your goals and your users' expectations. Using Ajax is a good idea as it is fast and doesn't affect page statistics like Google Analytics. But refreshing the page may be required if you want to count every page load or do other more complex things that may be too much for Ajax (or just simpler without it).