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

Reduce HTML file size of bespoke template by shortened container tag name and id #150

Merged
merged 3 commits into from
Sep 12, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 11, 2019

Shorten container tag name and id for bespoke template from article#presentation to div#p.

The rendered CSS has a lot of definitions article#presentation > section to scope style for Marp slide deck. It is important to avoid conflict with bespoke template styles, but we still have a chance to reduce file size by changing the container element.

For example, it can reduce file size of converted HTML about 9KB if you are using Marp Core's default theme.

ℹ️ No changes about this have required in bare template.

Yuki Hattori added 2 commits September 11, 2019 16:39
It can reduce file size of converted HTML about 9KB by shorten tag name
and id of container element.
@yhatt yhatt changed the title Shorten container tag name and id Shorten container tag name and id for bespoke template Sep 11, 2019
@yhatt yhatt changed the title Shorten container tag name and id for bespoke template Reduce HTML file size of bespoke template by shortened container tag name and id Sep 11, 2019
@yhatt yhatt merged commit 4aaa99e into master Sep 12, 2019
@yhatt yhatt deleted the shorten-container-id branch September 12, 2019 01:53
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.

None yet

1 participant