Skip to content

Commit 29fba37

Browse files
committed
translate Waiting for all content to load for crawlers and static generation section
1 parent e82fe05 commit 29fba37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/reference/react-dom/server/renderToPipeableStream.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,13 +545,13 @@ const { pipe } = renderToPipeableStream(<App />, {
545545
546546
---
547547
548-
### Waiting for all content to load for crawlers and static generation {/*waiting-for-all-content-to-load-for-crawlers-and-static-generation*/}
548+
### Crawlers এবং static generation এর জন্য সব কনটেন্ট লোড হওয়া পর্যন্ত অপেক্ষা করা {/*waiting-for-all-content-to-load-for-crawlers-and-static-generation*/}
549549
550-
Streaming offers a better user experience because the user can see the content as it becomes available.
550+
Streaming একটি ভালো user experience দেয় কারণ ইউজার কনটেন্ট প্রস্তুত হওয়ার সাথে সাথে তা দেখতে পারে।
551551
552-
However, when a crawler visits your page, or if you're generating the pages at the build time, you might want to let all of the content load first and then produce the final HTML output instead of revealing it progressively.
552+
তবে, যখন কোনো crawler আপনার পেজ ভিজিট করে, অথবা আপনি build time এ পেজগুলো pre-generate করছেন, তখন আপনি ধাপে ধাপে দেখানোর বদলে আগে সব data লোড হতে দিয়ে সম্পূর্ণ final HTML একবারে তৈরি করতে চাইতে পারেন।
553553
554-
You can wait for all the content to load using the `onAllReady` callback:
554+
`onAllReady` callback ব্যবহার করে আপনি সব কনটেন্ট লোড হওয়া পর্যন্ত অপেক্ষা করতে পারেন:
555555
556556
557557
```js {2,7,11,18-24}
@@ -587,7 +587,7 @@ const { pipe } = renderToPipeableStream(<App />, {
587587
});
588588
```
589589
590-
A regular visitor will get a stream of progressively loaded content. A crawler will receive the final HTML output after all the data loads. However, this also means that the crawler will have to wait for *all* data, some of which might be slow to load or error. Depending on your app, you could choose to send the shell to the crawlers too.
590+
একজন সাধারণ ভিজিটর ধাপে ধাপে (progressively) লোড হওয়া কনটেন্টের stream পাবে। একটি crawler সব data লোড হওয়ার পর পুরো final HTML পাবে। তবে এর মানে crawler-কে *সব* data এর জন্য অপেক্ষা করতে হবে—এর কিছু হয়তো ধীরগতির বা error-প্রবণ হতে পারে। আপনার অ্যাপের ধরন অনুযায়ী চাইলে আপনি crawlers এর জন্যও শুধু shell পাঠাতে পারেন।
591591
592592
---
593593

0 commit comments

Comments
 (0)