title: how to use dojo within a chrome extension?
body: <p>I want to use dojo within a chrome extension's content script. I have this in my manifest.json:</p>
  
  <pre><code>"content_scripts":[
  {
      "js":["lib/dojo/dojo.js","main.js"],
      "matches":["&lt;all_urls&gt;"],
      "run_at": "document_idle"
  }
  ]
  </code></pre>
  
  <p>I've already put a dojo folder under "lib" folder of the root of this extension. However, the script paused execution and told me dojo is undefined. This means dojo is not loaded.</p>
  
  <p>then i tried register dojoConfig before dojo.js is loaded:</p>
  
  <pre><code>    "content_scripts":[
      {
          "js":["env.js",
          "lib/dojo/dojo.js",
          "main.js"],
          "matches":["&lt;all_urls&gt;"],
          "run_at": "document_idle"
      }
      ],
  </code></pre>
  
  <p>in the env.js, it contains;</p>
  
  <pre><code>dojoConfig = {
  "baseUrl" : "/lib/dojo"
  };
  </code></pre>
  
  <p>still not work though. Anyone else has sucessful experience?</p>