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 delay #9

Merged
merged 4 commits into from
Oct 27, 2017
Merged

Add delay #9

merged 4 commits into from
Oct 27, 2017

Conversation

decates
Copy link
Contributor

@decates decates commented Oct 19, 2017

Add customisable delay (milliseconds) (Feat request #8 ) to support routing transitions.

@decates
Copy link
Contributor Author

decates commented Oct 19, 2017

I'm aware that introducing setTimeout(..., 0) as a default modifies existing behaviour slightly, but don't envisage this being a problem.

@jeneser
Copy link
Owner

jeneser commented Oct 19, 2017

Yep, if we use setTimeout(..., 0), we may not be sure what's going to happen.
And, How long is the delay? Not just the transitions, there may be some delayed Ajax. Too long or too short will affect the user experience.

@decates
Copy link
Contributor Author

decates commented Oct 27, 2017

Changed to avoid setTimeout when there is no delay specified. I was expecting this PR/feature to just be about allowing users to specify a fixed delay. It feels like handling ajax is a different (and useful) feature.

@jeneser
Copy link
Owner

jeneser commented Oct 27, 2017

Good job! Let me test it.

@jeneser jeneser self-requested a review October 27, 2017 09:48
Copy link
Owner

@jeneser jeneser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, I will merge it.

@jeneser jeneser merged commit ae3da33 into jeneser:master Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants