Skip to content

Instantly share code, notes, and snippets.

@isu3ru
Created October 19, 2017 07:37
Show Gist options
  • Save isu3ru/69421682bd0c1b682bfebf61cad154f8 to your computer and use it in GitHub Desktop.
Save isu3ru/69421682bd0c1b682bfebf61cad154f8 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
/* First CSS File */
var giftofspeed = document.createElement('link');
giftofspeed.rel = 'stylesheet';
giftofspeed.href = '../css/yourcssfile.css';
giftofspeed.type = 'text/css';
var godefer = document.getElementsByTagName('link')[0];
godefer.parentNode.insertBefore(giftofspeed, godefer);
/* Second CSS File */
var giftofspeed2 = document.createElement('link');
giftofspeed2.rel = 'stylesheet';
giftofspeed2.href = '../css/yourcssfile2.css';
giftofspeed2.type = 'text/css';
var godefer2 = document.getElementsByTagName('link')[0];
godefer2.parentNode.insertBefore(giftofspeed2, godefer2);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment