Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Using CDN version
  • Loading branch information
Jake Archibald committed May 21, 2011
1 parent d247eb8 commit e91f6de
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions render-pattern/webfontloader.php
Expand Up @@ -6,9 +6,9 @@
<title></title>
<script>
(function() {
var fonts = ['josefin', 'cartoonist'],
var fonts = ['josefin', 'cartoonist'],
urls = ['style.css'],
src = 'webfont_debug.js',
src = '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js',
script = document.createElement('script'),
firstScript = document.getElementsByTagName('script')[0];

Expand All @@ -18,12 +18,11 @@
urls: urls
}
};
script.src = src;
firstScript.parentNode.insertBefore(script, firstScript);
// YOU ARE HERE
document.documentElement.className += fonts.join('|').replace(/\s/g, '').toLowerCase().replace(/([^|]+)(?:\||$)/g, ' wf-$1-n4-loading');
})();
firstScript.parentNode.insertBefore(script, firstScript);
//document.documentElement.className += fonts.join('|').replace(/\s/g, '').toLowerCase().replace(/([^|]+)(?:\||$)/g, ' wf-$1-n4-loading');
})();
</script>
<style>
p {
Expand Down

0 comments on commit e91f6de

Please sign in to comment.