Skip to content

Instantly share code, notes, and snippets.

@scottschiller
Created May 8, 2012 02:21
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 scottschiller/2632058 to your computer and use it in GitHub Desktop.
Save scottschiller/2632058 to your computer and use it in GitHub Desktop.
YUI 3.5.1 loader test (IE 9, quirks mode DTD)
<!--
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