You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/guides/6.best-practices/2.data-fetching.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ Animation below visualizes the difference between server and client side fetchin
29
29
30
30
The rule of thumb is: _always use server-side fetching except for_:
31
31
32
-
-**lazy loaded data** - data that is not visible immediately on page load. For example:
32
+
-**lazy loaded data** - data that is not visible immediately on page load and can be removed from server-side rendered html to reduce its size. For example:
33
33
- product reviews should appear only when user clicks expand on the “reviews accordion”
34
34
- content below the fold is fetched on scroll
35
35
36
-
-**personalized data** - data that is different for each user or group. Fetching such data server side would not only cause flickering but also might cause problem with caching (read more about caching). For example:
36
+
-**personalized data** - data that is different for each user or group. Fetching such data server side would not only cause flickering but also might cause problem with caching ([read more about caching](/storefront/features/cdn/making-ssr-cacheable)). For example:
37
37
- pricing data might be different for each customer group
38
38
- product recommendations are based on individual user’s journey
0 commit comments