@slightlylate my use case: have a DOM that's very large, separated into about 12 panes, and 5 modals. Wondering if display none is worth it
-
-
Replying to @csuwildcat
@csuwildcat : very likely, but why is it all in the DOM all the time? Big DOMs make slow apps.1 reply 0 retweets 0 likes -
Replying to @slightlylate
@slightlylate I'm curious, are you saying you'd snapshot the innerHTML and remove the unseen elements altogether?1 reply 0 retweets 0 likes -
Replying to @csuwildcat
@slightlylate it's like app panes, so the user can animate them in at any time2 replies 0 retweets 0 likes -
Replying to @csuwildcat
@slightlylate also, they're all position absolute; not sure how many browsers are smart enough not to cascade a recalc with them out-of-flow1 reply 0 retweets 0 likes -
Replying to @csuwildcat
@csuwildcat : that'll give you some layout isolation, but it doesn't affect style recalc.1 reply 0 retweets 0 likes -
Replying to @slightlylate
@slightlylate huh, so a recalc raised from a position isolated content area still causes other isolated areas to compute layout?1 reply 0 retweets 0 likes -
Replying to @csuwildcat
@slightlylate that makes me sad, seems unnecessary :/2 replies 0 retweets 0 likes -
Replying to @csuwildcat
@csuwildcat : remember that style recalc and layout are different phases. The first one resolves properties that define what the second does1 reply 0 retweets 0 likes -
Replying to @slightlylate
@slightlylate what exactly precludes the browser from ignoring all types of computation of siblings that are absolute when only one changes?2 replies 0 retweets 0 likes
@csuwildcat : if siblings have no sibling selectors, are abs, positioned, and overflow contained, they can be laid out independently
-
-
Replying to @slightlylate
@slightlylate didn't think about sibling selectors, that's a good reminder. A post on the details of these conditions would help many devs.0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.