/** * Get CSS * @param {Object} $ */ (function($){ $.getCSS = function( url, media ){ $(document.createElement('link') ).attr({ href: url, media: media || 'screen', type: 'text/css', rel: 'stylesheet' }).appendTo('head'); } })(jQuery);