-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
Description
Use-case: I work on a news site and I want to create visual transitions between articles, but I don't want to lose the benefits of streaming. So:
- User clicks on link
- Create a new article element to contain the incoming article
- Start fetching content
- Pipe content into new article element
- Begin the visual transition once elements appear in the new article element
Not only is innerHTML is slower way to do this (due to a lack of streaming), it also introduces a number of behavioural differences. It'd be great to try to limit these, eg allow inline scripts to execute before additional elements are inserted.
tigt, AmeliaBR, josh, kdzwinel, rianby64 and 23 morejosh, Ambient-Impact, au-arms, sakamies, silenceisgolden and 5 more