WebFont.load({ google: { families: ["Open Sans Condensed","Open Sans"] }, active: function() { var width = 0; jQuery('.middle_menu li').each(function() { width += jQuery(this).width(); }); jQuery('.middle_menu').width(width); } });