Dojo Lazy Loading

dojo.require("dojo.event.*");
dojo.require("dojo.io.*");

are lazy. Be more specific:

dojo.require("dojo.event.connect");
dojo.require("dojo.io.bind");

Always load dojo package with a specific target.

2 Responses to “Dojo Lazy Loading”

  1. Hey,

    Good news, the “.*” syntax is going away in 0.9 (at least in Core). Should help ensure that require()’s can’t as easily shoot you in the foot.

  2. Hi Alex,

    Thank you for pointing me to this. Sure, that’s a good news in dojo 0.9. I will give it a try.

    Regards.

Leave a Reply