You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you take a look at the mutation observer logic for infinite scroll, we're able to apply the mods as soon as the DOM changes, effectively preventing the default appearance from loading (e.g. upvotes/downvotes). This is seamless and allows the new content loaded in to already have the mods applied, so you see none of the old content blink in and then get overwritten.
In theory, this should be possible to do on initial page load, too, so we don't get that blink effect. It's going to be a bit tricky to do correctly due to the fact that we are setting up so much content at the beginning and have to test which mods are applied before walking through them, so the window of opportunity is kind of small, but it could work. And this tends to function more seamlessly by hiding/inserting directly with CSS
The text was updated successfully, but these errors were encountered:
aclist
changed the title
Override elements after they appear in DOM but before being drawn onscreen
[FEAT] Override elements after they appear in DOM but before being drawn onscreen
Jul 10, 2023
If you take a look at the mutation observer logic for infinite scroll, we're able to apply the mods as soon as the DOM changes, effectively preventing the default appearance from loading (e.g. upvotes/downvotes). This is seamless and allows the new content loaded in to already have the mods applied, so you see none of the old content blink in and then get overwritten.
In theory, this should be possible to do on initial page load, too, so we don't get that blink effect. It's going to be a bit tricky to do correctly due to the fact that we are setting up so much content at the beginning and have to test which mods are applied before walking through them, so the window of opportunity is kind of small, but it could work. And this tends to function more seamlessly by hiding/inserting directly with CSS
The text was updated successfully, but these errors were encountered: