Excellent video. Would definitely love to see another one that touches upon how introducing dynamic heights impacts this solution. My only suggestion is for more advanced topics it would be great to hear your thought process in analyzing the problems to solve and how you navigate to a solution. But I really enjoyed this video.
Hi. I created an infinity grid with dynamic width about 2 years ago, similar to the one you showed in your video. However, I couldn't solve one issue: fast scrolling. If you have 50k to 1M elements and render all of them, scrolling quickly from top to bottom causes layout shifts and FPS drops. I tried using debouncing and rendering delays, but it's not easy to implement. I rendered cards - picture + text. Can you give me some advice?
Basically there are two possible optimizations here: 1) Instead of applying position absolute to all the list-items seperately, you only apply translateY to the parent block. 2) translateY uses GPU acceleration if available
I'm so sorry, but I stumbled upon this video and only understood rendering and algorithms. I just looked up that react is a JavaScript library for front end development for ui type stuff. I don't even know why this was in my watch list.
this was great deduction. I'd love to see the implementation for dynamic heights!
Dynamic heights can be implemented easy but the performance part is a huge challenge
Awesome explanation!, I am a backend dev and I got it thanks a lot.
I was searching for this video for a while , glad I found this video today
Kindly cover more react and ai for web engineer stuff
Awesome content, that's quality teaching! Instant sub
Excellent video. Would definitely love to see another one that touches upon how introducing dynamic heights impacts this solution. My only suggestion is for more advanced topics it would be great to hear your thought process in analyzing the problems to solve and how you navigate to a solution. But I really enjoyed this video.
love how there was math involved haha, looking forward to more content from you!
This is good, thanks!
thanks a lot man, you are a gem!!
Hi. I created an infinity grid with dynamic width about 2 years ago, similar to the one you showed in your video. However, I couldn't solve one issue: fast scrolling. If you have 50k to 1M elements and render all of them, scrolling quickly from top to bottom causes layout shifts and FPS drops. I tried using debouncing and rendering delays, but it's not easy to implement. I rendered cards - picture + text. Can you give me some advice?
How would I go about replacing the generated array with my own? I have a string array that I’m trying to virtualize
I think if you use React-virtuoso you can render your own component instead of string
Hey man, can you please explain how the the translateY optimization works? I did not understand it.
Basically there are two possible optimizations here:
1) Instead of applying position absolute to all the list-items seperately, you only apply translateY to the parent block.
2) translateY uses GPU acceleration if available
Good stuff ❤
how would we handle if itemheight is different for list elements
What's the wallpaper on the screen behind you?
youtube videos for "cafe music"
I'm so sorry, but I stumbled upon this video and only understood rendering and algorithms. I just looked up that react is a JavaScript library for front end development for ui type stuff. I don't even know why this was in my watch list.
Oh sorry might be wrong tag will remove it ! 😅
Can we overcome this with pagination?
if you have an url based pagination with page numbers, but if you have deep list then u need it
Let's just use a library for now
Not tan-stack? Surprised it’s not one of the recommendations