Skip to content

async: using callback along with requirejs config's urlArgs #67

@denis-itskovich

Description

@denis-itskovich

There is a problem when using urlArgs along with callback parameter. The following use case seems to be not supported:

requirejs.config({
    urlArgs: 'bust=v2',
    // ...
});

define(['async!https://apis.google.com/js/client.js!onload'], function() {
    // ...
});

Following happens in this case: async plugin receives as a name https://apis.google.com/js/client.js!onload?bust=v2, thus the entire string onload?bust=v2 is taken as a parameter name, which is incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions