dojo-build

Dojo build fails on IE9 when loading layer from HTML header: property 'dir' is undefined

心已入冬 提交于 2019-12-02 12:26:29
问题 I've made a dojo build, but I wanted the flexibility when enabling/disabling the build, so I've tried to load in in <script> tags in HTML header: <script src="js/config.js"></script> <script src="/dojo/1.9/dojo/dojo.js" data-dojo-config="async: true"></script> <script src="/dojo/1.9/dojo/dojo-all.js"></script> and I've left my JS file unmodified. It seems to function, however, there was a problem, but only on IE9, and only on application version deployed on WebSphere (I've tested on Apache2).

Dojo Builds…? What now?

谁说胖子不能爱 提交于 2019-11-29 04:40:24
A while back, I looked into a solution for the "flash of unstyled content" when using Dojo and Dojo themes. Someone suggested to combine everything by creating a build, and it'll reduce the load/parse time and remove the need to use preloader overlays, etc. However, it seems like Dojo is severely lacking in straightforward, "real world" useage examples and tutorials for a lot of its functionality, this especially. A lot of the resources tell you how to set up a build, but not how to implement it. Let's say I have this in "pageinit.js": require([ 'dojo/parser', 'dojo/dom', 'dojo/dom-class', /