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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:33:35+00:00 2026-05-25T11:33:35+00:00

I am loading jQuery like this require({ baseUrl: ‘{{ STATIC_URL }}js’, paths: { jQuery:

  • 0

I am loading jQuery like this

require({
    baseUrl: '{{ STATIC_URL }}js',
    paths: {
        jQuery: 'https://ajax.googleapis.com/ajax/libs/jQuery/1.5.1/jquery.min',
        jQueryui: 'http://ajax.googleapis.com/ajax/libs/jQueryui/1.8.12/jquery-ui.min'
    },
    priority: ['jQuery','jQuery-UI']
}, ['main']);

How can order this such that jQuery-UI i is loaded after jQuery

  • 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-25T11:33:36+00:00Added an answer on May 25, 2026 at 11:33 am

    There are some options:

    1) Use the order plugin, then there is not a need for the priority config:

    require({
        baseUrl: '{{ STATIC_URL }}js',
        paths: {
            jQuery: 'https://ajax.googleapis.com/ajax/libs/jQuery/1.5.1/jquery.min',
            jQueryui: 'http://ajax.googleapis.com/ajax/libs/jQueryui/1.8.12/jquery-ui.min'
        }
    }, ['order!jQuery', 'order!jQueryui', 'order!main']);
    

    2) You can nest require calls. In this scenario there is no “priority” config. It ends up being a bit slower loading since it serially loads the scripts:

    //Set up config
    require({
        baseUrl: '{{ STATIC_URL }}js',
        paths: {
            jQuery: 'https://ajax.googleapis.com/ajax/libs/jQuery/1.5.1/jquery.min',
            jQueryui: 'http://ajax.googleapis.com/ajax/libs/jQueryui/1.8.12/jquery-ui.min'
        }
    });
    
    //Do the loading.
    require(['jQuery'], function () {
        //This assumes 'main' has explicitly indicated
        //jQueryui as a dependency.
        require(['jQueryui', 'main'] {
    
        });
    });
    

    3) If just ‘jQuery’ is put in the priority config, then just require(‘jQueryui’, ‘main’, assuming ‘main’ has also set ‘jQueryui’ as an explicit dependency. Actually with that in place, you can just require([‘main’]) and jQuery UI will be loaded as part of processing main.js.

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

Sidebar

Related Questions

I'm loading pages asynchronously with the jQuery load function, like this: tree.click(function() { if
I am loading feed-items into a ul using this jQuery .ajax() call, which I
I have a function in jquery that looks like this. function interceptFilter(e){ $.ajax({ type:
Sup guys. I'm loading data into a table using ajax and jquery. This can
I use jQuery to block ui like this $('#send').click(function() { $.blockUI({ message: '<p id=loading><img
I'm loading JQuery into my TYPO3 page by : page.headerData.10.value = <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js></script>
I have some content that I am loading using jquery ajax. The content has
After loading a PHP template (using jQuery's load function), this simple script won't make
i'm loading, using the JQuery ajax() method, an external page with both html and
I'm loading a page containing a GMaps using the ajax() method of jQuery. The

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.