How I made Google’s data grid scroll faster with a line of CSS
1–10 of 223 posts
Re: How I made Google’s data grid scroll faster with a line of CSS
#2Re: How I made Google’s data grid scroll faster with a line of CSS
#3There's no reason for lists to scroll slowly after so many years of scrolling lists. There should just be one way to do a scrolling list, implemented natively and left alone. Yet, in web development, there's always a new and different way to do a thing, with either new, or pretty much the same ways for things to be broken.
Grumble grumble
Re: How I made Google’s data grid scroll faster with a line of CSS
#4I've been doing web development for 20 years now. I don't know if it's strictly endemic to web or frontend, but I feel like we're solving the same problems over and over again, using the same low levels of abstraction. There's no reason for lists to scroll slowly after so many years of scrolling lists. There should just be one way to do a scrolling list, implemented natively and left alone. Yet, in web development, t…
Re: How I made Google’s data grid scroll faster with a line of CSS
#5I don't think this is recommended to use internally at Google because it's not supported on Safari.
Re: How I made Google’s data grid scroll faster with a line of CSS
#6The contain CSS property allows an author to indicate that an element and its contents are, as much as possible, independent of the rest of the document tree. This allows the browser to recalculate layout, style, paint, size, or any combination of them for a limited area of the DOM and not the entire page, leading to obvious performance benefits.
I wonder how much of this is browser specific because isn't this is all about implementation?
Re: How I made Google’s data grid scroll faster with a line of CSS
#7Opinions are my own. I don't think this is recommended to use internally at Google because it's not supported on Safari.
Re: How I made Google’s data grid scroll faster with a line of CSS
#8I've been doing web development for 20 years now. I don't know if it's strictly endemic to web or frontend, but I feel like we're solving the same problems over and over again, using the same low levels of abstraction. There's no reason for lists to scroll slowly after so many years of scrolling lists. There should just be one way to do a scrolling list, implemented natively and left alone. Yet, in web development, t…
I can't even imagine how that would work without turning into something like that can only be minimally styled and has to be (usually poorly) re-implemented to get it to look the way you want it to.
Re: How I made Google’s data grid scroll faster with a line of CSS
#9If you have something that "unmounts" things as they scroll off the screen ("virtualized rendering" as the article calls it, a common feature for data grids), this is great tool for verifying that behavior.
Re: How I made Google’s data grid scroll faster with a line of CSS
#10I created a simple table with 40k rows, slapped an input box above it, and had some vanilla js set CSS visibility on all rows depending on whether they matched. This would update live as I was typing (10ms trigger delay). No optimizations.
So what are frontend devs doing that they break all of this so badly? Are they just trying to be too smart, I wonder?