The "Node not found" error was caused by the loader trying to find the script tag that loaded it. This is the trick Dojo uses when it boots from a CDN (like the Google you used) to try and find the URL for loading the modules.
The jQuery $ .getScript () function does not actually enter the script tag on the page, but rather loads through XHR and then removes the code. Therefore, the tag that Dojo is looking for cannot be found. This only happens when using CDN. If you used your own local copy of Dojo, not a CDN, it can be made to work.
I'm not sure if loading Dojo through jQuery is good practice. Most likely, it is better to download them separately or do it the other way around (i.e. load jQuery inside Dojo). I assume that you need the functionality of both, or you would not try to do it.
To load jQuery as a Dojo module, you can modify your code as follows:
<!DOCTYPE HTML> <html lang="en"> <head> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/claro/claro.css" media="screen" /> <script type="text/javascript"> var dojoConfig = { "parseOnLoad": false, "async": true, "packages": [{ "name": "jquery", "location": "//ajax.googleapis.com/ajax/libs/jquery/1.9.0", "main": "jquery.min" }] }; </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js" ></script> <script type="text/javascript"> define.amd.jQuery = true; </script> </head> <body class="claro"> <div id="dialog" data-dojo-type="dijit/Dialog"> </div> </body> </html>
It is probably best to stick with Dojo instead of trying to use both. However, the foregoing will allow the use of both methods. Dojo has its own function ( dojo / ready ), which can replace $ (document) .ready (). Most jQuery functions are replicated to some Dojo manor.
Downloading jQuery as a Dojo module means that it is only available inside the required callback. Therefore, $ does not fit into the global scope, as is usually the case. You will need to require it in any JavaScript that you need.
NB: I changed dijit.Dialog in your code to dijit / Dialog, since it will not load in version 1.8 if you use point formation.