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

Improve HTML performance after preloading #143

Merged
merged 3 commits into from
Sep 7, 2019
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 3, 2019

Marp CLI's bespoke template controls active slide through z-index CSS declaration for preloading contents. But it makes HTML with a lot of slide pages degrade performance because the browser renders the layout of all hidden slides internally.

We've updated bespoke template to hide inactive pages by using display: none after loaded resources. Internal rendering for hidden slides will be skipped after resources were loaded, and make performance of HTML improve.

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

Successfully merging this pull request may close these issues.

1 participant