Skip to content

Instantly share code, notes, and snippets.

@grok
Last active August 29, 2015 13:56
Show Gist options
  • Save grok/9216017 to your computer and use it in GitHub Desktop.
Save grok/9216017 to your computer and use it in GitHub Desktop.
jQuery(function() {
var bootstrap = [
'affix',
'alert',
'button',
'carousel',
'collapse',
'dropdown',
'modal',
'popover',
'scrollspy',
'tab',
'tooltip',
'transition'
];
jQuery.each(bootstrap, function(key, script) {
jQuery.getScript(wordpress.stylesheet_directory_uri + '/assets/scripts/js/bootstrap/' + script + '.js', function(){});
});
});
@grok
Copy link
Author

grok commented Feb 28, 2014

So - this is an example... but it's a bad idea.. don't do this... ever.

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