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

Preventing a FOUC #56

Closed
sammyfa opened this issue Dec 12, 2012 · 1 comment
Closed

Preventing a FOUC #56

sammyfa opened this issue Dec 12, 2012 · 1 comment

Comments

@sammyfa
Copy link

sammyfa commented Dec 12, 2012

How do I prevent a FOUC (flash of unstyled content) on an element which is modified by the plugin?

A div has lots of text, which is "compacted" by the plugin. But before the plugin executes, the full div is shown, and then the user can see it being compacted.

So I added a "max-height" to the div, and then removed it after, but that doesn't work well.

What is the best approach for this sort of problem?

@travco travco mentioned this issue Jul 23, 2014
travco added a commit to travco/jquery-expander that referenced this issue Jul 24, 2014
@kswedberg
Copy link
Owner

@sammyfa: @travco updated the readme with instructions for avoiding the FOUC. Thanks for the report.

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