@idw/googlefonts-loader

uses webfont-loader internal, but skips loading font when font is already downloaded. Good for multiple components using the same font.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@idw/googlefonts-loader
Minified + gzip package size for @idw/googlefonts-loader in KB

Readme

googlefonts-loader

This module uses webfontloader internally. What it adds is dedupe functionality of loaded fonts. Which means it won't load a font that is already loaded.

It leverages FontFaceSet web api. It is currently expiremental. However, if this module detects it doesn't have fontFaceSet it just loads the font (which is the default behavior).

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.