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

Added fonts locally and configured them with webpack #80

Merged
merged 4 commits into from
Oct 20, 2018

Conversation

himankpathak
Copy link
Contributor

@himankpathak himankpathak commented Oct 20, 2018

Description of the Change

Added fonts locally and configured them with webpack.
Added font-display property so text is diplayed using fallback font while fonts are being downloaded.
Removed Google Font API from the index.html

Benefits

Fonts now are served through http2 which is much faster than using Google fonts API.
Fonts now leverage the font-display property which makes text use fallback font even when fonts are downloading. Greatly improves user experience when browsing through slow internet connection. Learn more

Verification Process

Verified that fonts do use a fallback font using browser developer tools to simulate a Slow 3G connection. Web app is fucntioning as expected in Firefox and Chrome both.

Applicable Issues

Closes #22

@alexdor alexdor merged commit dedf454 into ossn:master Oct 20, 2018
@alexdor
Copy link
Member

alexdor commented Oct 20, 2018

Looks good : )

@himankpathak himankpathak deleted the addlocalfonts branch October 20, 2018 15:37
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