I think the rule is: Reload only those areas of site where data has changed. Don't fetch the areas where no changes have been made.

The pros of this rule are:
1. Users will be able to examine elements of page that were not reloaded
2. It will load server less

The cons can be looked at in wikipedia but I don't see no significant issues there that can't be solved.

So should this rule be applied to all sites? And if not, what is the exact rule?

  • There is no 'exact rule'. It all depends on context--specifically what your site does and for who. – DA01 Jan 17 '12 at 5:57

I always build my applications with the philosophy of progressive enhancement.

In your case, I would design your site so that the site works for users without javascript and HTML5 enabled. This will result in a full reload of the whole page everytime the user navigates, but this is fine. This represents the normal 'state-of-flow' of the web and users should be familiar with it.

If javascript or HTML5 is avaliable, then you can start looking at using AJAX or whatever you are using to reload only certain portions of the page.

You can use something like YUI History, history.js and loads of other state management scripts to maintain state across your application.

In HTML4 browsers, you would see something like http://site.com/#/page/to/whatever and in HTML5 browsers, you will see something like http://site.com/page/to/whatever, but it does not refresh the whole page.

So the conclusion:

  • Yes, only changing parts of the site is good and more responsive, however you should take into account users without javascript or HTML5 (screen readers, search engines, users with those features disabled, etc).

  • Use progressive enhancement. Provide something that will work without javascript or HTML5 (full page reloads), then use your favorite javascript frameworks or HTML5, to build ontop and update only page sections that require updating.

|improve this answer|||||

If you are using AJAX to update section of the page that will harm your SEO.
Here is a good read about that SEO for AJAX

|improve this answer|||||
  • What does SEO have to do with anything here? – dnbrv Jan 17 '12 at 0:23
  • the title says "Should I update only those areas of site that need update?" I am giving him a reason not to.. Does that make sense? – Radi Jan 17 '12 at 0:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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