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 8315205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:04:48+00:00 2026-06-08T21:04:48+00:00

Is Dojo’s load-as-you-need it structure actually a performance improvement? For me, at least? My

  • 0

Is Dojo’s load-as-you-need it structure actually a performance improvement? For me, at least?

My company’s website is going to switch to IBM Websphere, which primarily uses Dojo. My company’s very concerned with page performance, mostly in terms of “seconds to page load”. As a result of that, the directive we’ve been given is “minimize hits to the server”, so with our current website we aggregate all our .js files before the promotion to production.

But that directive is basically becoming Law, now, so if I were to argue against it, I would need a very good rationale for it. I’ve been unable to find anything in favor of the load-as-you-go method except “it’s a good idea” and “loads only when you need it” (the latter is really only based on the former, as far as I can tell).

And then, if I were to flatten everything out into a single file, I wouldn’t be able to use dojo.require() statements at all, would I? (the idea being, if I could have the development side split by module to make the organization more rational, but then have the production version a single file, but then dojo.require() would no longer make sense there, and then I have an increasingly complex situation where I would need the build to do some invasive things to the javascript to package for production.)

Please resist the “it depends” answer. The best practices docs I’ve seen (Yahoo, Google, etc) pretty much just say “reduce page loads” and don’t have much “it depends” about it. But Dojo’s framework seems so definitive about its approach, I’m wondering if there’s a more persuasive argument for it.

  • 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-08T21:04:49+00:00Added an answer on June 8, 2026 at 9:04 pm

    Dojo actually combines the two approaches. In development mode, you have many files that use define (dojo.require is obsolete) to load other modules dynamically. This is very good for abstraction and development.

    Then there is “production mode”, where you compile all those small files into one or more (aka. layers) minified Javascript files with the dojo build system. This reduces hits to the server while still maintaining all the modularity. With the layer approach, application data that is needed later will automatically be loaded from a separate file.

    See:
    http://dojotoolkit.org/blog/learn-more-about-amd

    http://dojotoolkit.org/reference-guide/1.7/build/

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

Sidebar

Related Questions

New to Dojo Toolkit, I'm able to successfully get an xhrGet to load on
I need a dojo form control which enables user to browse hard disk and
Dojo : FilteringSelect , required: false , not working My code structure is, var
I am using DOJO for data grid presentation <div id=grid_log dojoType=dojox.grid.DataGrid store=log structure=window.layout_log queryOptions={deep:true}
I'm using dojo dataGrid, and i need to get the row id. When i
In my dojo.xhrGet I have specified this load: : load: function (data) { //
I have: dojo.xhrGet({ url:/data/js/1/markers.js, handleAs:javascript, load: function(r){ dojo.forEach(placemarks, function(item) { Which works fine in
dojo.addOnLoad( function() { attach on click to id=textDiv dojo.query('#Specific_consultant-Yes').onclick( function(evt) { // document.getElementById(Consultants).style.visibility =
Dojo custom widgets can be internationalized via the _templated mixin following the steps outlined
The Dojo Toolkit used to come with a testing facility called Doh. It was

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.