Created
May 8, 2012 02:21
-
-
Save scottschiller/2632058 to your computer and use it in GitHub Desktop.
YUI 3.5.1 loader test (IE 9, quirks mode DTD)
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
<!-- | |
Lack of DTD means quirks mode in IE 9, and YUI 3.5.1 will fail to load module dependencies due to <script>.onload not being supported. <script>.onreadystatechange should instead be used when document.documentMode < 9, which means IE 9 rendering a page in quirks mode, IE 7 or IE 8 standards mode. | |
--> | |
<html> | |
<head> | |
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script> | |
<script> | |
// Create a YUI sandbox on your page. | |
YUI().use('node', 'event', function (Y) { | |
// The Node and Event modules are loaded and ready to use. | |
// Your code goes here! | |
console.log('yay, node + event loaded OK'); | |
}); | |
</script> | |
<title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment