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

Dont batch reads and writes in same rAF #219

Merged
merged 3 commits into from
Sep 12, 2019
Merged

Dont batch reads and writes in same rAF #219

merged 3 commits into from
Sep 12, 2019

Conversation

snewcomer
Copy link
Collaborator

@snewcomer snewcomer commented Sep 12, 2019

I mistakenly put read operations in the same rAF call. Ideally we want to avoid forced synchronous layout right before we request a frame and paint.

close #220

@snewcomer snewcomer requested a review from jleja September 12, 2019 07:32
@snewcomer snewcomer self-assigned this Sep 12, 2019
addon/index.js Outdated
html.clientWidth, html.scrollWidth, html.offsetWidth);
const documentHeight = Math.max(body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight);
const innerWidth = window.innerWidth;
Copy link
Contributor

Choose a reason for hiding this comment

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

You might be able to destructure these two consts

@@ -65,6 +68,9 @@ let RouterScrollMixin = Mixin.create({
this._routeDidChange(transition);
});
}
if (!get(this, 'isFastBoot')) {
scrollBarWidth = getScrollBarWidth();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@snewcomer snewcomer merged commit ddbbfcc into master Sep 12, 2019
@snewcomer snewcomer deleted the sn/batch branch September 12, 2019 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.3.0, 1.3.1 releases are incompatible with Ember Fastboot
2 participants