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

Prevent the tab content from displaying before the tab script is loaded #14

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

stevegrunwell
Copy link
Owner

Using WordPress' .hide-if-js class, hide all of the tab panels by default and remove the class (if it's still set) at the time the tab is first rendered. This prevents the "flash" of the tab contents as the page is loading.

Using WordPress' `.hide-if-js` class, hide all of the tab panels by default and remove the class (if it's still set) at the time the tab is first rendered.
@stevegrunwell stevegrunwell added the enhancement New feature or request label Aug 25, 2020
@stevegrunwell stevegrunwell merged commit d682373 into develop Aug 25, 2020
@stevegrunwell stevegrunwell deleted the fix/prevent-flash-of-untabbed-content branch August 25, 2020 19:26
@stevegrunwell stevegrunwell mentioned this pull request Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant