Conversation
Notices
-
Embed this notice
This is pathetic as fuck. Fuck Javashit I can't even FUCKING SCROLL this mess
-
Embed this notice
@ne @alex you just need a virtual list
-
Embed this notice
@alex @e (trying to teach you since ur a webshitter) THIS is why you dont shove "DOM OPTIMIZATION" CODE INTO JS because if your JS is SLOW ANYWAY then STUPID SHIT LIKE THIS HAPPENS and it fucking SUCKS and defeats the purpose.
-
Embed this notice
@ne @e Rendering thousands of items in pure html is also slow.
-
Embed this notice
@e @alex Let me correct you, also, on the fact that that "IS" a virtual list that you are witnessing, being chugged by the terrible JS.
-
Embed this notice
@ne @alex >This is what culling is, browsers handle culling.
browsers can't do that though because CSS can say "move the 10,000th item to the top" so it has to render all 10,000 items if it wants full CSS compliance
-
Embed this notice
@alex @e No it's not, factually wrong even. "Creating" thousands of items in pure HTML is slow, and manipulating said DOM once created is just as slow, but rendering is easy as cheese.
This is what culling is, browsers handle culling.
-
Embed this notice
@alex @e and IIRC, recently a feature landed in Chrome to handle actual DOM containment and off-screen updating.
"Virtual Lists" are deprecated sweaty. I hope this gains more support and we can drop Virtual lists and let the browser handle it, as it should be handling it
-
Embed this notice
@ne @e That would be nice, but there were obvious performance improvements switching to a virtual list in Soapbox.
-
Embed this notice
@ne @alex made for what? you could just have the browser handle the presentation entirely. websites are for transferring information, you can do that with json
-
Embed this notice
@e @alex Transferring information down a pipe, maybe you've heard the term "wire" for stuff like that. JSON isn't really made for writing, nobody writes json, it's made mainly for generating. that's what XML and HTML were made for, display and writing. JSON is made for reading and generating, but it obviously can be written into
-
Embed this notice
@ne @alex I mean css/html/js suck, I'd rather we just pass json objects around but this is the world we live in
-
Embed this notice
@e @alex >json objects around
JSON was made for this. What makes you think this is a good idea? Might as well start using NoSQL databases since JSON is superior.
-
Embed this notice
@e @alex Again, you mistake drawing and rendering. Browsers have sane implementations to handle offscreen drawing, it's called culling. My point is that if browsers didn't, your shit would be slow as fucking hell.