Skip to content

Instantly share code, notes, and snippets.

@scottschiller
Created May 8, 2012 02:21
Show Gist options
  • Select an option

  • Save scottschiller/2632058 to your computer and use it in GitHub Desktop.

Select an option

Save scottschiller/2632058 to your computer and use it in GitHub Desktop.

Revisions

  1. scottschiller revised this gist May 8, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion yui3-loader-test.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    <!-- 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 &lt; 9, which means IE 9 running in quirks mode, IE 7 or IE 8 standards mode. -->
    <!--
    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>
  2. scottschiller created this gist May 8, 2012.
    13 changes: 13 additions & 0 deletions yui3-loader-test.html
    Original 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 &lt; 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>