Created by: abhishekakade
Description of PR
- This will preload the font files instead of waiting for main JS file to parse and then load fonts.
- Since font files or their names are not going to change, it is fine if they don't get
hashed
on each webpack build and so I placed them inpublic/fonts
folder. - Moved font-face declarations of these preloaded fonts to
index.html
to prevent render blocking css (fixed in second commit). - This is supposed to improve performance and loading but since I could not test the production build version locally or on my own repo with gh-pages (maps and other things were not loading), I only tested the un-minified dev build which will not provide much insight on actual performance of minified production build. So this should be tested in a separate branch first and then merged with the main branch.
Type of PR
-
Bugfix
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone
Screenshots