Created
November 18, 2011 20:28
-
-
Save irobinson/1377658 to your computer and use it in GitHub Desktop.
How to wipe out jQuery UI by loading jQuery twice
This file contains 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
<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