client server vs spa code example Example: single page application just reload newest things, keep the current things (same as AJAX)