Skip to content
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

Add beforeFinish and beforeLoad handlers to page load #25

Open
mdahardy opened this issue Jul 31, 2024 · 1 comment
Open

Add beforeFinish and beforeLoad handlers to page load #25

mdahardy opened this issue Jul 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mdahardy
Copy link
Contributor

We removed callbacks from the survey logic as most logic can just be handled in the async function itself. However, a callback that calls after the document body has loaded, but before it displays, could be useful for e.g. animating the display of the page which is difficult to do now. Because all logic that happens before the document body has loaded can be handled in the async function, the scope of these listeners can be relatively constrained to handle the logic between load/display and submit/remove display.

@mdahardy mdahardy added the enhancement New feature or request label Jul 31, 2024
@mdahardy
Copy link
Contributor Author

This could also be used for adding custom logic, e.g. adding an event listener to submit the page on "Enter".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant