onFontReady() is a 653 byte function that fires a callback when a font family has loaded.

In this example, Parchment MF is displayed only after it has loaded.

onFontReady works in modern browsers and IE9+.