Skip to content
This repository was archived by the owner on Jul 29, 2023. It is now read-only.

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

Open
AjaxGb wants to merge 2 commits intoSuperManifolds:masterfrom
AjaxGb:youtube-events
Open

Fix comments not loading after YouTube's custom navigation#206
AjaxGb wants to merge 2 commits intoSuperManifolds:masterfrom
AjaxGb:youtube-events

Conversation

@AjaxGb
Copy link

@AjaxGb AjaxGb commented Sep 8, 2017

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/

YouTube fires several custom events while "loading" a page. The
"spfdone" event indicates that the new page has finished loading.
http://youtube.github.io/spfjs/documentation/events/
@AjaxGb
Copy link
Author

AjaxGb commented Sep 8, 2017

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 AjaxGb changed the title Fix comments loading after YouTube's custom navigation Fix comments not loading after YouTube's custom navigation Sep 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments