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

Split out styling code instead of looping through elements #74

Open
astral-sa opened this issue Feb 3, 2018 · 0 comments
Open

Split out styling code instead of looping through elements #74

astral-sa opened this issue Feb 3, 2018 · 0 comments
Assignees

Comments

@astral-sa
Copy link
Collaborator

astral-sa commented Feb 3, 2018

This is a prerequisite for #72.

A lot of the javascript logic, preference checking, and expensive individual element style setting that executes every page load (for every post) can be converted to some CSS

This will save us from doing so many reflows, which will speed up page re-rendering when we're applying our styles. It'll also save us some expensive running through the DOM just to craft the styles, which should speed up script execution.

@astral-sa astral-sa self-assigned this Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant