Skip to content

Instantly share code, notes, and snippets.

@rahilwazir
Last active August 29, 2015 14:02
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 rahilwazir/6d745cd89f514401eda9 to your computer and use it in GitHub Desktop.
Save rahilwazir/6d745cd89f514401eda9 to your computer and use it in GitHub Desktop.
Detect existing Bootstrap (CSS)
$('link').each(function (index, element){
var bootExist = /bootstrap\.(?:min\.)?css/.test($(element).prop('href'));
if (bootExist) {
$(element).remove();
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment