Skip to content

Instantly share code, notes, and snippets.

@kkm
Created July 11, 2015 04:53
Show Gist options
  • Save kkm/a8df1d772fca43932218 to your computer and use it in GitHub Desktop.
Save kkm/a8df1d772fca43932218 to your computer and use it in GitHub Desktop.
CSS always in top in meteor template
var script = document.createElement('link');
script.setAttribute('href', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css');
script.setAttribute('rel', 'stylesheet');
script.setAttribute('type', 'text/css');
var pa = document.getElementsByTagName('head')[0];
document.getElementsByTagName('head')[0].insertBefore(script, pa.firstChild);
@nalply
Copy link

nalply commented Jul 11, 2015

woher?

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