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

Page "flashes" when first loading #11

Closed
cjerdonek opened this issue Aug 29, 2018 · 1 comment
Closed

Page "flashes" when first loading #11

cjerdonek opened this issue Aug 29, 2018 · 1 comment

Comments

@cjerdonek
Copy link
Collaborator

If you load the page, you'll notice that a bunch of content "flashes" before going away.

I'm guessing this is because the content starts out displayed, and then the JS hides it when first executing. It would be better if it starts out hidden to prevent the flashing.

@teorth
Copy link
Owner

teorth commented Aug 29, 2018

I think I fixed this, though I'm not sure the solution is the most elegant - the exercise text window (which has the intro text, and is the main source of flashing because the text is cleared if localstorage is nonempty ) is now set to a hidden CSS style initiallly, and the className is changed once the text is finalised.

@teorth teorth closed this as completed Aug 29, 2018
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

2 participants