Repository navigation
Replies: 3 comments
|
As for 2, i'm not sure that async was what i really meant, which is a function that will need to be complete execution before the dom change is starting.. |
0 replies
|
Thanks for your suggestions. But I haven't understood everything, yet. For 1, I wonder how did you add your custom headers for a normal navigation like clicking an |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In order for this package to be used in most projects powered by JS frameworks, it would need to be a little more customizable.
Two examples are below:
Providing an option to add custom headers to the requests:
In my project this will be used to provide the XCSRF header required to validate the CSRF token.
Without it the request will be denied .
Providing an option for async callback after the response has been received and before the DOM changes applied:
This will be useful in order to prepare and init whatever required for the new page before it is loaded to DOM.
Without those two, it will be real hard to have a real life usage for this package IMHO.
All reactions