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
I'm not even totally sure this kind of thing would be useful, so this is more of just an idea.
I wonder if diffs could be made more stable by waiting for any in-flight async things (e.g. setTimeout) to settle before capturing the HTML when prerendering. Code that looks something like this could be used to handle setTimeout, for instance:
consttimers=newSet();originalSetTimeout=window.setTimeout;originalClearTimeout=window.clearTimeout;functiondeleteTimer(id){timers.delete(id);if(timers.size===0){// Something here, like a callback maybe}}window.setTimeout=function(cb,delay){constid=originalSetTimeout(()=>{cb();deleteTimer(id);},delay);timers.add(id);returnid;}window.clearTimeout=function(id){deleteTimer(id);returnoriginalClearTimeout(id);};
The text was updated successfully, but these errors were encountered:
I'm not even totally sure this kind of thing would be useful, so this is more of just an idea.
I wonder if diffs could be made more stable by waiting for any in-flight async things (e.g. setTimeout) to settle before capturing the HTML when prerendering. Code that looks something like this could be used to handle setTimeout, for instance:
The text was updated successfully, but these errors were encountered: