Added an option to preloadFonts so I can get rid of the lighthouse warning below:
I also ensure that the preloadImages option will add preload tags to the document head instead of the body as describe here: https://web.dev/preload-critical-assets/
The userAgent can now be turned off as well to avoid the issue of Google Fonts serving only ttf fonts if it doesn't recognize the user agent.
Let me now if I can do anything to get it merged. I'm motivated to get rid of my lighthouse warnings.
Description
Added an option to preloadFonts so I can get rid of the lighthouse warning below:![image](https://user-images.githubusercontent.com/6420016/95023073-3f704b00-067b-11eb-874a-5362c8cf1d98.png)
I also ensure that the
preloadImages
option will add preload tags to the documenthead
instead of thebody
as describe here: https://web.dev/preload-critical-assets/The userAgent can now be turned off as well to avoid the issue of Google Fonts serving only
ttf
fonts if it doesn't recognize the user agent.Let me now if I can do anything to get it merged. I'm motivated to get rid of my lighthouse warnings.