Now we use React to obtain a large amount of data, render it, and display it on the page. How to optimize performance?
人生最曼妙的风景,竟是内心的淡定与从容!
Only render the visible area.
Higher version browsers can use: Page Visibility API
Lower versions can only calculate the scrolling distance by themselves.
Only render the visible area.
Higher version browsers can use: Page Visibility API
Lower versions can only calculate the scrolling distance by themselves.