Note that there are some explanatory texts on larger screens.

plurals
  1. PODojo vs Dijit - files to include or reference?
    primarykey
    data
    text
    <p>I've been reading O'Reilly book "Dojo - The Definitive Guid" but somethings are still not definitive to me. </p> <p>They talk about "bootstrapping" and getting the dojo.css from the AOL CDN". </p> <p>When I'm testing on my machine, should I use the CDN? Or should I wait and use that only when I deploy? </p> <p>Secondly, the book talks about CDN for dojo, but not for dijit. </p> <p>I'm developing on Google App Engine (GAE) - so having the 2000+ Dojo/Dijit files in my Javascript directory is a little annoying, because it slows down my upload to GAE each time. </p> <p>Firebug is giving me this error: GET <a href="http://localhost:8080/dijit/nls/dijit-all_en-us.js" rel="nofollow noreferrer">http://localhost:8080/dijit/nls/dijit-all_en-us.js</a> 404 not Found GET <a href="http://localhost:8080/dijit/_editor/plugins/FontChoice.js" rel="nofollow noreferrer">http://localhost:8080/dijit/_editor/plugins/FontChoice.js</a> 404 not Found </p> <p>I downloaded the sample from here: <a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/themes/themeTester.html?theme=soria" rel="nofollow noreferrer">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/themes/themeTester.html?theme=soria</a> and I'd like to "simply" get it to run on my machine under local google app engine (which is the localhost:8080 that you see in the URLs above). </p> <p>I see this statement which probably is causing the second 404 above: dojo.require("dijit._editor.plugins.FontChoice");</p> <p>One other error: cannot access optimized closure preload("en-us") dijit-all.js (line 479) anonymous("dijit.nls.dijit-all", ["ROOT", "ar", "ca", 40 more... 0=ROOT 1=ar 2=ca 3=cs 4=da 5=de 6=de-de 7=el 8=en 9=en-gb])dijit-all.js (line 489) dijit-all.js() dojo.i18n._searchLocalePath(locale, true, function(loc){\n</p> <p>To continue for now, I'm going to try to copy the entire dijit library, but is there a solution short of that? </p> <p>My current script includes look like this: </p> <pre><code>&lt;script type="text/javascript" src="/javascript/dijit.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/javascript/dijit-all.js" charset="utf-8"&gt;&lt;/script&gt; </code></pre> <p>I got the dijit.js file by copying and renaming dijit.js.uncompressed.js to dijit.js. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload