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

Cache result to fix WebKit framerate issue #6

Open
rheaisugon opened this issue Aug 27, 2018 · 0 comments
Open

Cache result to fix WebKit framerate issue #6

rheaisugon opened this issue Aug 27, 2018 · 0 comments

Comments

@rheaisugon
Copy link
Collaborator

When tied to an onresize event, for example, the code can cause significant frame-rate performance issues in Webkit browsers such as Chrome. This is due to the repeated insertion and deletion of elements to the DOM to calculate which value is the "true viewport value". This change caches the result of the calculation so it is faster on subsequent calls.

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

No branches or pull requests

1 participant