zubyj/leetcode-explained

Youtube video gets refreshed every time the 'Solutions' tab is clicked

Closed this issue · 2 comments

zubyj commented

Ideally, we want the youtube video to not disappear when a tab is clicked and the page is dynamically updated.

Maybe a fix could be to track the timestamp before we update the page. Then reload that timestamp, if it exists, into the embedded video's url.

zubyj commented

I dont think that the youtube video can stay injected. Lets say we navigate from solutions to the description tab. The page is dynamically updated, the div in which we are injected the youtube video doesnt exist anymore.

zubyj commented

dont think it can be fixed, since we're injecting the video into the solutions tab.