当前位置:网站首页>Ssgssrcsr differences
Ssgssrcsr differences
2022-07-01 05:30:00 【CV engineer with brain】
1
You need to get all the data before rendering
Due to the need to render a complete component ,
So you must wait until all the data is loaded , Before you can start rendering
So unpackable Technology Big bundjs Open
Download and execute separately
summary
Wait until the previous step is completed , To move on
The server gets all the data ----》 Server rendering —〉
The client is injecting water into the code ----》 Page interactivity
Separately 2 Time ReactDOM.renderToString Method
By splitting React DOM Root The way
Complete the split of server-side rendering
Thus, the problem of delaying the rendering of the server during data acquisition is avoided
Until all components are filled , Can be interactive
Execute when absorbing water js Logic and the process of binding event callback
react It is required that the component tree produced by the front end and the component tree produced by the service end remain one to ,
This will cause the front-end rendering content to overwrite the server-side rendering content
React18 SSR
suspense
Support server-side rendering
Support the loss transmission of the server HTML
Support client selective water absorption
suspense
You can pause the server SSR Work , And after determining the rendering content , Keep going back
Split the rendering , Combined with the ability of selective water injection ,
Speed up the interactive time of the page
Solved the problem 3 A question
1. You need to get all the data before rendering
Static content can be returned first , And continue to return the rest after obtaining the data
2. Only after all the contents are loaded can water be injected
Code splitting can be combined with server-side rendering
HRML After partial rendering , Priority can be given to local water injection
3. Do not interact until all components are filled with water
Give priority to the components that users are interacting with
边栏推荐
- Printk debugging summary
- Use and principle of AQS related implementation classes
- Unity 使用Sqlite
- C# wpf 使用DockPanel实现截屏框
- Usage and principle of synchronized
- Global and Chinese markets for business weather forecasting 2022-2028: Research Report on technology, participants, trends, market size and share
- Worried about infringement? Must share copyrightless materials on the website. Don't worry about the lack of materials for video clips
- TypeORM 框架
- More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv.so‘.
- 3D建模與處理軟件簡介 劉利剛 中國科技大學
猜你喜欢

2/15 (awk, awk conditions, awk processing design can perform additional tasks, and use awk array +for loop to realize advanced search)

Daily code 300 lines learning notes day 11

Leetcode top 100 questions 1 Sum of two numbers

智慧运维:基于 BIM 技术的可视化管理系统

eBPF Cilium实战(2) - 底层网络可观测性

Intelligent operation and maintenance: visual management system based on BIM Technology

数据库连接池的简单实现

tar命令

Tar command

LevelDB源码分析之LRU Cache
随机推荐
Ebpf cilium practice (2) - underlying network observability
AcWing 889. 01 sequence satisfying the condition (Cartland number)
Vmware workstation network card settings and three common network modes
Cockroachdb: the resistant geo distributed SQL database paper reading notes
How to create a progress bar that changes color according to progress
[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array
Unity项目心得总结
[Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
Global and Chinese market of digital badge 2022-2028: Research Report on technology, participants, trends, market size and share
Daily question -leetcode1175- permutation of prime numbers - Mathematics
Global and Chinese market of 3D CAD 2022-2028: Research Report on technology, participants, trends, market size and share
Copier le matériel de conseils de bébé ne peut pas être vide, comment résoudre?
Global and Chinese markets of superconductor 2022-2028: Research Report on technology, participants, trends, market size and share
3D建模与处理软件简介 刘利刚 中国科技大学
小程序常用组件小结
Go learning notes (5) basic types and declarations (4)
JDBC常见面试题
C# wpf 使用DockPanel实现截屏框
[RootersCTF2019]babyWeb
More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv. so‘.