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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:53:48+00:00 2026-05-29T08:53:48+00:00

When I look at the source code of the dojo 1.7 amd dependency list,

  • 0

When I look at the source code of the dojo 1.7 amd dependency list, i see the following:

define([“./_base/kernel”, “./has”, “./dom”, “./on”, “./_base/array”,
“./_base/lang”, “./selector/_loader”, “./selector/_loader!default”],

The only use of an exclamation mark I know is for plugins, I haven’t seen this “!default” before.
I read this page “https://github.com/amdjs/amdjs-api/wiki/AMD” and googled about it, but I did not find any answer.
Can anybody help me with that!
Thanks
Wolfgang

Update:
Thank you, Ates Goral, for your answer.
Now everything is clear to me.
Then, the irritating thing for me with this special case was, that “./selector/_loader” occurs twice in the above line, one time without parameters and the next time with a parameter. I saw people writing “dojo/domReady!”, so I thought it was mandatory to write an exclamation mark for a plugin, even without parameters. Now I have learned that plugins don’t need an “!” and I will write “dojo/domReady”.

Another Update:
Today I found the following interesting statement (main.js of https://github.com/csnover/dojo-boilerplate):

The “!” after the module name indicates you want to use special plugin functionality; if you were to require just “dojo/domReady”, it would load that module just like any
other module, without any of the special plugin functionality.

I don’t know if this statement is correct. It it is correct, then “./selector/_loader” would have some kind of hybrid functionality?

  • 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-05-29T08:53:49+00:00Added an answer on May 29, 2026 at 8:53 am

    http://livedocs.dojotoolkit.org/loader/amd

    When a module identifier passed to require or define contains an “!”,
    the loader splits the string in two at the exclamation point. The
    string to the left of “!” is treated like a normal module ID and is
    used as the identifier for the desired plugin; the string to the right
    of “!” is passed to the plugin for processing.

    In your case, “default” is being passed to the plugin.

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

Sidebar

Related Questions

If we look at the latest jQuery source at http://code.jquery.com/jquery-latest.js we see the following:
How do I look up the source code for a utility which has a
When I look at the source code for a webpage that has been rendered
If you look at the source code for the html you can see the
I look for tool which can compress JavaScript source code. I found some web
I was taking a look through some open-source C++ code and I noticed a
I have a data source with about 2000 lines that look like the following:
How can you look at the source code of a transaction in ABAP-based systems?
I've taken a look into OpenJDK source code of CopyOnWriteArrayList and it seems that
I'll admit it, I'm too lazy to look at the source code. Does anyone

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.