Skip to content

tutorial: remove unnecessary call performance.now() inside raf #5513

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

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

fivemru
Copy link
Contributor

@fivemru fivemru commented Oct 10, 2020

The callback called via requestAnimationFrame(callback) already contains the timestamp in the first argument, calling performance.now() inside raf is not required.

Tests

  • Run the tests with npm test and lint the project with npm run lint

@Conduitry Conduitry merged commit ddd79e3 into sveltejs:master Nov 18, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants