Wheel Reinvention: A JavaScript Webfont Loader, with ProgressEvent

So I made such a GitHub project as extracted from Allodynia.

A quick excerpt: Even though there are a heck lot of JavaScript or CSS Font Loading Module-based web font loaders, most of them don’t have progress event. I wanted such event so bad (for loading CJK fonts), I had to make my own. For such propose, the loader uses naïve XMLHTTPRequest to load a webfont file from the remote server, and injects such webfont into CSS in the form of Data URI. The progress event is exposed by the XHR.


你的電子郵件位址並不會被公開。 必要欄位標記為 *