Skip to content

Minimize size of bootstrap used in dbmon benchmark #5123

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

Merged
merged 1 commit into from
Mar 9, 2017

Conversation

bzmw
Copy link
Contributor

@bzmw bzmw commented Mar 7, 2017

What kind of change does this PR introduce? (check at least one with "x")

[ ] Bugfix
[ ] Feature
[x] Code style update
[ ] Refactoring
[ ] Build related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

Other information:
In #5029 I outlined how the bootstrap library that is used in the dbmon benchmark references font files that are not included in the repo.
Rather than including them in the repo I thought a better approach would be to customize the bootstrap library to only include exactly what the benchmark actually needed.

The customization options are stored, by bootstrap, in the minified file. For quick reference you can find it here.

Size of the library goes from 102KB to 49KB.

This resolves my original problem as the "Glyphicons" module of bootstrap is no longer included and the references to fonts have been removed from the library.

Update based on comments:

This PR now removes the bootstrap library that the js-repaint-perfs library was using in favour of using the styles.css that the library now uses.

@yyx990803
Copy link
Member

FYI the bootstrap file used was directly copied from https://github.com/mathieuancelin/js-repaint-perfs , but they have since removed the dependency on bootstrap. I think we can just use this file instead.

@bzmw bzmw force-pushed the customizeDbmonBootstrap branch from d1d4fa1 to 99d8b9e Compare March 8, 2017 18:30
@bzmw
Copy link
Contributor Author

bzmw commented Mar 8, 2017

@yyx990803 thanks for pointing that out. I have made that change, and updated OP.

@yyx990803 yyx990803 merged commit 890e68a into vuejs:dev Mar 9, 2017
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.

2 participants