Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:38:30+00:00 2026-06-17T11:38:30+00:00

Despite using the Dojo build system, my app is still including a large number

  • 0

Despite using the Dojo build system, my app is still including a large number of javascript files which I would have hoped to be covered by the build.

Here’s my build profile:

var profile = (function(){
    return {
        basePath: "./",
        releaseDir: "release",
        action: "release",
        selectorEngine: "acme",
        cssOptimize: "comments.keepLines",

        packages:[{
            name: "dojo",
            location: "dojo"
        },{
            name: "dijit",
            location: "dijit"
        },{
            name: "dojox",
            location: "dojox"
        },{
            name: "my",
            location: "my"
        }],

        layers: {
            "my/admin": {
                include: ['dojo/ready', 'dojo/dom', 'dojo/query', 'dojo/request/xhr', 'my/Form', 'my/Tree/Radio']
            }
        }
    };
})();

The app is still including the following JS files on each request: my/Form.js (even though this is listed in the profile), dojo/fx/Toggler.js, dijit/_base.js, dijit/WidgetSet.js, dijit/_base/focus.js, dijit/_base/place.js, dijit/place.js, dijit/_base/popup.js, dijit/popup.js, dijit/BackgroundIframe.js, dijit/_base/scroll.js, dijit/_base/sniff.js, dijit/_base/typematic.js, dijit/typematic.js, dijit/_base/wai.js, dijit/_base/window.js.

my/Tree/Radio extends dijit/Tree, so I’m assuming a lot of the files above are dijit base files that are being loaded automatically by dijit.Tree. But surely the build tool should resolve dependencies like this and include them in the ‘built’ file?

I am using Dojo 1.8.3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:38:31+00:00Added an answer on June 17, 2026 at 11:38 am

    In dojo/fx, it dynamically looks up the Toggler with the comment

    use indirection so modules not rolled into a build
    

    Not sure why, but if you add dojo/fx/Toggler to the include of your build script, it should not make the additional xhr requests.

    EDIT: Apparently dijit/Widget does something similar with dijit/_base, so you will want to add that to the includes as well.

    http://trac.dojotoolkit.org/ticket/14262

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a piece of code here that does not work despite me using
Despite using Vim for a decade, sometimes I still struggle with folding. Everything in
I'm playing with Google App Engine using the Go APIs and despite everything I've
I have the following function but despite using the break statement, it doesn't seem
So I'm using jQuery validation and have managed (despite some out of date documentation)
Despite using many sql databases before, I've never actually tried to develop an app
Im testing an in-app purchase using my iPhone on iOS5 but despite going to
I am very confused about how constructors work in JavaScript; despite using the language
Despite using PHP for years, I've never really learnt how to use expressions to
I'm using xval to use client side validation in my asp.net mvc2 web-application. Despite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.