Created
January 5, 2017 05:21
-
-
Save davidjb/16ef26e9c4e87b0e8a502fc49e28ca93 to your computer and use it in GitHub Desktop.
Adding JS/CSS into a live page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// These could be anything | |
var js = 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js' | |
var css = 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css' | |
$.getScript(js) | |
$('body').append('<link href="' + css + '" rel="stylesheet">') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment