Created
May 8, 2012 02:21
-
-
Save scottschiller/2632058 to your computer and use it in GitHub Desktop.
Revisions
-
scottschiller revised this gist
May 8, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ <!-- 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> -
scottschiller created this gist
May 8, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <!-- lack of DTD here 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 running 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>