AnsweredAssumed Answered

Trying to use the Dojo/domReady! function

Question asked by fishingcone on Apr 24, 2013
Latest reply on Apr 24, 2013 by fishingcone
Hello,

This is in regards to using the modern Dojo/domReady! function for initializing a script & map.

I was using the code:   dojo.addOnLoad(init);   to load the page and map; however, when replacing that with the newer:

require(["dojo/domReady!"], function(init){});   it does not appear to work.

I also tried variations including:   require(["dojo/domReady!"]);   ... and putting it in different places in the code; but to no avail.

Do you have some examples on how to use this new Dojo syntax?   Any suggestions on how to use it?  I can provide the code if desired.

Many thanks!

Outcomes