Mobile app version of vmapp.org
Login or Join
Ogunnowo487

: Is it good to refresh a page after a fixed interval? 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

@Ogunnowo487

Posted in: #GoogleAdsense #Performance

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


should 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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ogunnowo487

2 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

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

10% popularity Vote Up Vote Down


 

@Yeniel560

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme