TypeKit incompatible with Concrete

Permalink
I was all excited to combine the use two of the coolest things to hit the web -- Concrete5 CMS, and TypeKit (for font rendering).

Seems they do not play nice together for whatever reason. : (

When including the TypeKit .js links in a theme, the page controls disappear from the top of the site -- no way to click on Edit Page, or even return to Dashboard. It's just an empty space where the page controls would normally be. Very strange.

If anyone who knows more about javascript than I do would like to help debug this, I'll do what I can to help.

In the meantime, once I removed the typekit stuff, everything is working just fine.

platypusman
 
Ale replied on at Permalink Reply
I have noticed same thing occuring with some other javascript libraries (jQuery Tools for example). What you could try is to place the javascript include lines after the <?php Loader::element('header_required'); ?> row in your theme. I don't know about the technical reason for this, but some scripts just don't work when included before header_required and they crash the scripts running dashboard page controls etc.

When it comes to font rendering, cufon seems to work fine with Concrete and I'm also looking forward to try typeface.js, which seems really promising.
indisbaltic replied on at Permalink Reply
Cufon works smoothly. We have the js files included before Loader::element('header_required'); and no probs at all.
platypusman replied on at Permalink Reply
platypusman
Thanks for the tip, I put the typekit js links before the loader element and it works just fine now. (Previously I had them after the loader element.)