Bundle the fonts instead of loading them from Google fonts
gargakshit opened this issue · 4 comments
gargakshit commented
Bundling the fonts will not make a network request each time untab's frame is injected, increasing performance. As it injects the frame into the page, the font loading (might) block the loading of other content request by the website itself. Also, if we open untab while some page asset is still loading, the asset loading is cancelled and further requests are blocked until untab's fonts are loaded
blenderskool commented
Yep, this issue is relevant and can be a good first issue.
Some details for anyone who would want to work on this:
- Download the Lato font and store it
src/assets/fonts
directory. - Load the locally downloaded font instead of loading from Google Fonts.
- Update the build process to copy
src/assets
directory todist/assets
directory.
gargakshit commented
Reminds me, please keep this for me :D
I'll do it during the hacktoberfest :)
blenderskool commented
Sure @gargakshit 🙂
blenderskool commented
Closed via #23