Skip to content

Order of jQuery/popper file includes backwards #30873

@catchmyfame

Description

@catchmyfame

On the page https://getbootstrap.com/docs/4.5/getting-started/download/#bootstrapcdn it says:

If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js before it.

It then shows an example of

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>

See the issue? The example shows popper after jQuery, but the docs say it should come before it.

The error appears to exist in the description, and not the example. I suggest changing:

If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js before it.

to:

If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js after it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions