We have received reports where Whitney webfont load intermittently on sites (mostly CMS sites). Upon further investigation, it seems to limit to following condition:
- Use @import to request Whitney webfont
- @import is loaded through HTML source (not through CSS file) (i.e. when logged in to CMS using custom CSS)
- Chrome browsers only
While we can’t identify what causes the problem, whether it’s changes to Cloud Typography service, browsers, servers, etc., we do have a workaround to avoid the problem. We worked with CTLT team to create a plugin on adding Whitney font directly to HTML <head>. By loading the Whitney CSS request to HTML head, it will avoid the first two conditions mentioned above, it is also the recommended way of requesting Whitney webfont by Cloud Typography.
Solution:
- Enable UBC CLF Whitney webfont plugin in UBC CMS dashboard
- Remove @import Whitney reference