Skip to content

Commit

Permalink
add performance impact link
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilliams720 committed Apr 24, 2024
1 parent 0c60ea7 commit 22017fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ Due to some applications loading containers before the contents within that cont

the polyfill won't be able to identify these. So instead it may make sense to have a separate attribute to aid in finding containers, for now I will call this `containertiming`. The developer can mark containers which should have timing with this attribute instead of `elementtiming`.

## Performance Impact of a native implementation

See [Performance Impact](./performance-impact.md)

### Recursive iteration of new DOM elements is needed

If a subtree is injected into the DOM along with child elements, those child elements [won't be picked up](https://stackoverflow.com/questions/61314922/mutationobserver-not-picking-up-on-child-nodes) by the mutationObserver. This means we can miss out on new containers being injected if we don't recurse through each new entry.
Expand Down

0 comments on commit 22017fc

Please sign in to comment.