Skip to content

$.getScript is missing a signature #1052

Open
@oriadam

Description

@oriadam

jQuery 1.12.0 added a signature for passing an options object to $.getScript.
The options are padded on to $.ajax.

  1. The signature should be added to the docs
  2. In the Examples section, if you want to enable browser caching it is recommended to add a new function. This is not a good practice, and since 1.12.0 there is no use for it. One can simply:
    $.getScript({
        url: "foo.js",
        cache: true
    })

The above example should be added to the examples section, for jQuery 1.12.0 or later.

https://api.jquery.com/jquery.getscript/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions