Closed (fixed)
Project:
Webfont Loader
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2013 at 13:06 UTC
Updated:
7 Jul 2013 at 06:50 UTC
I noticed whilst working on a local project and while not connected to www that if WebFont.load(Drupal.settings.google_webfont_loader_api_setting); is unsuccessful then it causes a JS error that breaks almost all the js on the page.
This is unlikely to ever be an issue on a production site unless the font provider is temporarily unavailable.
I'll make a patch next week.
Comments
Comment #1
btmash commentedHiya,
Thanks for this crucial find, @mrsimonelliott. Were you able to make any progress on a patch?
Comment #2
btmash commentedI hadn't heard back so I've placed the
Webfont.loadinto a try-catch block (where I write to the console if it cannot run Webfont.load). Looks to be working well so I've committed it to the dev branch. This will be a part of the next stable release (which...will probably be relatively soon unless any major issues come up).