In order to load Dojo, we can use CDN version or the downloaded package from Dojo official site and refer the src to Dojo package.
Here is the basic template to load Dojo in the html page.
data-dojo-config is set to async true so that it enables AMD. For more on async parameter please refer to this answer. This is just a very basic step for including. In the example I wrote it is loading Dojo from package downloaded.
You can set the dojoConfig object before you load the dojo itself with other properties like:
Structure would be:
-WebContent
-Dojo
-dojo.js
-index.html
Here is the basic template to load Dojo in the html page.
<!DOCTYPE html> <html> <head> <title>Exercise 1-Ajax</title> </head> <body>
<script data-dojo-config="async: true" src="dojo/dojo.js" ></script>
<script type="text/javascript"> </script> </body> </html>
data-dojo-config is set to async true so that it enables AMD. For more on async parameter please refer to this answer. This is just a very basic step for including. In the example I wrote it is loading Dojo from package downloaded.
You can set the dojoConfig object before you load the dojo itself with other properties like:
<script type="text/javascript">
dojoConfig= {
parseOnLoad: true,
async: true
};
</script>
<script src="js/dojo/dojo.js"></script>
Structure would be:
-WebContent
-Dojo
-dojo.js
-index.html
I started on COPD Herbal treatment from Ultimate Life Clinic, the treatment worked incredibly for my lungs condition. I used the herbal treatment for almost 4 months, it reversed my COPD. My severe shortness of breath, dry cough, chest tightness gradually disappeared. Reach Ultimate Life Clinic via their website www.ultimatelifeclinic.com . I can breath much better and It feels comfortable!
ReplyDelete