2 ms·
If your Ajax code is reloading the whole page every time anything changes, that's some awful code. I have seen such designs in the wild, but that's just because
by chc 16y ago
If your Ajax code is reloading the whole page every time anything changes, that's some awful code. I have seen such designs in the wild, but that's just because whoever wrote the script was a lousy developer. It's not supposed to be that way.
Here's how Ajax works: A whole page is downloaded once from the server, then the page's Ajax functions start running — and then when part of the page needs to be updated, the Ajax toolkit only has to reload that specific data and render it on the page.