Assignment seven by Aliza Batool

server side data fetching

  • Data is fetched before the page loads, during the server rendering process.
  • Hence, it provides Better SEO as content is present in initial HTML.
  • server side data fetching allows faster initial page load.
  • It is good for static data that doesn't change often.

Client side data fetching

  • Data is fetched after the page loads, in the browser.
  • Hence, it is better for real time and interactive data.
  • Client side data fetching allows frequent data updations.
  • It is good for dynamic data that changes often.
Back to Home