Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Brackets hangs when using protocol relative urls with requirejs #10566

@fdefalco

Description

@fdefalco

using the following configuration will cause brackets to hang when switching between the file containing this content and other files.

requirejs.config({
    baseUrl: 'js',
    shim: {
        "bootstrap": {
            "deps": ['jquery']
        }
    },
    paths: {
        "jquery": "//code.jquery.com/jquery-1.11.2.min",
        "bootstrap": "//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min"
    }
});

changing this to a protocol specific url resolves the issue

requirejs.config({
    baseUrl: 'js',
    shim: {
        "bootstrap": {
            "deps": ['jquery']
        }
    },
    paths: {
        "jquery": "http://code.jquery.com/jquery-1.11.2.min",
        "bootstrap": "http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min"
    }
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions