Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPerformance problem: Window module causing unnecessary layout reflow #510
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
w0rm
Feb 26, 2016
Seems that this is in the project from the old times, tracked the resizeIfNeeded call down until this commit elm-lang@1af7914
w0rm
commented
Feb 26, 2016
|
Seems that this is in the project from the old times, tracked the |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
w0rm
commented
Feb 27, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
evancz
May 11, 2016
Member
I guess it can be removed. I do not think elm-lang/window will have this issue.
|
I guess it can be removed. I do not think |
evancz
closed this
May 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


w0rm commentedFeb 26, 2016
In the Runtime code there is a
drawfunction that checks for Window module and callsresizeIfNeededif it exists.resizeIfNeededcallsnode.clientWidthandnode.clientHeightthat trigger layout reflow.Because
drawfunction happens very often, this affects the performance and makes it impossible to use Window module to calculate dimensions in HTML5 games that render on everyrequestAnimationFrame.