SuperManifolds / alientube

Reddit comments, in your YouTube!
Other
59 stars 39 forks source link

Fix comments not loading after YouTube's custom navigation #206

Open AjaxGb opened 7 years ago

AjaxGb commented 7 years ago

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 commented 7 years ago

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.