Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadWebFonts = function(){
- WebFont.load({
- custom: {
- families: ['Korolev-Light','Korolev-Medium','KorolevCondensed-Light'],
- urls: ['<?php echo get_template_directory_uri(); ?>/css/fonts.css']
- },
- active: function(){
- console.log('wf loaded');
- }
- });
- };
- Modernizr.load([
- {
- test: Modernizr.fontface,
- yep: '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js',
- complete: function(){
- loadWebFonts();
- }
- },
- {
- test: needjscroll,
- yep: ['//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js','<?php echo get_template_directory_uri(); ?>/js/scripts.js'],
- complete: function () {
- if (jscroll) jscroll.init();
- }
- }
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement