Skip to content

Instantly share code, notes, and snippets.

@irobinson
Created November 18, 2011 20:28
Show Gist options
  • Save irobinson/1377658 to your computer and use it in GitHub Desktop.
Save irobinson/1377658 to your computer and use it in GitHub Desktop.
How to wipe out jQuery UI by loading jQuery twice
<html>
<head></head>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript">
console.log('loaded jQuery and jQuery UI');
console.log('Draggable is a function: ' + $.isFunction($().draggable));
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
console.log('loaded jQuery again');
console.log('Draggable is a function: ' + $.isFunction($().draggable));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment