Loading size optimization

The flag dojoConfig.diagramForMobile controls whether a set of features is loaded or not.
If dojoConfig.diagramForMobile is true, the following features are disabled:
  • Keyboard interactions: mobile devices typically have no physical keyboard.
  • Focus management (for example, the dotted rectangle around the current node) which is typically associated with keyboard interactions, is disabled.
  • Panning with the mouse wheel is disabled since mobile devices do not have a mouse.
  • Marquee selection is disabled.
  • The move interactor is disabled.
  • The system that manages adorners is disabled since it is typically used in editor applications.
  • Tooltips can be used on mobile devices, but the dijit.Tooltip widget is not loaded on mobile devices, so you must call dojo.require('dijit.Tooltip').
  • dojo.i18n is not loaded (as is usually the case on mobile applications), See Localizing error messages on mobile devices to localize Dojo Diagrammer error messages on mobile applications.
By default, the diagramForMobile flag is false. You must set it to true if you want to reduce the download size of your mobile application. You can also leave the flag set to false even on a mobile device, for example, if you want to enable the move interactor in a mobile application.