This custom build has the Dojo Toolkit templating system mixins ‘dijit._Widget‘ and ‘dijit._Templated‘ and all associated dependencies baked in, so that these resources are not HTTP-requested as multiple separate files during web page loading.
This consolidation of Dojo dependencies considerably speeds up the download and initialization for web applications that utilize the Dojo templating system.
Not optimal for applications that use other widgets in the Dojo ‘dijit‘ package beyond just the templating system.
Download Dojo Toolkit Version 1.6.0 Optimized Build Tarball (3.8 MB)
Drop in place of the regular Dojo Toolkit build, like this:
--- a/web_page.html +++ b/web_page.html @@ -19,7 +19,7 @@ </script> <script type='text/javascript' - src='/toolkits/dojo/dojo-release-1.6.0/dojo/dojo.js' + src='/toolkits/dojo/dojo-release-1.6.0-templated/dojo/dojo.js' djConfig="parseOnLoad: true"> </script>
profile.js
used to make this custom build:
dependencies = { //Strip all console.* calls except console.warn and console.error. This is basically a work-around //for trac issue: http://bugs.dojotoolkit.org/ticket/6849 where Safari 3's console.debug seems //to be flaky to set up (apparently fixed in a webkit nightly). //But in general for a build, console.warn/error should be the only things to survive anyway. stripConsole: "normal", layers: [ { name: 'dojo.js', dependencies: [ 'dijit._Templated', 'dijit._Widget' ] } ], prefixes: [ [ "dijit", "../dijit" ], [ "dojox", "../dojox" ] ] }
Copyright (c) 2010-2018 Marat Nepomnyashy
Except where otherwise noted, this webpage is licensed under a Creative Commons Attribution 3.0 Unported License.
Background wallpaper by Patrick Hoesly, used under Creative Commons Attribution 2.0 Generic License.