Skip to content

Instantly share code, notes, and snippets.

@tamaker
Forked from cemerson/cssload.js
Created September 14, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamaker/64e88ad225bbedde195207b4d23d77e1 to your computer and use it in GitHub Desktop.
Save tamaker/64e88ad225bbedde195207b4d23d77e1 to your computer and use it in GitHub Desktop.
jQuery: Load CSS File
$('<link>')
.appendTo($('head'))
.attr({type : 'text/css', rel : 'stylesheet'})
.attr('href', '/css/your_css_file.css');
@tamaker
Copy link
Author

tamaker commented Sep 14, 2019

useful for pulling in / loading css file on the fly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment