alientube icon indicating copy to clipboard operation
alientube copied to clipboard

Fix comments not loading after YouTube's custom navigation

Open AjaxGb opened this issue 7 years ago • 1 comments

For quite some time now, navigating to a new page using YouTube's internal loading system would prevent Reddit comments from showing up until the page was actually reloaded.

This fixes the issue by hooking into YouTube's custom page load event system. Specifically, it listens for the "spfdone" event, which is equivalent to the native "DOMContentLoaded" event. http://youtube.github.io/spfjs/documentation/events/

AjaxGb avatar Sep 08 '17 21:09 AjaxGb

I believe that this would resolve #194, which was created immediately after the internal loading system was released, but the bug report is not very clear.

AjaxGb avatar Sep 08 '17 21:09 AjaxGb