window.mti_element_cache – fonts.com

If you are using fonts.com for your web fonts and are getting an error like this:

window.mti_element_cache

You’ve probably copied and pasted in the Javascript code from fonts.com as suggested, and you may be using FireFox as your browser.

This is a bit of an issue, and while adding a script tag with something like this:

<script type="text/javascript">
window['mti_element_cache'] = []
</script>

Above where you reference the fonts.com web font javascript, it might still not work for you.

One solution may be to use their CSS API instead of their javascript API as the CDN. What that means is you need to replace the line that looks like this:

<script type="text/javascript" src="http://fast.fonts.net/jsapi/ff111ab-123-456-789.js"></script>

With one that looks like this:

<link type="text/css" rel="stylesheet" rel="nofollow" href="//fast.fonts.net/cssapi/ff111ab-123-456-789.css"/>

Be sue to change the ff111ab-123-456-789 part to match the unique ID for your site.

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *