JorikSchellekens/lyricist

Fix lyric injection problem

Closed this issue · 2 comments

This bug also relates to the bug where the lyrics are not loaded on tab change.

We're going to change to Mutation Observers. That should fix the problem. Except that it'll introduce an edge case when the page is first loaded. Since I've talked to you about this already we've decided to cache the events and ignore repeats which occur under 5ms from the next.

See the full solution sketch in this gist.
PR coming mate.

Pull request closes issue.