Font component

A JavaScript font loader built on top of Bram Stein's Font Face Observer.
id: font
title: Font
description: "A JavaScript font loader built on top of Bram Stein's Font Face Observer."
class: Drupal\ambientimpact_ux\Plugin\AmbientImpact\Component\Font
provider: ambientimpact_ux
{  }
component.font:
  js:
    components/font/font.js:
      attributes:
        defer: true
  dependencies:
    - ambientimpact_ux/fontfaceobserver
    - ambientimpact_ux/component.font.preload
    - ambientimpact_core/framework
component.font.preload:
  header: true
  js:
    components/font/font.preload.js:
      attributes:
        defer: false