Font.js is a JavaScript font toolkit that makes it easy to load and manage external fonts.
Font.js pulls the font with an AJAX request, and determines (in a somewhat hacky way) if a font is loaded by inserting a test div which is then polled until the width is no longer at zero-width.
Overall, Font.js saves an awful amount of work, while providing a consistent API that can be used for loading fonts in a most convenient way — nonetheless, there are other uses for this fancy library.










