-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support hooks #177
Support hooks #177
Conversation
- Support a hook to return nothing
How about a hook after the blocking javascript is done executing as well? |
Could you please give me some use cases for this? |
This package not only cares about the functionalities, but being small and compliant with the standard. There isn't an event for something like "all script initial execution done" in the initial page load, maybe it's for security or it's simply meaningless, so I prefer not to have it as for now ( |
Well, in my case i would use it to register some components, which i can do only once they have finished initializing themselves. |
Can you please merge this? |
Motivation and Context
With hooks, you can now change the request, response, parsed document (of type
Document
), and DOM switchesResult (of type SwitchesResult) used inside Pjax.Inspired by falsandtru's
sequence
option.Thanks to @Yahav for the introduction.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: