preload.io-font

0.3.0 • Public • Published

preload.io-font

Preload.io loader for fonts

Installation

npm i -S preload.io-font

Example

npm i -S preload.io preload.io-font
import Preloader from 'preload.io'
import { EVENTS } from 'preload.io'
import FontLoader from '../lib'

let preloader = new Preloader()
preloader.register( new FontLoader())

preloader.load({
  resource: {
    google: {
      families: [ 'Open+Sans:400, 400italic, 700' ]
    },
    classes: true
  },
  loader: 'fontLoader'
})

License

ISC

/preload.io-font/

    Package Sidebar

    Install

    npm i preload.io-font

    Weekly Downloads

    0

    Version

    0.3.0

    License

    ISC

    Last publish

    Collaborators

    • mattstyles