@justinfagnani watching your talk (great job!), have you thought about instead of placeholders using ranges? I wanted to try it..
-
-
Replying to @matthewcp
(thanks!) The placeholders are inserted into the string before setting template.innerHTML, so they have to be text.
1 reply 0 retweets 0 likes -
Replying to @justinfagnani @matthewcp
For tracking them after parsing I keep references to start and end nodes. I used to make Ranges out of them, but it was too slow.
2 replies 0 retweets 1 like -
Replying to @justinfagnani @matthewcp
@slightlylate was asking a similar Q. Static Ranges might help, as well as optimizing Ranges that start and end in the same container.1 reply 0 retweets 1 like -
Replying to @justinfagnani @matthewcp
I've been looking into the StaticRange impl; pretty sure it won't help. But we might be able to fix Range updates tho!
1 reply 0 retweets 1 like -
StaticRange spec: https://garykac.github.io/staticrange/#interface-staticrange …
1 reply 0 retweets 0 likes -
Replying to @slightlylate @justinfagnani
How would this help prevent traversing on each clone?
1 reply 0 retweets 0 likes -
Replying to @matthewcp @justinfagnani
<template> (or similar) will need to grow new API for that; not too hard.
1 reply 0 retweets 0 likes
But I think we're going to have to use regular-ole-Range. We should investigate how to speed that up.
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.