// Note: I don't mind where you put `globalCache`,
// this is just a really global example.
var globalCache = window.xhrFontCache;
if(!globalCache)
globalCache = window.xhrFontCache = {};
loadFontsFromUrl(pubsub, fontFiles, globalCache)
Sorry, I didn't test this! I'm waiting for feedback before merging.
Supersedes 1969828 in PR #28 by @kontur.
@kontur you can now do something like this:
Sorry, I didn't test this! I'm waiting for feedback before merging.