Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zukerpie
· 3y ago · 0 comments
Added a quick domain check to avoid the issue that you've mentioned :)
Comments
[–]
chalsprhebaodu
3y ago
I believe you could use a sub tree mutation observer instead of polling.
[–]
Groxx
3y ago
Yes, definitely use mutation observers. Far faster to react and doesn't require polling, they're better in essentially every way when things aren't changing many times per second.