Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 me

  1. should i use Ajax for the same instead of reloading the complete page?
  2. Would it affect google analytics js script? Means, whether the counter for visits will be increasing?
  3. Would it affect adsense?
share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

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).

share|improve this answer
1  
what is the effect on hits counter and adsense, if i dont use ajax based loading –  articlestack Oct 14 '10 at 2:47
    
Your hits counter will reflect another page view and you will get another impression for your adsense ads. –  John Conde Oct 14 '10 at 3:56
add comment

I hate websites which do this. I like to be in control of my browser, automatically refreshing the page without valid reason/warning* is a sure fire way for me to leave a website and never come back.

*There are times when refreshing is appropriate - the bbc sports website during sporting events (live football (soccer) matches, cricket, golf etc) has a smart piece of ajax which pulls the latest update in and moves the content further down the page - note the whole screen doesn't refresh. It's unobtrusive and there is a small warning stating that this happens.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.